--- title: "Shuffle lines — free, runs in your browser" description: "Randomly reorder a list of lines, using a proper unbiased shuffle. Free, no sign-up, and nothing you enter leaves your browser." url: https://atoneplace.net/tools/shuffle-lines/ site: "At One Place" --- # Shuffle lines Randomly reorder a list of lines, using a proper unbiased shuffle. ## How it works Reorders pasted lines at random. Useful for randomising a draw order, a playlist, a question bank, or picking a winner from a list of names. This uses a Fisher–Yates shuffle driven by the browser’s cryptographic random number generator. That matters more than it sounds: the obvious way to shuffle a list — sorting it with a random comparator — produces a measurably biased result, with some orderings far more likely than others. Fisher–Yates gives every permutation equal probability. Because randomness is genuine, results will sometimes look unshuffled. A few items staying near their original position is expected, not a bug. > This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected. ## Common questions ### Is this properly random? Yes. It uses a Fisher–Yates shuffle with the browser’s cryptographic random number generator, so every possible order is equally likely. ### Why did some lines barely move? Because the shuffle is genuinely random. Real randomness produces runs and near-misses; a result that always looks thoroughly mixed would be the suspicious one. ## Related pages - [Word and character counter](https://atoneplace.net/tools/word-counter/) - [Typing speed test](https://atoneplace.net/tools/typing-speed-test/) - [Remove duplicate lines](https://atoneplace.net/tools/remove-duplicate-lines/) - [Sort lines alphabetically](https://atoneplace.net/tools/sort-lines/) - [JSON formatter and validator](https://atoneplace.net/tools/json-formatter/) - [Text compare](https://atoneplace.net/tools/text-diff/) - [Regex tester](https://atoneplace.net/tools/regex-tester/) - [Case converter](https://atoneplace.net/tools/case-converter/) - [Remove empty lines](https://atoneplace.net/tools/remove-empty-lines/) - [Find and replace](https://atoneplace.net/tools/find-and-replace/)