Shuffle / Randomize Lines
Randomly reorder the lines in your list — useful for randomized testing and draws.
How the shuffle works
Each line of your text is treated as one item, and the items are put in a random order using the Fisher–Yates method: starting from the last line, each one swaps places with a randomly chosen line at or before it. Given a fair random number source, every possible order is equally likely, so no line is more likely to end up first than any other.
Nothing inside a line changes. Only the order does. In one run, the list Alice, Ben, Chloe, Dev, Emma came out as:
Your result will almost certainly be different, which is the point.
Getting a new order
There is no shuffle button. The order is recalculated every time the text in the box changes, so:
- to shuffle again, type a character at the end and delete it, which reshuffles twice and leaves the text as it was;
- while you are copying, the order stays put, so the copy button gives you exactly what you see.
If you need to keep a particular result, copy it before you edit anything in the box.
Blank lines and repeated lines
Every line counts, including empty ones:
- A trailing line break adds an empty line, which can land anywhere in the shuffled list, including at the top. Run the list through Remove Empty Lines first if you don't want gaps.
- Repeated lines are all kept. If a name appears three times, it has three chances of being drawn first. That is useful for weighted draws, where one entry per ticket is the fair rule, but run Remove Duplicate Lines first if each name should appear once.
Good uses, and one to avoid
A shuffled list is handy for picking presentation or speaking order, splitting a class into groups (shuffle, then take the lines in fives), randomising quiz questions, ordering survey options so the first one isn't always favoured, and sampling test data.
For a prize draw where money or legal rules are involved, use a method you can document and repeat. The randomness here comes from your browser's ordinary random number generator, which is fine for everyday choices but isn't designed to be audited or reproduced, and each result is gone once you change the text.
Frequently asked questions
How do I pick one random winner from a list?+
Shuffle the list and take the first line. Because every order is equally likely, every line has the same chance of landing in first place. For several winners, take the first few lines.
Can the shuffle leave the list in its original order?+
Yes, that order is one of the possible results, but its chance gets tiny quickly. With 5 lines there are 120 possible orders, and with 10 lines more than 3.6 million.
Can I shuffle words or paragraphs instead of lines?+
The tool only shuffles lines. To shuffle words, put each word on its own line first. To shuffle paragraphs, each paragraph needs to be on a single line, which you can do by joining each one with Text to One Line before you build the list.
Embed this tool on your website
Free to use on blogs, school sites and intranets. Paste this code into your page's HTML; please keep the credit line.
<iframe src="https://utilityapp.lat/embed/text/shuffle-lines" title="Shuffle / Randomize Lines" width="100%" height="600" style="border:0;max-width:760px" loading="lazy"></iframe> <p style="font-size:13px"><a href="https://utilityapp.lat/text/shuffle-lines">Shuffle / Randomize Lines</a> by UtilityApp</p>