Random Group Generator from a Name ListPaste names, set rules, print the groups

Paste your names, choose the number of groups or people per group, and shuffle. Add rules to keep people apart or avoid repeat groups, then print the list on Letter paper.

Your input is never sent anywhere.

Details

Names

0 people

A comma-separated list also works when it is on one line. To balance groups by skill level, grade, gender, or department, add a category after a slash, like “Maya Patel/Advanced”, or paste two columns (name, category) from Excel or Google Sheets.

How to split

per group

If the list doesn’t divide evenly

Enter names to see the group sizes here

Rules (optional)

Select names, then add a rule with the buttons below. Selected: 0

Names you enter will appear here

Avoid repeats from earlier rounds

The tool tries not to put the same people together again. You can add as many rounds as you like.

Your groups will appear here

Paste your names, choose the number of groups or people per group, then select Make groups.
To try it first, select Load sample names.

Random groups from a list of names, with rules for who goes where

Paste your names, choose how many groups you want (or how many people per group), and select Make groups. By default, the list is shuffled into groups whose sizes differ by at most one person, and you can shuffle again as often as you like.

When a plain shuffle isn’t enough, add rules: keep certain people together or apart, pin someone to a group, avoid pairs from earlier rounds, or balance categories such as skill level or grade. That covers classroom groups, workshop breakouts, team sports, and table seating.

Results show as cards or a table. You can print them on Letter paper, copy them as text, copy them for Excel or Sheets, or save a CSV. Your names are processed in your browser and are not sent to a server.

Group maker for classrooms, workshops, and team events

Classroom groups and lab partners

Split a class into groups of 3 or 4 for stations, labs, or projects. Use Keep apart for students who work better in separate groups, balance skill levels with categories, and print the list for the board.

Workshop breakouts and training sessions

Mix departments or experience levels in every breakout group. Add each person’s department after a slash, and the Balance by switch spreads the departments across the groups.

Pickup games and rec league teams

Name the groups Team A and Team B, add each player’s skill level as a category, and turn on Pick a leader for each group to choose a captain for every team.

Table seating at dinners, weddings, and parties

Set Group names to Table 1, Table 2… and use Keep together for couples and families. Use Keep apart for guests who should sit at different tables.

Weekly rotations for study groups and clubs

Add each week’s groups to earlier rounds. The next shuffle tries to pair people who haven’t worked together yet, so members meet someone new each time.

Partner work and peer review

Set People per group to 2 for partner reading, peer review, or pair programming. If you have an odd number of names, see the pairs question in the FAQ below to make one group of three.

How to divide a class or team into groups

  1. Paste your names into Names, one per line. To balance by skill level, grade, or another category, add a slash after the name (Maya Patel/Advanced) or paste two columns from a spreadsheet.
  2. Under How to split, choose Number of groups or People per group and enter a number. Pick a style under Group names, such as Group 1, Team A, or Table 1.
  3. Add rules if you need them. Select names under Rules (optional), then Keep together, Keep apart, or Pin to group. You can also add earlier rounds, pick a leader for each group, or balance categories.
  4. Select Make groups. Select Shuffle again for a new result, then print the list, copy it, or save a CSV.

Note: Rules apply only to names that match the list. If you edit a name, check the rule list: names that are no longer on the list appear with a line through them.

Things to know about randomness, rules, and privacy

  • The result changes every time you select the button, even with the same settings. When several arrangements meet your rules, one of them is picked at random.
  • Avoid repeats from earlier rounds reduces repeated pairs but can’t remove them in every case. For a given number of people and group size, there is a limit to how many rounds can go without repeats. The result panel shows how many pairs were repeated.
  • Rules that contradict each other can make grouping impossible. The tool shows an error that explains what to change.
  • If two people share a name, tell them apart, for example “Sam Lee (2)”. Rules and earlier rounds are matched by the name text.
  • Names that contain a comma, such as “Smith, John”, can be used in the list, but they can’t be pasted back as earlier groups because copied text separates names with commas. Write them as “John Smith” if you plan to reuse the groups.
  • Print (Letter) opens your browser’s print dialog. Groups as columns prints in landscape and Names in roster order prints in portrait. In the print dialog you can choose Save as PDF instead of a printer.
  • Your names stay in your browser. If you turn on Save names, rules, and earlier rounds in this browser, they are stored on that device only.

How many groups? Chart for 3, 4, and 5 people per group

Find how many groups you get when you split a class or team into groups of 3, 4, or 5. The sizes below match People per group with Spread evenly selected, so group sizes differ by at most one person.

Class size3 per group4 per group5 per group
12 people4 groups of 33 groups of 43 groups of 4
15 people5 groups of 34 groups: 3 of 4, 1 of 33 groups of 5
18 people6 groups of 35 groups: 3 of 4, 2 of 34 groups: 2 of 5, 2 of 4
20 people7 groups: 6 of 3, 1 of 25 groups of 44 groups of 5
22 people8 groups: 6 of 3, 2 of 26 groups: 4 of 4, 2 of 35 groups: 2 of 5, 3 of 4
24 people8 groups of 36 groups of 45 groups: 4 of 5, 1 of 4
25 people9 groups: 7 of 3, 2 of 27 groups: 4 of 4, 3 of 35 groups of 5
26 people9 groups: 8 of 3, 1 of 27 groups: 5 of 4, 2 of 36 groups: 2 of 5, 4 of 4
28 people10 groups: 8 of 3, 2 of 27 groups of 46 groups: 4 of 5, 2 of 4
30 people10 groups of 38 groups: 6 of 4, 2 of 36 groups of 5
32 people11 groups: 10 of 3, 1 of 28 groups of 47 groups: 4 of 5, 3 of 4
35 people12 groups: 11 of 3, 1 of 29 groups: 8 of 4, 1 of 37 groups of 5

How to read the chart
“6 groups: 4 of 5, 2 of 4” means four groups of 5 people and two groups of 4. When you enter People per group, the tool works out how many groups are needed and spreads the people across them.

  • Spread evenly: the method used in the chart. Every group has about the same number of people.
  • Smaller last group: full groups of the size you chose, with the leftover people in the last group. For 30 people at 4 per group, that is 7 groups of 4 and 1 group of 2.

For a class size that isn’t listed, enter the names above and the group sizes appear under How to split.

Group size, fair splits, and rotating partners

Answers to common planning questions: how many people per group, how to keep the split fair, and how many rounds you can go without repeating a pairing.

How many people should be in each group?

Groups of 3 to 5 are a common range for classroom work. Pairs suit peer review and partner reading, and 3 or 4 keeps every person involved in a short activity. Larger groups give more variety but leave more room for someone to stay quiet.
Pick the size from the activity, then enter it under People per group. If you don’t know the size yet, enter a Number of groups instead and let the tool divide the list.

Why random grouping feels fairer than picking by hand

When one person picks the groups, they tend to pair friends or avoid difficult combinations without meaning to. A shuffle removes that choice, so the organizer can say they didn’t decide who goes where.
A plain shuffle can still produce a split you don’t want. That is why the tool lets you add Keep together, Keep apart, and Pin to group rules before the first shuffle, instead of reshuffling until the result looks right.

Rotating groups: how many rounds before partners repeat?

In each round, a person meets (group size − 1) new people. So the most rounds you can run without repeating any pair is (people − 1) ÷ (group size − 1), rounded down.
For 24 people in groups of 4, that is 23 ÷ 3, so at most 7 rounds. The real number is often lower, because not every size works out cleanly. Avoid repeats from earlier rounds reduces repeated pairs and shows how many remain, but it can’t promise a round with none.

Balancing skill levels, grades, or gender across groups

Give every person a category, such as Beginner, Intermediate, or Advanced, and turn on the Balance by switch. The tool adjusts the groups so each one gets a similar share of every category.
With 8 people in each of three levels and groups of 4, for example, each group gets a mix instead of one group of all Advanced. Keep together and Pin to group take priority, so the more of those rules you add, the looser the balance can be.

Common problems: conflicting rules, repeats, and pasted lists

The rules conflict, so no grouping is possible

For example, you choose 6 people for Keep apart but there are only 5 groups, or a Keep together set is larger than the biggest group. When rules contradict each other, no arrangement can satisfy all of them.

💡 See the solution▼
The tool shows an error that explains what to change. Keep each Keep apart set at or below the number of groups, and keep each Keep together set within the largest group size. If you are unsure, remove every rule except the ones you need.

The same groups keep showing up because earlier rounds weren’t added

The tool doesn’t record results on its own. If you don’t add the previous round, people who worked together last time can land together again, especially in small groups.

💡 See the solution▼
After each shuffle, select Add this result to earlier rounds. To carry the rounds to another day, select Copy as text, save it, and paste it under Avoid repeats from earlier rounds next time, then select Add pasted groups.

Earlier rounds don’t match because names are spelled differently

“Sam Lee” and “Samuel Lee”, or “maya patel” and “Maya Patel”, count as different people. Earlier groups pasted from another document often differ in small ways, so repeats slip through.

💡 See the solution▼
Paste groups made with this tool (Copy as text) whenever you can. Rules are built by selecting names from the list, so they match automatically. After you edit the list, check the rule list for names with a line through them.

Reshuffling until you like the result

If you keep selecting Shuffle again until you get the groups you wanted, you are choosing the groups yourself. The result is no longer random, and others may suspect it was redone.

💡 See the solution▼
Use Shuffle again only to fix a mistake in your rules. Put your preferences into Keep together or Keep apart before the first shuffle, and use Reveal one group at a time when you announce the result.

One group ends up much smaller than the rest

With Smaller last group, 30 people at 4 per group make seven groups of 4 and one group of 2. That may be too few for some activities.

💡 See the solution▼
Switch to Spread evenly: 8 groups, six of 4 and two of 3. You can also choose Number of groups and enter the count you want.

A pasted list is split into the wrong names

A roster pasted on one line, such as Smith, John, Doe, Jane, is read as four separate names, because commas separate names on a single line.

💡 See the solution▼
Paste one name per line. When the list has several lines, a comma inside a line stays part of the name. Write names as First Last if you plan to paste the groups back as earlier rounds.

Questions about pairs, rules, printing, and privacy

Q.How do I split a list of names into random groups?

Q.

A. Paste one name per line into Names, choose Number of groups or People per group, and select Make groups. Select Shuffle again for a new result. A comma-separated list also works when it is pasted on one line, and bullets or list numbers at the start of a line are removed.

Q.How do I split 30 students into groups of 4 when it doesn’t divide evenly?

Q.

A. Choose People per group, enter 4, and keep Spread evenly selected. Thirty people become 8 groups: 6 groups of 4 and 2 groups of 3, so no group is more than one person larger than another. If you would rather have full groups and a short last one, select Smaller last group. You then get 7 groups of 4 and 1 group of 2.

Q.How do I keep two students from being in the same group?

Q.

A. Select two or more names in the list under Rules (optional), then select Keep apart. Everyone you selected lands in a different group. If you select more people than there are groups, the tool shows an error, because that can’t be done.

Q.How do I get different groups each time, without repeating last week’s partners?

Q.

A. Under Avoid repeats from earlier rounds, add the earlier groups. Either paste them one group per line (Group 1: Maya Patel, Liam Johnson, Sofia Garcia) and select Add pasted groups, or select Add this result to earlier rounds after each shuffle. The tool then tries to place people who already worked together in different groups, and shows Pairs repeated from earlier rounds. It reduces repeats but can’t remove them in every case, especially after many rounds.

Q.How do I make random pairs from a list of names?

Q.

A. Choose People per group and enter 2. With an odd number of names, Spread evenly leaves one person in a group of one. To get one group of three instead, choose Number of groups and enter half the names, rounded down: 12 groups for 25 names.

Q.Can I pick a team captain or group leader at random?

Q.

A. Yes. Turn on Pick a leader for each group before you select Make groups. One person per group is chosen at random and marked with a crown icon on screen and a ★ in the printout and CSV. Select Pick leaders again to redraw the leaders without changing the groups. The same switch works for team captains.

Q.Can I make balanced groups by skill level, grade, or gender?

Q.

A. Yes. Add a category after each name with a slash, for example Maya Patel/Advanced, or paste two columns (name, category) from a spreadsheet. A switch named Balance by followed by your categories appears, and each group then gets a similar share of every category. Keep together and Pin to group take priority over the balance.

Q.How do I put certain people together or fix someone in a specific group?

Q.

A. Select the names under Rules (optional), then select Keep together to place them in the same group. To fix someone in a group, choose the group in the list next to Pin to group and select that button. Everyone else is shuffled around the pinned names.

Q.Can I use it to make random teams for a pickup game or rec league?

Q.

A. Yes. Under How to split, set Group names to Team A, Team B… (or Team 1, Team 2…). Add each player’s skill level after a slash, such as Dana Cruz/Advanced, so the teams get a similar mix. Turn on Pick a leader for each group to name a captain for every team.

Q.How do I print the groups or paste them into Excel or Google Sheets?

Q.

A. After you make groups, use Print, copy, and save. Print (Letter) opens your browser’s print dialog with either groups as columns or a list of names in roster order. Copy for Excel or Sheets copies tab-separated rows that you can paste into a spreadsheet, and Save as CSV downloads a file named random-groups.csv.

Q.How random is the shuffle?

Q.

A. The tool uses your browser’s crypto random number generator, and falls back to Math.random if it isn’t available. With no rules, earlier rounds, or categories, each name has the same chance of landing in any group that still has room. When you add earlier rounds or categories, the tool compares several shuffles and keeps the one with fewer repeats or a better balance, so the result is no longer a plain random draw.

Q.Are the names I paste sent to a server?

Q.

A. No. The shuffling runs in your browser, and your names are not sent to our server. By default nothing is saved, so closing the page clears them. If you turn on Save names, rules, and earlier rounds in this browser, they are stored on this device only. Turn it off on a shared computer; doing so also deletes the saved data.

Q.How many names can I enter?

Q.

A. Up to 500 names. Names past 500 are not loaded, and a notice tells you so. Adding many rules or a long list of earlier rounds can make the shuffle take longer.

User Feedback & Request

Your feedback
makes this tool better.

Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.

Send feedback