Random Team Generator
Free random team generator: paste names, pick the number of teams, and get fair, secure-random teams that differ in size by at most one, all in your browser.
Updated 2026-06-09 · Free · No sign-up · Runs privately in your browser
What is a random team generator?
A random team generator takes a list of names, shuffles them fairly, and splits them into the number of teams you choose so that every team ends up roughly the same size. This tool does exactly that in your browser: you paste one name per line, pick how many teams you want, and click Generate. It scrambles the order with a secure random shuffle, then deals names out one team at a time until everyone is placed. The result is an unbiased split where team sizes differ by at most one person, and a fresh arrangement every time you click.
What does this tool do?
It turns a flat list of people into balanced random groups. You provide two things - a list of names (at least two) and a number of teams (from 2 up to however many names you entered) - and the tool returns that many teams with the names distributed evenly between them. Nobody is left out and no team gets stacked: the difference between the biggest and smallest team is never more than one.
Because the order is reshuffled on every run, two clicks with the same names and the same team count will almost always produce different teams. That is the point - it acts as a neutral referee so no one can claim the split was arranged in their favour.
How does it work?
The method has two steps - a secure shuffle, then a round-robin deal:
- Shuffle. The tool reorders your whole list using the browser’s built-in
crypto.getRandomValues, a cryptographically secure source of randomness. This is a true random shuffle, so every possible ordering is equally likely and the arrangement cannot be predicted from the previous run. - Round-robin split. It then walks the shuffled list and assigns names to teams in rotation: the first name goes to Team 1, the second to Team 2, and so on across all teams, then back to Team 1 for the next name. Dealing one at a time like this keeps every team filling up in step.
Because the deal cycles through the teams evenly, the teams end up the same size when the count divides cleanly, and differ by at most one when it does not. Any “remainder” names left after the last full round simply land on the first few teams, giving them one extra member each.
The tool needs at least two names to form more than one group, and you can request between 2 and (number of names) teams - you can never ask for more teams than there are people, because that would leave empty teams. In short, the method is: securely shuffle the list, then deal the names round-robin into the chosen number of teams.
Examples
Each example follows the exact rules above - secure shuffle, then a round-robin deal. Because the shuffle is random per click, the who lands where changes every time; what stays fixed is the team sizes.
Example 1 - an even split (8 names into 2 teams):
- Paste 8 names, set the number of teams to 2, and click Generate.
- The list is shuffled, then dealt one at a time: names 1, 3, 5, 7 go to Team 1 and names 2, 4, 6, 8 go to Team 2.
- The result is two teams of 4. Click Generate again and the members swap around, but you still get a 4-and-4 split.
Example 2 - an uneven split (7 names into 2 teams):
- Paste 7 names, keep the number of teams at 2, and click Generate.
- After the shuffle, the round-robin deal puts 4 names on Team 1 and 3 on Team 2, because 7 does not divide evenly by 2.
- You get teams of 4 and 3 - sizes differ by exactly one, which is the maximum imbalance the tool allows.
Example 3 - a fresh reshuffle every run (same 8 names, 2 teams again):
- With the same 8 names and 2 teams from Example 1, click Generate a second time.
- The list is reshuffled from scratch, so a player who was on Team 1 before may now be on Team 2.
- The split is still 4 and 4, but the line-ups are different - each generation reshuffles for a fresh split.
Team size reference
This table shows how a given number of names divides into teams. The team sizes are fixed by the round-robin method; only the names inside each team change between runs. Notice that the difference between the largest and smallest team is never more than one.
| Number of names | Number of teams | Resulting team sizes | Largest minus smallest |
|---|---|---|---|
| 8 | 2 | 4, 4 | 0 |
| 7 | 2 | 4, 3 | 1 |
| 10 | 3 | 4, 3, 3 | 1 |
| 12 | 4 | 3, 3, 3, 3 | 0 |
| 11 | 4 | 3, 3, 3, 2 | 1 |
The single fact to remember: divide the names by the teams; if it comes out even, all teams match, and if there is a remainder, that many teams get one extra member each. The total always equals the names you entered - nobody is dropped or duplicated.
Common uses
Splitting people into fair groups comes up constantly, and a neutral tool removes the argument. Typical situations include:
- Sports and PE, picking sides for football, basketball or relay races without anyone accusing the captains of stacking a team.
- Classrooms and workshops, breaking a class into project groups, debate sides or breakout rooms quickly and fairly.
- Office and team-building, sorting colleagues into squads for a quiz, hackathon or icebreaker activity.
- Parties and game nights, dividing guests for charades, trivia or board games where balanced teams keep things fun.
- Tournaments and leagues, seeding players into starting groups when you want chance, not reputation, to decide the draw.
Tips and common mistakes
A few habits make the splits cleaner and avoid surprises:
- Put one name per line. The tool reads each line as a separate person, so two names on one line will be treated as a single entry.
- Remove blank lines and duplicates first. An empty line can count as a missing name, and a repeated name simply lands on a team twice.
- Pick a team count you can actually fill. You need at least two names, and you cannot request more teams than people - asking for 5 teams from 4 names is not allowed.
- Click Generate again for a do-over. If a split feels off, reshuffling gives a completely new arrangement in one click; the sizes stay balanced.
- Do not expect the same teams twice. Each run is independently shuffled, so the line-ups change even when the sizes do not - that is the fairness, not a glitch.
Limitations and notes
This tool only ever produces balanced teams - sizes differ by at most one - so it cannot make deliberately uneven groups (for example, a team of 6 and a team of 2 from 8 names). It splits purely at random and does not balance by skill, role, gender, age or any other attribute, so if you need evenly matched ability you will have to adjust afterwards. It needs at least two names and accepts between 2 and (number of names) teams; outside that range there is nothing valid to split. Identical names are kept as-is, so duplicates are neither merged nor flagged. Everything runs privately in your browser with no network call, so your list of names is never uploaded, logged or stored, and the tool keeps working offline once the page has loaded.
For more quick decisions and random fun, pair this with the coin flip to pick which team goes first, the dice roller for multi-sided rolls, and the random number generator for choosing numbers in any range, or browse the full fun and random tools collection.
Frequently asked questions
How do I generate random teams with this tool?+
Paste or type one name per line, set how many teams you want (from 2 up to the number of names), then click Generate to get balanced random teams.
Are the teams really random or a fixed order?+
Truly random. The list is shuffled with crypto.getRandomValues before being split, so each generation produces a fresh, unpredictable arrangement.
How does it keep team sizes fair?+
It deals shuffled names round-robin, one per team in turn, so every team is filled evenly and sizes differ by at most one player.
What happens if the names do not divide evenly, like 7 into 2 teams?+
The extra names spread one per team from the top, so 7 names into 2 teams gives one team of 4 and one team of 3.
How many teams can I create?+
Anywhere from 2 teams up to as many teams as you have names; you need at least two names and cannot ask for more teams than people.
Why do I get different teams every time I click Generate?+
Each click reshuffles the whole list, so two runs with the same names and team count will almost always split people differently.
Is my list of names sent to a server?+
No. The shuffle and split run entirely in your browser, so your names are never uploaded, logged or stored, and it works offline.