Skip to content
Jellykit

Shuffle Lines

Put lines in a random order using an unbiased shuffle driven by the browser secure random generator.

  • Runs on your device
Loading tool

About Shuffle Lines

Randomise a list of names for a draw, quiz questions, playlist entries or test data. Every possible order is equally likely: the lines are shuffled with the Fisher-Yates method, fed by the cryptographic random generator built into your browser.

The text on each line is left as it is. Change any option or edit the text to shuffle again.

How it works

  1. The text is split into lines at any kind of line break, and the ending used in the input is used again in the output.
  2. Clean-ups run in this order: non-printing characters, trimming, collapsing spaces, empty lines, duplicates, and finally the line order.
  3. Duplicates are compared after the earlier steps, keeping the first occurrence. Accented letters typed in different ways count as the same.
  4. Sorting uses your browser language rules, so accented letters sort next to their base letter. Shuffling uses the browser secure random generator.

Questions

Is the shuffle really fair?

Yes. Fisher-Yates gives every ordering the same chance when its random numbers are uniform, and the numbers come from the browser cryptographic generator with rejection sampling, so no ordering is favoured.

Can I get the same order again?

No. There is no seed, so every shuffle is new. Copy or download a result you want to keep.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.