Shuffle Lines

Randomly reorder the lines of any list, with an optional seed for repeatable results.

The Shuffle Lines tool is a free online utility that randomly reorders the lines of your text, giving you a freshly mixed list every time. The content of each line stays the same; only their positions change, so you get an unbiased random arrangement of your entries in a single click.

It is perfect for teachers randomising question order, marketers rotating variants for testing, and anyone who needs to pick a random sequence from a list. An optional seed makes the shuffle reproducible, so you can share a specific ordering or regenerate the exact same result later.

Everything runs inside your browser using JavaScript. The tool splits your text on line breaks and applies a Fisher–Yates shuffle, which produces a uniform random permutation. No text is uploaded, so your lists, names and data remain private on your own device the entire time.

Features

  • Randomly reorders every line using a proper Fisher–Yates shuffle for an unbiased result.
  • Keeps the content of each line intact — only the order of the lines is randomised.
  • An optional seed produces a repeatable shuffle, so the same seed always yields the same order.
  • An option ignores empty lines so blank rows do not dilute the shuffled result.
  • Line splitting recognises Windows CRLF, classic Mac CR and Unix LF endings for consistent results.
  • Live statistics confirm exactly how many lines were shuffled in the output.
  • Runs fully offline in your browser with no sign-up, no upload and no limit on input size.

How to use Shuffle Lines

  1. Paste your list into the input box, or upload a plain text file to load its contents.
  2. Leave the seed empty for a fresh random order each run, or enter a seed for a repeatable shuffle.
  3. Keep the ignore-empty option enabled so blank lines are dropped rather than mixed into the result.
  4. Read the shuffled output instantly and re-run without a seed to generate a different order.
  5. Copy the shuffled result with one click or download it as a plain text file for your next step.

Benefits

  • Teachers randomise the order of questions or names to create fair quizzes and group assignments.
  • Marketers rotate the order of variants, offers or testimonials to reduce position bias in tests.
  • Event organisers draw a random order for participants, prizes or presentation slots from a list.
  • Developers generate randomised test data orderings quickly without writing a throwaway script.
  • Anyone needing an impartial random sequence gets one instantly with no dice, spreadsheet or code.

The Fisher–Yates algorithm used here produces a uniform shuffle, meaning every possible ordering is equally likely. This is important for fairness: naive shuffles can subtly favour certain positions, whereas Fisher–Yates guarantees an unbiased permutation of your lines every time you run it.

The optional seed turns the shuffle from unpredictable into reproducible. When you enter a seed, the same input and seed always yield the same order, which is invaluable for sharing a specific arrangement, documenting how a random order was produced, or regenerating identical results across sessions. Leave the seed blank whenever you want a genuinely fresh order each run.

Frequently asked questions

Related tools