Skip to content

Shuffle Lines into a Fair Random Order

Runs 100% in your browser — your text never leaves this page, and nothing is uploaded or stored.

This shuffle lines tool deals any list into a genuinely random order with the Fisher–Yates method — fair draws, quizzes and playlists, one click. Use it to shuffle names for a draw or randomize a list online for a quiz, playlist or sprint — the Fisher–Yates method gives every line a fair chance, and the order only changes when you press the button.

How to use the Shuffle Lines

  1. Paste your list into the box, one item per line — or press Load sample to shuffle the example class list.
  2. Press Shuffle now — this tool deliberately never reshuffles while you type, so the order stays frozen while you use it.
  3. Read the new order in the result box; the note confirms how many lines were shuffled.
  4. Copy the order for your draw or quiz — or press Shuffle now again for a completely fresh one.

About this tool

Random order removes human bias: the first name in a list should not always win the draw, and quiz questions should not always arrive in the order they were written. This shuffler deals your lines into a new order with the Fisher–Yates algorithm — the statistically fair method, in which every line is swapped into a position chosen at random, so every possible ordering is equally likely. The randomness comes from your browser’s built-in random number generator — the same source the rest of this site’s generators use. It is unpredictable in practice and evenly spread, which is exactly what fairness needs for draws, quizzes, games and classroom picks. Because the tool is deliberately manual, you stay in control: edit your list, shuffle once, and the order stays frozen while you read it, copy it or present it. Nothing reshuffles under your eyes because you fixed a typo — a fresh order comes only when you press Shuffle now again. Anything that sits on its own line can be shuffled — names, questions, tasks, songs, prizes — and a shuffle is lossless: every line appears in the result exactly once. It all happens in your browser, so the class list, the raffle entries or the team names never leave your device.

Worked example

Here is the sample class list that comes with the tool, after one press of Shuffle now — your shuffle will land differently, which is rather the point: You paste
Ayesha
Bilal
Chen
Dalia
Emeka
Fatima
George
Hana
One shuffle produced
Hana
Bilal
Emeka
Ayesha
Fatima
George
Chen
Dalia
The note reads “8 lines shuffled randomly.” Every name appears exactly once — a shuffle never drops, duplicates or edits a line; it only deals the same eight lines into a new order. Press Shuffle now again and the class lines up differently.

Features

  • Fisher–Yates shuffling: the fair algorithm in which every ordering is equally likely.
  • Manual by design — the order only changes when you press Shuffle now, never while you type.
  • Lossless: every line appears exactly once; nothing is dropped, duplicated or edited.
  • Works for anything line-based: names, questions, songs, tasks, prizes, presentation orders.
  • Instant, unlimited reshuffles — generate a fresh order as often as you need one.
  • Private by design: the shuffle happens in your browser; your list never leaves your device.

Shuffle Lines FAQs

Is the shuffle really random?Yes — it uses the Fisher–Yates shuffle driven by your browser’s built-in random number generator, so every line has an equal chance of landing in every position. It is fair for draws, quizzes and games; like any browser tool, it is not a certified lottery machine.
Why does typing not reshuffle automatically?Deliberately: a result that changes while you read it would be useless for draws and quizzes. Press Shuffle whenever you want a new order.
Can I shuffle other things, like paragraphs?Anything that sits on its own line can be shuffled — names, questions, tasks, songs, prizes.
Is my list kept private?Yes, it never leaves your browser.
Can a line be picked twice or lost?No. A shuffle only rearranges lines — each line in your input appears exactly once in the output, in a new position. Nothing is drawn with replacement here.
What if two lines have exactly the same text?They are treated as two separate entries that happen to look alike, just like two identical cards in a deck. Both appear in the shuffled result.
How many lines can I shuffle?As many as you can paste. The shuffle works line by line in your browser, so lists of thousands are handled in one press; only your device limits extremely long lists.
More text sorting tools →