Shuffle Lines Randomly
Shuffles the order of lines using your browser's random numbers, useful for making groups or setting a presentation order.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this when a teacher splits students into groups, a manager sets the order of presentations, or a shop owner draws winners from a list of commenters and wants it fair.
Lines are shuffled with the Fisher-Yates algorithm using the browser's secure random numbers, and each click on Shuffle again gives a new order. For a draw, take the first lines of the result.
How to use
- Paste your text into the left box.
- Click Shuffle again for a different order.
- Click Copy or Download.
Frequently asked questions
Is my text sent to a server?
No. The tool runs entirely in JavaScript in your browser, and the text you paste never leaves your device.
Related tools
More Text tools
Trim Whitespace from LinesRemoves spaces and tabs from the start, the end or both sides of each line.Remove Empty LinesRemoves every blank line, or line with only whitespace, from your text.Remove Extra SpacesMerges repeated spaces into one, removes spaces before commas and periods, and adds a space after commas, semicolons, colons, exclamation and question marks.Reverse Line OrderFlips the order of the lines so the last line comes first, handy for reversing a list or a log.Strip HTML TagsRemoves HTML tags, scripts and styles, decodes special characters, and keeps plain text with sensible line breaks.Replace Smart Quotes with Straight QuotesConverts curly double quotes, curly single quotes, long dashes and ellipsis characters into plain typed characters, avoiding errors when pasting into code.
See all text tools