Shuffle Lines
Randomly reorder lines of text — for raffles, randomised playlists, A/B test order or quick sampling.
Quick answer: Randomly reorder lines of text — for raffles, randomised playlists, A/B test order or quick sampling.
Last updated
Frequently asked questions
- Is the shuffle order really random?
- Yes — we use Fisher-Yates with <code>crypto.getRandomValues()</code>, the browser's cryptographic-grade RNG. Every permutation of your lines is equally likely, with no detectable bias.
- Can I re-shuffle the same input again?
- Yes — click Re-shuffle to get a fresh random order without retyping. Each click draws a brand-new random ordering.
- What happens to blank lines?
- By default they're dropped before shuffling so the output is dense. Toggle 'Keep blank lines' if you need them treated as ordinary lines.
- Will duplicate lines be removed?
- Only if you toggle 'Remove duplicates first'. Otherwise duplicate lines remain (and may end up next to each other after shuffling — that's the nature of randomness).
- Is this fair enough to pick a winner?
- Yes — for a giveaway with up to a few thousand entries the cryptographic shuffle is more than fair, and observers can verify in their own browser since the algorithm is deterministic given the same RNG state.
- How big a list can I shuffle?
- Up to about a million lines runs in well under a second on a typical laptop. The bottleneck is the browser rendering the result, not the shuffle itself.
- Will it preserve the original casing and whitespace inside each line?
- Yes — every line is treated as opaque content. Only the order changes; the line text is untouched.
- Is my input uploaded?
- No — every line stays in your browser. The shuffle is a pure JavaScript function with no network calls.
- Can I shuffle words instead of lines?
- No — for that, paste your words one per line and the line shuffler effectively becomes a word shuffler.
- Is the shuffle reproducible if I save the seed?
- Not in this tool — we deliberately use the browser RNG without exposing a seed because most use cases (raffles, randomisation) are stronger when the seed is unknowable.