Shuffle lines at random

Paste a list and mix it fairly. Set a number to keep only that many random lines: a quick way to draw winners, pick a sample or randomise an order.

  • Free
  • No sign-up
  • Runs in your browser
shuffle-lines

100% private — your text is processed in your browser and never sent to any server.

How it works

Paste your list

One entry per line: names, tickets, questions, tasks or numbers.

Set how many to keep

Leave 0 to mix the whole list, or enter a number to draw that many lines.

Copy the result

Press "Shuffle again" for a new draw and copy the one you want.

A fair shuffle, not a quick trick

Shuffling a list sounds trivial, but doing it badly produces results that look random and are not. This tool uses the Fisher–Yates method fed by your browser's cryptographic random number generator, and it avoids the small bias that appears when a random number is squeezed into a range that does not divide evenly. Every possible order of your list is equally likely, which is what you need when the result decides who goes first.

Everyday uses

  • Raffles and prize draws: paste the participants, enter the number of winners and copy the lines that come out.
  • Teams and turns: randomise the order of presentations, the seating or who goes first in a game.
  • Sampling: take a random sample of rows from a long list to check by hand.
  • Study and quizzes: mix questions so they do not always appear in the same order.
  • Testing: randomise the order of test data to find hidden dependencies.

Drawing a fixed number of lines

The option "Keep only this many lines" shuffles the list and then keeps the first lines. Because the shuffle is uniform, those lines are a fair random draw without repetition: nobody can be picked twice. Press "Shuffle again" to make another draw from the same list.

Blank lines and spaces

By default blank lines are removed and the spaces around each line are trimmed, so a stray empty line cannot end up being drawn as a winner. Turn those options off if the blank lines are meaningful for you.

What it does not do

The tool does not keep a record of the draw, cannot be audited afterwards and gives a different result every time you press the button. For a raffle that must be verifiable by other people, run it while everyone watches or record your screen.

Frequently asked questions

Is the shuffle really random?
It uses the Fisher–Yates method with your browser's cryptographic random generator, so every order of the list is equally likely.
How do I pick random winners from a list?
Paste the participants, enter the number of winners in "Keep only this many lines" and copy the result. Press "Shuffle again" to draw again.
Can the same line be picked twice?
No. Lines are drawn without repetition. If the same name appears twice in your list, it can appear twice, so remove duplicates first if that matters.
Does it remove blank lines?
By default yes, so an empty line cannot be drawn. You can untick the option.
Can I get a different result each time?
Yes. Every press of "Shuffle again" produces a new random order.
Is my list sent to a server?
No. The shuffle happens in your browser and your list never leaves your device.