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

Getting the most from it

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

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

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.