Random Team Generator
Divide a list of people into fair, random teams that differ by no more than one member.
Free random team generator. Split people into fair, balanced teams by number of teams or team size, with custom team names. Great for classrooms and workplaces.
How it works
The Random Team Generator divides a list of people into fair, balanced teams. You paste your participants, choose whether to set the number of teams or the people per team, and press Generate. The tool shuffles everyone with a Fisher–Yates shuffle powered by secure browser randomness, then deals them out as evenly as possible.
The Fisher–Yates shuffle is the gold standard for unbiased randomisation. It walks through the list once, swapping each position with a randomly chosen later position, using secure randomness to pick each swap. The result is that every possible ordering of your participants is equally likely — which means every possible team assignment is equally likely too.
After shuffling, the tool deals people into teams in a round-robin fashion: person 1 to team 1, person 2 to team 2, and so on, wrapping back to team 1 when needed. This guarantees that team sizes differ by at most one person, no matter how many participants or teams you have. If the total does not divide evenly, the remainder is distributed one person at a time so the largest and smallest teams never differ by more than one.
You can also give teams custom names — one per line, in order — which is great for sports matches (Red vs Blue) or themed events. The tool warns you if it detects duplicate names in your input, so you can fix accidental repeats that would otherwise give someone an unfair presence on multiple teams.
Examples
- Dividing a sports class into fair teams. Paste the class list, set two teams, and generate balanced sides for a dodgeball or football match in seconds.
- Creating project groups in a workshop. Split attendees into groups of three or four for collaborative work without the usual cliques forming.
- Organising team-building activities. Mix departments or friend groups randomly so people work with colleagues they would not normally choose.
- Balancing workshop tables. Assign participants to tables evenly so no table is over- or under-populated.
- Setting up a tournament bracket. Generate fair first-round pairings or groupings for a friendly competition.
Common uses
- Sports and PE
- Classrooms
- Workshops
- Team activities
Fairness and privacy
Every possible team assignment is equally likely thanks to a Fisher–Yates shuffle powered by secure randomness. Round-robin dealing guarantees teams differ in size by at most one person, and duplicate-name detection warns you about accidental repeats that could skew the split.
Random results are generated locally in your browser using secure browser randomness (Web Crypto crypto.getRandomValues()) where supported, with equal probability for every valid entry. No account is required, your lists are processed in the browser and never uploaded, names are not sent to analytics, and optional history stays only in your local browser storage. This tool is not for regulated gambling or official lotteries.
Frequently asked questions
Can I create random teams of equal size?
Yes, when the total number of participants divides evenly by the number of teams. Otherwise teams differ by at most one person — the mathematically fairest possible outcome.
What happens when teams cannot be exactly equal?
The remainder is distributed one person at a time using round-robin dealing, so the largest and smallest teams never differ by more than one. A note above the results tells you when this happens.
Why is this tool fair?
A Fisher–Yates shuffle powered by secure randomness makes every possible ordering — and therefore every possible team assignment — equally likely. No one is favoured, and duplicate-name detection warns about accidental repeats.
What is the difference between this and the Group Generator?
The Team Generator focuses on splitting people into balanced teams with optional custom names. The Group Generator adds optional random leaders and group numbers, and is framed for classrooms, workshops and projects.
Can I use this for sports and PE classes?
Yes — it is ideal for splitting a class into fair teams for matches. Add custom team names like Red and Blue for clarity.
How accurate are the results?
Every team assignment is equally likely, and sizes are guaranteed to differ by at most one. Over many generations, no participant is systematically favoured.
Are my names stored or uploaded?
No. Everything runs in your browser. Your lists are never sent to a server.
Can I set team names?
Yes. Type custom names one per line in the optional team-names box, in order. Teams without a custom name fall back to “Team 1”, “Team 2”, and so on.
Is this tool free?
Yes, completely free with no registration, on any device.
Does a previous result affect the next one?
No. Each generation is independent; pressing Shuffle Again produces a fresh, unrelated split.
Related tools
- Random Number Generator — Generate one or more random numbers within a range you choose, with full control over type, quantity and sorting.
- Random Name Picker — Select one or more names fairly from any list — a random classroom name picker for teachers, giveaways and meetings.
- Wheel Spinner — Create an interactive spinning wheel of names, choices or activities.
- Coin Flip — Simulate one or more fair coin flips with an even 50% chance of heads or tails.
- Dice Roller — Roll standard and RPG dice using notation such as 2d6 or 1d20+5.