Skip to content
Test versionSearch

Text and writing

Shuffle lines

Shuffle a list into a random order. Every line is kept, including repeats, and the original order can come up again.

How it worksFAQRelated tools

Content reviewed:

Also available for Germany, in German 

Up to 20,000 UTF-16 units and 1,000 lines before filtering. Trimming and blank-line removal are explicit options.

Own neutral text tool. No upload, storage or sharing. Repeated lines remain repeated. Characters within each line are unchanged unless you choose trimming; Unicode is not normalized. No legal, lottery or statistical certification.

How it works

Fisher–Yates uses bounded rejection sampling from the browser cryptographic random source. Original ordering may recur; no randomness certification.

Worked example

Shuffle three lines containing Alpha, Beta and Alpha: both copies of Alpha remain.

About this calculation

The line shuffler puts the lines of an entered list into a random order. It is useful for anyone who wants to mix up names, tasks or other items, and it keeps every occurrence, so duplicate lines stay duplicated.

The input can hold up to 20,000 UTF-16 units and 1,000 lines before filtering. Trimming spaces and removing blank lines are separate options; otherwise the characters in each line are left exactly as they were and Unicode is not normalised. The new order is produced with the Fisher-Yates method, using bounded rejection sampling from the browser's cryptographic random source.

Because the order is random, the original sequence can appear again. The result can be saved as TXT, JSON or HTML, but it carries no legal, lottery or statistical certification.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

One item per line
Alpha Beta 👩‍💻 é

Result

Original lines
4
Output lines
4

Frequently asked questions

How do I shuffle the lines of a list randomly?

Paste the list with one item per line and run the line shuffler. It randomly reorders the lines and keeps every occurrence, and the result can be downloaded as TXT, JSON or HTML.

Are duplicate lines kept when shuffling?

Yes. Repeated lines remain repeated, so shuffling Alpha, Beta and Alpha keeps both copies of Alpha.

How many lines can I shuffle at once?

The line shuffler accepts up to 20,000 UTF-16 units and 1,000 lines before filtering.

Which method is used to shuffle the lines?

The line shuffler uses the Fisher-Yates method with bounded rejection sampling from the browser's cryptographic random source.

Can the shuffled order be the same as the original?

Yes. The original order can recur, and the line shuffler gives no randomness certification.

Does shuffling change the text inside each line?

No. Characters within each line stay unchanged unless you choose trimming, and Unicode is not normalised. Trimming and blank-line removal are explicit options.