Choose language

List Randomizer

Shuffle any list into a random order or split it into balanced random groups, then export to CSV, Excel, image or text.

List RandomizerHow it works ↓
One item per line. Empty lines are ignored. 0 items.
Mehmet Demiray Published Updated
Share

How to Randomize a List

Paste your items into the List box, one per line. Leave What to do on Shuffle the list and press Randomize. The new order appears as a numbered table under Shuffled list, with position 1 at the top.

An item is any non-empty line: names, tasks, song titles, numbers, quiz questions or whole spreadsheet rows. Spaces at the start and end of a line are trimmed and empty lines are skipped. The hint under the box shows the item count, so you can check that every line was read before you shuffle.

Under the table, the same result is repeated As plain text, one numbered line per item, such as 1. Cherries and 2. Apples. That gives you several ways to take the result with you:

  • Copy the plain text and paste it into an email, a chat or a document.
  • Press Download .txt to save the plain text as a file.
  • Export the table as CSV or Excel for a spreadsheet, or as an image to drop into a slide or a group chat.

Changing the list or any option clears the previous result, so the table on screen always matches the current input. Press Randomize again for a fresh order, or Reset to clear the box and start over.

If you want the order to be checked by others, export or copy the result right after you shuffle. Each press of Randomize produces a new, independent order, and the old one is not kept.

How the Shuffle Works

The tool uses the Fisher-Yates shuffle, also known as the Knuth shuffle, the standard method for putting a list in random order. In plain words: start at the last item, pick a random position from the first item up to and including the current one, and swap the two. Then move one step toward the start and repeat. When the walk reaches the first item, the list is shuffled.

Each random position comes from your browser's cryptographic generator (crypto.getRandomValues), with rejection sampling so that rounding never favours some positions over others. The outcome is that every possible order is equally likely. The number of orders for nn items is nn factorial:

n×(n−1)×(n−2)×⋯×2×1n \times (n-1) \times (n-2) \times \cdots \times 2 \times 1

With 10 items there are 3,628,800 possible orders, and each one has the same chance. With 20 items the count passes 2.4 quintillion, far more than anyone could ever try by hand.

Some popular shortcuts look random but are not uniform:

  • Sorting with a random comparison, a common one-line trick in code, returns some orders noticeably more often than others, and the bias depends on the sorting algorithm.
  • Swapping each item with any position in the whole list, instead of only positions up to the current one, creates nnn^n equally likely paths. That number cannot be split evenly across the possible orders, so some orders come up more often.
  • Shuffling by hand, such as dragging rows around, tends to leave many items close to where they started.

Fisher-Yates avoids all three problems because each step chooses fairly among exactly the items that have not been placed yet.

Splitting a List Into Random Groups

Under What to do, two options split the list instead of just shuffling it. Both shuffle first and then deal the items round-robin into the groups, like dealing cards, so group sizes never differ by more than one.

Mode You set What you get
Split into a number of groups Number of groups, from 2 up to the number of items Exactly that many groups
Split into groups of a size People per group, the largest size allowed As few groups as possible, none larger than your size

Use the first mode when the number of groups is fixed, such as four tables in a room or three project topics. Use the second when the size matters most, such as pairs for peer review or teams of five for basketball.

A worked example: 23 students in groups of 4. Five groups of four hold only 20 students, so the tool makes 6 groups: five groups of 4 and one group of 3. Leftovers are always spread out. With 9 people and a size of 4, a simple split would give 4, 4 and a lone 1; the tool gives three groups of 3 instead, so nobody ends up on their own.

The result appears under Random groups, with Group, Members and Size columns, and as plain text lines like Group 1: Ana, Ben, Cleo.

If you only need one volunteer from the same class list, a random name picker draws a single name at a time and can remove each pick so nobody is chosen twice.

Everyday Uses

A fair shuffle settles many small decisions quickly and without arguments:

  • Presentation order. Shuffle the names of speakers or students so nobody can say the order was arranged.
  • Team sports and game nights. Split players into two or more even teams with Split into a number of groups.
  • Secret Santa. Shuffle the participants, then let each person give a gift to the next name on the list, with the last person giving to the first. Nobody draws themselves, and everyone gives and receives exactly once.
  • Playlists and reading order. Shuffle songs, chapters or study topics to break habits.
  • Quizzes and surveys. Randomize question order for different versions of a test, or randomize answer options to reduce position bias.
  • Chores and rotations. Shuffle a task list or a duty roster at the start of each week.
  • Fixtures and seeding. Shuffle teams to set the first round of a casual tournament.
  • Small experiments. Split participants into two balanced groups for a simple A/B comparison.

For formal research, such as clinical or academic studies, use a documented randomization protocol and record the method. The tool gives fair random orders, but it does not store seeds or logs that a study audit might require. Export the result immediately if you need a record of the allocation.

Duplicates and Formatting

Every non-empty line counts as one item, whatever it contains. A line copied from a spreadsheet row with several cells stays together as one item, which is useful when you want to shuffle whole records such as a name with an email address.

Remove duplicates is off by default, because in many lists repeats are meaningful, such as the same song placed twice in a playlist. Turn it on when each value should appear once. The comparison ignores upper and lower case and the spaces at the ends of a line, and the first occurrence is the one that is kept. The item count under the box updates immediately, so you can see how many duplicates were removed before you press Randomize.

A few formatting tips:

  • To shuffle a column from Excel or Google Sheets, select the cells, copy and paste. Each cell becomes one line.
  • In the groups output, members are joined with commas. If your items contain commas themselves, replace them with another character first so the members stay easy to tell apart.
  • The CSV and Excel exports keep the position and size columns as plain numbers, so you can sort or filter them in a spreadsheet.
  • Spelling variants like Kate and Katie are different items. Clean up the list first if they refer to the same person.

Private and Free List Shuffling

The randomizer runs entirely in your browser. Your list is processed on your device and is never uploaded or stored on a server, which matters when it contains class rosters, employee names or customer data. Closing the page discards the list and the result.

There is no account and no sign-up, and there is no limit on how often you shuffle or how long the list is. The result can leave the page in four ways: a CSV or Excel file, an image, a copied plain text block or a downloaded .txt file.

Shuffling is one of several random tools on Callculation:

  • To create new random values instead of reordering ones you already have, a random number generator draws numbers from any range.
  • For draws in the style of a lottery, with distinct numbers from a main pool and a bonus pool, a lottery number generator builds the lines and shows the jackpot odds.

Because nothing is saved, the tool is also handy on shared or classroom computers. Paste, shuffle, export, close the tab, and no trace of the list remains on the site.

The ones we answer the most.

How do I randomize a list online?

Paste the items into the List box, one per line, and press Randomize. The shuffled list appears as a numbered table and as plain text you can copy, download or export.

How do I split a list into random teams?

Under What to do, choose Split into a number of groups and set Number of groups, or choose Split into groups of a size and set People per group. Press Randomize and the members of each team appear in the Random groups table.

Can I copy the result into Excel or Google Sheets?

Yes. Export the result table as CSV or Excel and open it in either program, or copy the plain text version and paste it into a column. The CSV file opens in Google Sheets through the usual import.

Is the List Randomizer free, and do I need an account?

It is free, with no sign-up and no account. You can shuffle as many lists as you like, of any length.

Is the shuffle truly random?

Yes. It uses the Fisher-Yates shuffle driven by the browser's cryptographic random generator, with rejection sampling to avoid rounding bias. Every possible order of the list is equally likely, so with 10 items each of the 3,628,800 orders has the same chance.

What is the difference between a number of groups and groups of a size?

Split into a number of groups fixes how many groups you get, and the sizes follow from the list. Split into groups of a size fixes the largest group size, and the tool makes as few groups as possible. In both modes the sizes differ by at most one.

Is my list uploaded anywhere?

No. The list is shuffled in your browser and never leaves your device. Nothing is stored after you close the page.

Why are my groups different sizes?

Your list does not divide evenly into the groups. The tool spreads the leftover items across the groups, so sizes never differ by more than one: 10 people in three groups become groups of 4, 3 and 3.

What happens to empty lines and repeated items?

Empty lines are skipped and spaces at the ends of lines are trimmed. Repeated items stay in the list unless you turn on Remove duplicates, which keeps the first occurrence and ignores upper and lower case.

Can I shuffle numbers with this tool?

Yes. Paste the numbers one per line and press Randomize; any list can be shuffled, including numbers. To create new random numbers in a range instead, use a random number generator.

Is this better than sorting by RAND() in Excel?

The idea is the same, but there is no formula to set up. In Excel, RAND() recalculates with every edit, so the order can change before you save it. Here the order stays fixed until you press Randomize again, and the randomness comes from a cryptographic generator.

References

  1. Fisher–Yates shuffle · Wikipedia
  2. Crypto: getRandomValues() method · MDN Web Docs
  3. Random permutation · Wikipedia