Shuffle Lines

Randomly shuffle the lines of a list or text block.

Randomly shuffle the lines of any list or text block using an unbiased Fisher–Yates shuffle. Optionally remove blanks, trim and de-duplicate first, then copy the result — all in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

Is the shuffle truly random?

It uses the Fisher–Yates algorithm, which produces a uniformly random permutation — every possible ordering is equally likely. It draws randomness from the browser's Math.random.

Shuffle a list into random order

Paste a list and get it back in a random order. Useful for drawing names, randomising quiz questions, picking a winner, ordering a playlist, or any time you need an unbiased shuffle.

Fair, unbiased shuffling

This tool uses the Fisher–Yates shuffle, the standard algorithm for producing a uniformly random permutation:

for i from last index down to 1:
  j = random integer in 0..i
  swap line[i] and line[j]

Every possible ordering is equally likely — there is no bias toward the original order, unlike naive “sort by random” approaches.

Clean-up options

Before shuffling you can:

  • Remove blank lines — drop empty rows.
  • Trim whitespace — strip stray spaces from each line.
  • Remove duplicate lines — keep only the first occurrence of each entry.

Press Shuffle again any time for a fresh random order from the same input.

Common uses

  • Drawing names or picking a random winner from a list.
  • Randomising the order of questions, prompts or flashcards.
  • Building a shuffled playlist or reading order.

Everything runs locally in your browser — your list is never uploaded.