Advertisements

headerup to 320x100 / 728x90

Line Shuffler

Randomise the order of lines in any multi-line text

Input
Loading editor...
Output

Output will appear here...

Advertisements

content bottomup to 300x250

What is Line Shuffler

Last reviewed:

Line Shuffler uses the Fisher–Yates algorithm to reorder the lines of your text uniformly at random. It preserves each line's content exactly — only the order changes.

It's a frequent ingredient in giveaways, test data generation, icebreaker prompts, and any workflow that needs fair randomisation of records.

Why use it

  • Pick random winners from a list of entries.
  • Produce randomised test fixtures for QA runs.
  • Create flashcard decks with unbiased order.
  • Generate random seating or pairing lists.
  • Prepare random sampling data for research.

Features

  • Unbiased Fisher–Yates shuffle
  • Preserves line content exactly
  • Client-side Line Shuffler workflow, no servers involved
  • Works with Unicode lines
  • Instant output for large lists

How to use Line Shuffler

  1. Paste lines. Drop one line per entry into the input.
  2. Run. The lines are reordered uniformly at random.
  3. Copy. Grab the shuffled output for your raffle or fixture.

Example (before/after)

Input

alice
bob
carol
dave

Shuffled (example)

carol
alice
dave
bob

Common errors

Duplicates preserved

Identical lines appear twice in the output.

Fix: Use Remove Duplicate Lines first if you want unique values.

Empty lines shuffled too

Blank lines are treated as regular lines.

Fix: Run Remove Empty Lines beforehand.

FAQ

Is the shuffle unbiased?

Yes — the tool uses the Fisher–Yates algorithm with Math.random().

Is it cryptographically secure?

No. For raffles or security-sensitive cases, use a CSPRNG.

Will empty lines move?

Yes — they participate in the shuffle like any other line.

Can I re-shuffle?

Yes — run the tool again to get a different order.

Does it preserve Unicode?

Fully — each line is treated as an atomic string.