Team Generator

Randomly divide a group of people into balanced teams.

This tool is for informational and educational purposes only. It is not a substitute for professional financial, medical, legal, or engineering advice. See Terms of Service.

Can't find what you need?

Request a Tool

How to Use the Team Generator

Enter your participants, set the number of teams, and click Generate Teams. The tool shuffles names using a Fisher-Yates algorithm and distributes them evenly.

  1. Enter names: Type or paste one name per line. Blank lines are ignored. You can paste directly from a spreadsheet or participant list.
  2. Set team count: Enter how many teams to create. If the number of participants does not divide evenly, some teams will have one extra member. The distribution is as balanced as possible.
  3. Generate: Click Generate Teams to randomize. Click again to re-shuffle if you want a different arrangement.
  4. Copy: Copy copies all teams as formatted text (Team 1: Alice, Bob / Team 2: Charlie, Diana) that you can paste into a message or document.

About Random Team Generation

Fair team division uses a Fisher-Yates shuffle to randomize the name order, then distributes names in round-robin fashion across teams. This ensures that both the team assignment and the within-team ordering are random. The result is statistically fair: every possible team configuration has an equal chance of being generated. This is the same algorithm used in many competitive games and sports drafts.

Frequently Asked Questions

What happens if the number of people does not divide evenly?

When the number of participants does not divide evenly by the number of teams, the extra people are distributed to the first teams in order. For example, 10 people in 3 teams gives Team 1 with 4 members and Teams 2 and 3 with 3 members each. The assignment is random, so there is no consistent bias about which team gets the extra member.

Can I make teams of a specific size instead of a specific number?

This tool divides by number of teams. To get teams of a specific size, calculate the number of teams yourself first: divide total participants by desired team size and round up. For example, 23 people in teams of 5 means you need 5 teams (23 divided by 5 = 4.6, rounded up to 5). Enter 5 as the team count and the tool handles the uneven distribution.

Is the team assignment truly random?

Yes. The generator first shuffles the complete list using Fisher-Yates shuffle (which produces a perfectly uniform random permutation), then assigns shuffled names to teams in order. Every possible permutation of names is equally likely. The randomness is provided by Math.random(), which is a pseudo-random generator sufficient for fair group assignment.

Can I shuffle teams again without re-entering all names?

Yes. Simply click Generate Teams again. The names stay in the text box and the tool runs a fresh shuffle each time you click. This lets you generate multiple configurations quickly until you find one that works for your group.