Random team generator

Paste a list of names and this random team generator splits it into the number of teams you choose, or into teams of a set size. Team sizes never differ by more than one person.

  • Free
  • No sign-up
  • Teams are drawn in your browser
  • Up to 1,000 names
One per line, or one line separated by commas

How to use it

  1. 1Paste or type the names, one per line.
  2. 2Choose the number of teams, or how many people go on each team.
  3. 3Press Make teams. Shuffle again for a new draw, then copy, print or share the teams.

How the teams are drawn

Each draw shuffles the whole list with the Fisher–Yates method, using your browser’s cryptographic random number generator (crypto.getRandomValues) rather than Math.random, so every order of the names is equally likely. The shuffled list is then cut into teams. When the names don’t divide evenly, some teams get one more person than others, and which teams those are is drawn too, so Team 1 isn’t always the bigger one.

With a number of teams, you get that many, up to one team per person and 100 in all. With people per team, the generator works out how many teams fit. If people are left over, they can join other teams, which makes some teams bigger than the size you set, or make one more team, which makes some smaller. Either way, sizes differ by at most one. For example, 14 people in teams of 4 makes 3 teams of 4–5, or 4 teams of 3–4.

It works as a team picker for games and sports, and as a random group generator or group maker for class projects. Set people per team to 2 and it’s a random pair generator for partner work. Each line is one person, so a name typed twice is on the list twice, and the tool points out repeats. To draw one name at a time instead, use the random name picker, or spin the wheel spinner in front of the class.

How to make random teams in Excel or Google Sheets

With the names in A2 to A31, type =RAND() in B2 and fill it down to B31. Sort A2:B31 by column B (Data > Sort in Excel, Data > Sort range in Google Sheets), which puts the names in random order. Then, for four teams, type this in C2 and fill it down:

=MOD(ROW()-2, 4)+1

Column C now gives the names team numbers 1, 2, 3, 4, 1, 2… down the list, so the team sizes differ by at most one. Change the 4 for another number of teams, and sort by a fresh column B for a new draw. To list each team together, first copy column C and paste it as values, because the formula numbers rows by where they sit and would change when they move, then sort A2:C31 by column C. The random team generator at the top of this page does the same in one step.

Questions

Related tools