Fair groups
Names are shuffled with your browser's cryptographic random number generator, then dealt out like cards, so group sizes never differ by more than one. Duplicate names are removed. Choose People per group to make pairs (2) or trios (3); leftovers join existing groups rather than sitting alone.
Need a single random pick instead? The random name picker wheel spins for one name at a time.
How groups are made
Paste a list of names, one per line or separated by commas, and choose either the number of groups or the number of people per group. The names are shuffled using your browser's cryptographic random number generator and then dealt out like cards, one at a time to each group. That guarantees group sizes never differ by more than one, and the assignment is unbiased.
Duplicate names are removed, so a name pasted twice is counted once. Press the button again to reshuffle and get a fresh set of groups.
Group sizes
When the class does not divide evenly, a few groups get one extra person. With 25 students in 4 groups, one group has 7 and three groups have 6. The table shows how seven common cases split.
| Students | Groups | Result |
|---|---|---|
| 24 | 4 | all 4 of size 6 |
| 25 | 4 | 1 of size 7, 3 of size 6 |
| 28 | 5 | 3 of size 6, 2 of size 5 |
| 30 | 7 | 2 of size 5, 5 of size 4 |
| 18 | 3 | all 3 of size 6 |
| 31 | 6 | 1 of size 6, 5 of size 5 |
| 22 | 5 | 2 of size 5, 3 of size 4 |
Nobody ends up alone. In the people-per-group mode, leftover students join existing groups instead of forming a group of one. With pairs, an odd class gets a trio.
Choosing a mode
Use people per group when you care about the size of each team, and number of groups when you have a fixed number of stations or tables. A single group is a quick way to randomise the order of speakers.
| Goal | Setting | Use | Note |
|---|---|---|---|
| Pairs | people per group = 2 | Peer review, think-pair-share | Odd class gets one trio |
| Trios | people per group = 3 | Lab work, short tasks | Leftovers join existing groups |
| Teams of 4 | people per group = 4 | Projects, discussion | Good balance of roles |
| Five groups | number of groups = 5 | Stations, rotations | Sizes differ by at most one |
| Random order | 1 group | Presentation order | The list is the order |
Groups of three or four tend to work well for projects, because everyone has a role. Larger groups let some members coast, and pairs work best for short exercises.
Fairness and trust
Random groups are seen as fair because no one chose them. Showing the list and the method builds trust, and re-running the draw in front of the class makes it transparent. If a particular pairing is a problem, such as students who must be separated, handle it privately and re-draw instead of editing the result.
If you need balanced teams by skill or experience, sort the students into levels first and then generate groups within each level, or deal one from each level into every group.
Beyond classrooms
The same tool works for sports teams, workshop breakouts, secret-pairing exercises, office lunch groups, game nights and committees. For a pairing exercise that must not match someone to themselves, use the Secret Santa generator. For a single pick, a random name picker is simpler.
For a quick toss-up between a few options, the random number generator will do the job.
Tips for good group work
Give each group a clear task, a time limit and a defined output. Assign roles such as facilitator, recorder, reporter and timekeeper, and rotate them. Check in early, since groups that start slowly rarely recover.
Mix up the groups between activities so that students work with different people. Randomising each time avoids cliques and spreads out strengths.
Privacy
Names stay in your browser. They are not sent to a server or stored, so you can paste a real class list. Close the tab and the list is gone. If you want to keep the groups, copy the result or print the page before closing it.
For classes with sensitive names, use initials or student numbers instead of full names.
Quick sizing guide
Before you generate groups, decide the size you want and check how it divides. The table shows several class sizes. A class of 30 splits into 15 pairs, 10 trios or 7 groups of four with 2 students left over, who join existing groups.
| Class size | Pairs | Trios | Fours |
|---|---|---|---|
| 12 | 6 pairs | 4 trios | 3 fours |
| 16 | 8 pairs | 5 trios + 1 extra | 4 fours |
| 20 | 10 pairs | 6 trios + 2 extra | 5 fours |
| 24 | 12 pairs | 8 trios | 6 fours |
| 30 | 15 pairs | 10 trios | 7 fours + 2 extra |
If leftovers worry you, choose a group size that divides the class, or accept one or two larger groups. A group of five is still workable, and a group of one is not.
Turning groups into a lesson
The shuffle is the easy part. A good group activity has a clear job for every member, a product that the group hands in, and a short debrief. Roles such as reader, recorder, checker and reporter make sure no one is left out. A timer keeps the pace, and the Pomodoro timer can double as a classroom clock.
After the activity, ask each group to report one finding. Collecting one answer per group is quicker than hearing from every student and still makes everyone accountable.
Handling absences and late arrivals
Classes are rarely complete on the day. If a student is missing, remove the name before you shuffle, so the groups are balanced for the people who are present. If someone arrives late, add them to the smallest group instead of reshuffling everything, which would disrupt groups that have already started.
Keep a master list so that you can re-run the draw quickly. A reshuffle takes seconds, but a group that has already started is better left alone once work is underway.
Ideas for using random groups
Random groups work well for peer review, where each person reads a partner's draft, for lab stations and for debate teams. They also help with mixing a class at the start of term, so students meet people outside their usual circle. Change the groups every few weeks, so each student works with a range of classmates over the term.
For a jigsaw activity, make groups, give each member a different piece of the topic, and then re-draw new groups that each contain one expert from every original group. That two-step shuffle is easy with this tool, and it spreads knowledge around the room in a short time.
More questions people ask
How do I split a class into random groups?
Paste the class list, choose the number of groups or the people per group, and press Make groups. Press it again to reshuffle.
Can I keep two students apart?
Re-draw until they land in different groups, or place them in the list so that you can check afterwards. The tool does not know about restrictions.
What if the number of students is prime?
Group sizes will differ by one, which is unavoidable. For example, 23 students in 4 groups gives three groups of 6 and one of 5.
Are names saved?
No. Everything stays in your browser and disappears when you close or reload the page.
Worked examples on this page were calculated with the same formulas as the calculator above. Written and last reviewed by Shaun Longbottom, November 2026.
Frequently asked questions
How do I split a class into random groups?
Paste the class list, choose the number of groups or people per group, and press Make groups. Press it again to reshuffle.
Was this calculator helpful?