Line Shuffler

Shuffle the lines of a list into a random order using a cryptographically secure Fisher–Yates shuffle. Reshuffle with one click; nothing is uploaded.

Options

Runs entirely in your browser. Your data is never uploaded.

What is Line Shuffler?

Puts the lines of a list into a random order. Each shuffle uses the browser's cryptographically secure random number generator, so every possible order is equally likely, and you can reshuffle as often as you like.

How to use Line Shuffler

  1. Paste your list, one item per line, into the Input box.
  2. The shuffled list appears in Output immediately.
  3. Press Shuffle again for a new random order.
  4. Keep Remove empty lines on to ignore blank lines.

Example

Input
a
b
c
Output
c
a
b

One possible result – every run is random.

When to use Line Shuffler

Use it to randomise the order of names, questions, playlist items or test cases. For picking winners with a public audit trail, prefer a method whose randomness can be verified by others; a browser shuffle cannot be re-checked afterwards.

How Line Shuffler works

The tool runs a Fisher–Yates (Knuth) shuffle: walking from the last line to the first, it swaps each line with a randomly chosen line at or before it. Random indexes come from crypto.getRandomValues with rejection sampling, which removes the small bias that a simple modulo would introduce, so each of the n! orders has the same probability.

Common Use Cases

  • Randomising the order of presenters or teams
  • Shuffling quiz questions or flashcards
  • Creating a random playlist order
  • Randomising test data or survey answer options

FAQs

Is the shuffle truly random?

It uses the operating system's cryptographically secure generator through the Web Crypto API and an unbiased Fisher–Yates shuffle.

Can the same order come out twice?

Yes, each shuffle is independent. With few lines repeats are likely: 3 lines have only 6 possible orders.

Can I pick one random line?

Shuffle the list and take the first line – every line is equally likely to end up first.

Explore more categories