Line Shuffler
This line shuffler randomises the order of the lines in your text using your browser's random number generator. Press the shuffle button again for a completely independent arrangement — nothing is seeded or cached, so repeated shuffles give genuinely different results. Blank lines can be dropped and duplicates removed first, so a list pasted out of an email or a document is usable without a separate cleanup step. It is the quickest way to randomise a list of names for pairing or assignment, shuffle flashcards or quiz questions, or take a random sample by shuffling and keeping the first few lines.
How it works
Puts the lines into a random order using your browser’s random number generator. Press the button again for a different arrangement — every shuffle is independent.
Useful for randomising a list of names for pair assignment, shuffling flashcards or quiz questions, or producing a random sample by shuffling and taking the first few lines.
Everything runs in your browser — nothing you paste is sent to a server.
0 lines in · 0 out · 0 characters.
Shuffling as sampling
Taking the first n lines of a shuffled list is a uniform random sample without replacement. That is worth knowing, because it means you do not need a separate sampling tool — shuffle, then take as many as you want.
How the shuffle works
It uses a Fisher–Yates shuffle, which walks the list once and swaps each item with a randomly chosen earlier one. Every possible ordering is equally likely, which is not true of the naive "sort by a random key" approach people often reach for.
The randomness comes from your browser's general-purpose generator. That is fine for pairing, sampling and quizzes, and not appropriate for anything of real value — use a properly audited process for prize draws.
Common use cases
- Randomising an interview or presentation order.
- Pairing people for reviews or exercises.
- Shuffling flashcards or quiz questions.
- Picking a random subset of test cases to run.
Frequently asked questions
How do I shuffle lines?
Paste your list into the left panel. The shuffled result appears on the right; press "Shuffle again" for a different arrangement.
Is each shuffle independent?
Yes. Nothing is seeded or cached, so pressing the button repeatedly gives genuinely different orders each time.
Can I take a random sample?
Yes. Shuffle the list and keep the first few lines — that is a uniform random sample without replacement, which is exactly what shuffling gives you.
Does it remove blank lines?
By default, yes, since blank lines in a shuffled list are just noise. Untick the option to keep them.
How random is it?
It uses your browser's built-in random number generator with a Fisher–Yates shuffle, which produces a uniform permutation. It is not cryptographically random and should not be used to draw prizes of real value.
Is my list uploaded?
No. Shuffling happens entirely in your browser.
Related tools
Line Sorter & Deduplicator
Sort lines alphabetically, numerically, or randomly, and remove duplicate lines in one click.
Random Number Generator
A random number generator for cryptographically secure integers in any range, one at a time or in bulk, with optional no-repeats.
Letter Randomizer
This letter randomizer scrambles the letters inside each word, optionally keeping the ends.