Random Team Generator
Paste your names, choose how to split them, and get fair random teams.
How the split is calculated
The tool first reads your list: one name per line, blank lines ignored, extra spaces trimmed, and only the first 200 names kept. Then it works out how many teams to make. In "number of teams" mode it uses the number you typed. In "people per team" mode it divides the total by that number and rounds up, so 11 names at 4 per team gives 3 teams. The team count is never more than 50 and never more than the number of names.
Next the list is shuffled with the Fisher-Yates method, using random numbers from crypto.getRandomValues. The shuffled names are dealt out round-robin like cards, one to each team in turn. That is why sizes can differ by at most one person.
Worked examples
- 10 names, 3 teams. The deal gives teams of 4, 3 and 3.
- 11 names, 4 people per team. Three teams are made, and the deal gives 4, 4 and 3. The tool rounds the number of teams up, so the last team is the one that is a person short.
- 24 names, 6 teams. Four people on every team, with nothing left over.
- Few names, many teams. Asking for 8 teams with only 5 names gives 5 teams of one person, since a team cannot be empty.
Getting the most from it
- Paste from a spreadsheet. Copy a single column of names and paste it into the box. Each cell becomes one line.
- Reshuffle freely. Each press of the button is a brand new draw, unaffected by the previous one. Use that to rotate groups week after week.
- Make names unique. If two people share a first name, add an initial, such as "Sam K" and "Sam R", so you can tell them apart in the result.
- Copy the result. The copy button puts the teams on your clipboard as text, ready for a chat message or a slide.
- Balance by skill by hand. The tool only balances size. If you need balanced ability, make one team list per skill level and deal each level separately.
Common situations
A teacher with 28 students wants four groups for a science activity: enter the names, choose 4 teams, and each group gets 7. Next week, press the button again for different groups. A sports organiser with 15 players picks "people per team" and 5, and gets three teams of five. A manager running a quiz with 22 attendees chooses 5 per team and gets five teams: two of five people and three of four.
Questions
Is the shuffle really random?
Yes. The tool uses an unbiased shuffle, so every possible arrangement of the names is equally likely. There is no hidden ordering by position in your list.
Where does my list go?
The box contents are saved in your browser's local storage on this device so they are there next time. Nothing is sent to a server, and clearing the box or your site data removes it.
Can I name the teams?
Teams are shown numbered. Rename them after copying the result.
Why did one team come out smaller?
When the number of names does not divide evenly, the extra people are spread one per team, so some teams will have one fewer person.
Related tools
- Random name picker to choose a single person, such as who goes first.
- Secret Santa generator for private gift matches.
- Coin flip to decide which team starts.
- Dice roller for games after the teams are set.
How the team generator works
Type or paste names, one per line, choose either how many teams you want or how many people per team, and press Make teams. The names are shuffled with a fair random shuffle (Fisher-Yates, using your browser's secure random number generator) and dealt out one at a time, so team sizes never differ by more than one person.
Press the button again for a new draw, or use Copy teams to paste the result into a chat or document. Your names stay in your browser and are never uploaded.
Where random teams help
- Classrooms and workshops: mix groups quickly so students work with different partners.
- Sports and game nights: pick fair sides without arguments about who chooses first.
- Work events: split colleagues into hackathon, quiz or team-building groups.
- Projects and study groups: form new groups every week.
Just need one person? Use the random name picker. Planning a gift exchange? Try the Secret Santa generator.
Frequently asked questions
Are the teams balanced?
Team sizes are as even as possible. With 10 names and 3 teams you get teams of 4, 3 and 3. This tool does not balance by skill, only by size.
Can I keep two people apart?
Not automatically. If two people must not share a team, press the button again until they are apart.
Is my list saved?
The names are remembered in your own browser so they are there next time. They are never sent to us.
How many names can I add?
Up to 200 names and up to 50 teams.