Random Team Generator

Enter 2–300 names, one per line. Start a line with * to mark a key player, such as a strong player or a group leader: key players are spread across the teams first.

Split by

Copy link saves the names and settings, not the teams: whoever opens it draws a new split. Share it only with people who may see the names.

Teams

Your teams will appear here. Press Generate teams to split the list.

About this tool

This random team generator splits a list of names into fair, balanced teams in one click. Paste the names of students, players or colleagues, choose how many teams you need or how many people should be in each, and the tool shuffles everyone into groups whose sizes differ by at most one person.

It is handy for PE lessons, group projects, pickup football, quiz nights, hackathons and workshop breakout rooms. Every arrangement is equally likely, so nobody can accuse the organizer of stacking a team, and you can shuffle again as often as you like.

How it works

Enter one name per line, choose Number of teams or People per team, and press Generate teams. The names are shuffled with your browser's cryptographically secure random number generator (a Fisher–Yates shuffle) and dealt into teams. When the people do not divide evenly, some teams get one extra person: 10 people in 3 teams become teams of 4, 3 and 3, and the teams that receive the extra person are chosen at random.

To keep certain people apart, such as your strongest players or the adults supervising each group, start their lines with *. Key players are dealt to different teams before anyone else, so no team gets a second key player until every team has one. Turn on captains to name one captain per team; when a team has a key player, its captain is one of them. Shuffle again draws completely new teams. To share a split, copy the result as text or as an image; Copy link saves only the names and settings.

Example

A class of 25 students split into 4 teams gives one team of 7 and three teams of 6, because 25 does not divide evenly by 4. If you choose People per team and enter 6 instead, the tool makes ⌈25/6⌉=5\lceil 25/6 \rceil = 5 teams, and since 25 people fit exactly into 5 teams, each team has 5 students.

For four-a-side games with 12 players, 3 of them goalkeepers, mark the goalkeepers with * and choose 3 teams. Each team gets exactly one goalkeeper and three outfield players, and with captains on, each goalkeeper becomes captain of their team.

Assumptions and limits

The generator handles 2–300 names of up to 60 characters each and up to 50 teams. It balances team sizes and the key players you mark, nothing else: it does not know skill levels, ages or friendships. Two identical names are treated as two different people. Teams are not stored anywhere, not even in a copied link, which holds only the names and settings.

Frequently asked questions

Are the teams really random?

Yes. The order is drawn with your browser's cryptographically secure random number generator and a Fisher–Yates shuffle, so every possible split into teams of the chosen sizes is equally likely. Nothing is sent to a server.

What happens if the names don't divide evenly?

Team sizes differ by at most one person. For example, 11 people in 3 teams make teams of 4, 4 and 3. With People per team, the tool uses the smallest number of teams that keeps every team at or below that size, so 11 people in teams of 4 also become 4, 4 and 3.

How do I keep two people apart?

Mark both with * at the start of their lines. Key players go to different teams first, so two marked people only end up together when there are more key players than teams.

Can I share the teams with the group?

Yes. The copy and download buttons give you the teams as text or as an image to post in a group chat or show on a screen. Copy link shares only the names and settings, so whoever opens it draws a new split.

Can I make the teams fair by skill?

Mark the strongest players with * so they are spread out, and shuffle again until the mix looks right. The tool does not rate players itself, so a quick look at the result is still worthwhile.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
namesNames — one per linetext items separated by commas, or one per line (%0A) when an item contains a comma; your own text; Copy link includes itrequired
splitSplit byone of: teams, sizedefault teams
team_countNumber of teamswhole number; allowed 2–50; used with split = teamsdefault 2
team_sizePeople per teamwhole number; allowed 1–300; used with split = sizedefault 2
captainsChoose a captain for each teamtrue or falsedefault false

Examples

  • ?names=Ana,Ben,Cy,Dee,Eli,Fay&team_count=3
  • ?names=*Kim,*Lee,Max,Noa,Oli,Pia,Quinn,Ray&team_size=4&captains=true

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="teams"]