Shuffle Lines

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

  • No sign-up
  • Files stay local. Nothing is sent to our servers.
  • Nothing uploaded
  • Free forever

Drop text files here

.txt, .csv, .tsv, .xlsx, .xls, .html, .xml, .json, .log · local only · up to 1000 MB total · Excel up to 256 MB

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 of Shuffle Lines

  • 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 of Shuffle Lines

  • 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.

Questions about Shuffle Lines

Is the shuffle truly random?
The tool uses the Fisher–Yates algorithm, which produces a uniform, unbiased permutation where every ordering is equally likely. Without a seed it draws randomness from your browser, so each run without a seed produces a different order.
What does the seed option do?
A seed makes the shuffle reproducible. When you enter the same seed with the same input, you always get the same shuffled order. This is useful for sharing a specific arrangement or regenerating identical results later.
Does it change the content of my lines?
No. Shuffle Lines only changes the order of the lines; the text within each line is left exactly as it was. Running the shuffle again simply produces a new random arrangement of the same lines.
Are blank lines included?
By default the ignore-empty option removes blank lines before shuffling so they do not clutter the result. Disable it if you want empty lines to be shuffled along with the rest of your content.
Is my text uploaded anywhere?
No. All shuffling happens locally in your browser using JavaScript, so your text never leaves your device, making the tool safe for private names, lists and data.
How your data is handled: This tool runs entirely in your browser. Nothing is uploaded or stored on our servers.

More tools to try