Shuffle lines into a random order

Put a list of names, items or questions into a random order, with every order equally likely. Uses the browser's secure random source and uploads nothing.

How to shuffle lines

  1. 1

    Paste one item per line

  2. 2

    Choose whether to leave out blank lines

  3. 3

    Shuffle and copy or download the new order

A fair random order for a list, made on your own device

Shuffling a list is useful whenever order should not depend on who typed first. A prize draw from a list of entries. Teams or groups made from a class list. Quiz questions in a different order for each sitting. A reading order that does not always start with the same name. Paste one item per line and press the button.

A fair shuffle

The lines are shuffled with the Fisher-Yates method: working from the last line to the first, each line swaps places with one picked at random from those not yet placed. Done properly, it makes every possible order equally likely. The common shortcut of taking a random number and using the remainder after division quietly favours some positions over others, so each pick here is drawn again whenever it would fall in that uneven part of the range.

The random numbers come from the browser’s cryptographic random source, the same one used to create keys. An everyday generator is fine for a game, but its output can in principle be predicted, and a draw that decides who wins something should not be.

Blank lines and line endings

Blank lines are left out by default, because an empty line shuffled into the middle of a list is easy to miss and looks like a missing entry. Untick the option to keep them. A line break at the very end of the text stays at the end of the result, and lines ending in Windows line breaks come out with plain ones.

The result cannot be repeated

Each press gives a new order, and there is no seed to replay one. If the order matters later, for a draw you may need to show again, download the result or copy it somewhere safe before pressing again.

To put the list back in order, use Sort lines, and to turn it upside down instead, Reverse text.

Nothing is uploaded. The list is shuffled in this tab and is gone when you close it.

Everything you need

Every order equally likely

A Fisher-Yates shuffle with unbiased picks, so no line is more likely to land first or last than any other.

Secure random source

The picks come from the browser's cryptographic generator, suitable for a draw that has to be fair.

Private by design

Names, entries and answers are shuffled in your browser and never leave your device.

Nothing uploaded: open the Network panel while it runs and check.

No daily limits or watermarks: free batches take up to 20 images.

Works offline: once the page has loaded, on any current browser.

Frequently asked questions

Is every order equally likely?

Yes. The lines are shuffled with the Fisher-Yates method, and each random pick is drawn so that no position is favoured. With three lines, each of the six possible orders comes up as often as the others.

Can I use it to pick a winner?

Yes. Shuffle the list of entries and take the first line. The randomness comes from the browser's cryptographic random source, the one used for keys and passwords, rather than a predictable everyday generator.

Why is the result different every time?

Because it is random. Press the button again for a new order. If you need the same order later, download or copy the result, since it cannot be produced again.

Is my list uploaded?

No. The shuffle runs in this browser tab, and the names or answers in the list are never sent anywhere.

Sources

Related guides

Work with files privately and confidentlyPractical, sourced explanations for safer file conversion, sharing, and cleanup.