Randomize Lines with a Fair Shuffle
This tool randomizes lines using the Fisher-Yates shuffle. With Seed left empty, the random numbers come from the browser's secure source (crypto.getRandomValues) and are drawn with rejection sampling, so there is no modulo bias and every order of the list is equally likely. Without a seed you get a new order every time you press Shuffle again or change the list.
That fairness holds for the unseeded shuffle only. A seeded order is meant to be repeatable, not to be a fair draw, and the next section explains why.
Shuffle Text Line by Line
The unit of the shuffle is the line. Each line moves as a whole, and the characters inside a line are never mixed. With the sample list of eight names, Alice to Hana, there are 40,320 possible orders. This is useful for a speaking order, a quiz question list, a playlist, test data or a reading list. If you want a text shuffle that mixes words or letters inside a line, this tool does not do that.
The options that clean the list run first. Ignore blank lines drops empty lines and lines with only spaces. Trim lines removes spaces at both ends of each line. Remove duplicates keeps one copy of each line, and matching is exact, so Apple and apple count as different lines.
Pick a Few Random Lines
Set Mode to Pick random lines and type a number in Lines to pick. The tool shuffles the list and keeps the first lines, so each line can be picked once at most. If the list is shorter than the number, every line is returned in random order. A number that is not a whole number of 1 or more gives an error message instead of a guess.
Repeat the Same Order with a Seed
Type any word in Seed to get the same order every time for the same list and settings. With the seed team-a, the sample list comes out as:
Emma
Daniel
Chloe
George
Alice
Farah
Hana
BenWith the seed team-b, the same list comes out in a different order:
Ben
Daniel
Emma
Farah
Hana
Alice
Chloe
GeorgeIn Pick random lines mode with three lines and the seed team-a, you get Emma, Daniel and Chloe, the first three of the first order above.
Clean the List Before You Shuffle
To sort the list instead of shuffling it, use Sort Lines. To remove repeats with more options, use Remove Duplicate Lines, and to drop blank lines on their own, use Remove Empty Lines. After shuffling, Add Text to Each Line can number the lines or add a prefix, and List to Comma Separated can join the result into one line.
Limits and Privacy
The output always uses LF line endings. The tool handles up to 2,000,000 characters. If a browser has no secure random source, the unseeded shuffle shows a message instead of using a weaker one. The shuffle runs in your browser and your list is not uploaded. See the Privacy Policy.