Alphabetical, natural (file2 before file10) or by length, any language
Shuffle Lines
Randomize a list of names, questions or tasks with a shuffle that gives every order the same chance.
Loading tool…
How to use shuffle lines
Paste the list, one item per line.
Choose whether to drop blank lines.
Press Shuffle again as often as you like, then copy the order you use.
What this tool does
- Uses the Fisher-Yates shuffle, which makes every order equally likely.
- Draws random numbers from crypto.getRandomValues with rejection sampling, so there is no bias toward any position.
- Keeps every line exactly once and keeps your line endings.
How the result is verified
After every shuffle, the result's lines are sorted and compared with the input's lines sorted; they must be identical, which proves nothing was lost or duplicated.
Frequently asked questions
Is the shuffle really random?
It uses your browser's cryptographic random number generator, the same source used for keys, and the Fisher-Yates method, which gives each possible order the same probability.
Can I use it to pick a winner?
Yes, take the first line after shuffling. For anything with money or legal weight, record the draw so others can see it was done once.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Flip line order, words on each line, or every character
Delete repeated lines, keep order, ignore case or spaces
Number lines with any start, step and format, or strip them