convert

Shuffle Lines

Randomly shuffle the order of lines in a list — great for draws, quiz questions and random ordering.

Runs on your deviceBatch readyPaste textNew

Paste or drop

Paste text below, or drop a file instead.

0 chars · 0 lines
…or drop a file
Drag and drop, or choose files
TXTMDCSVTSVLOGJSONXML+10

Choose an output

Randomly shuffle the order of lines in a list — great for draws, quiz questions and random ordering.

Fine-tune

Optional — sensible defaults are already set.

About Shuffle Lines

Put the lines of a list into a random order. The shuffle uses the Fisher-Yates algorithm with your browser's cryptographic random number generator, so every possible order is equally likely. Each line appears exactly once in the result.

When it helps

  • Randomizing the order of quiz or exam questions so neighbours get different versions.
  • Deciding presentation order, team line-ups or seating plans fairly.
  • Shuffling a playlist, reading list or set of flashcards.
  • Randomizing survey options or test items to reduce order bias.

Tips

  • Every run gives a different order. Save the output if you need to show how the order was decided.
  • Put each item on its own line. A paragraph that wraps across several lines will be split up.
  • To pick a few winners instead of reordering everything, use the random line picker.

Good to know

Quick answers about shuffle lines in your browser.

It uses crypto.getRandomValues, the same random source browsers provide for security work, together with the Fisher-Yates algorithm, which does not favour any order. That is fine for classroom draws and giveaways, though official lotteries usually have their own audited rules.

The tool shuffles whole lines. Use the split text tool with a space as the delimiter to put each word on its own line, shuffle, then join them back with the join lines tool.

Yes. There is no sign-up, no watermark and no limit on how many files you process.

No. Files are read and processed locally in your browser, so they never leave your device.

Related tools