Skip to contentSkip to the inputSkip to the result

Team maker

Split names into random teams

Loading tool

Instructions

Team maker

How to use

  1. Enter one name per line and set the number of teams or the team size.
  2. Write rules as groups joined with + and separated by commas, such as Ava+Ben, Cleo+Dan.
  3. Shuffle again for a new split.

Supported input

  • Duplicate names count once, and the result says how many were merged.
  • Team sizes differ by one at most.
  • People kept apart all go to different teams, people kept together share one, and captains head the first teams, one each.
  • When the rules cannot all be kept, the message says which one is in the way.

Input example

6 people · 2 teams

Result example

Team 1: A, D, E / Team 2: B, C, F

Troubleshooting

  • Nothing is produced for empty input.
  • Split very long text into parts.

Limitations

  • Does not balance by skill or any other attribute.
  • Rules are not saved or put in the address.
  • The result goes into a link only when you press Send result, and nothing is stored on a server.

How it works

  • Shuffles a list of names and splits it into a set number of teams or a set team size, optionally keeping people apart or together and giving each captain a team.

How random teams stay even, and what changes when you add rules

Typical uses

  • Mixing up class groups or workshop tables so they differ each session
  • Splitting a five-a-side or pickup basketball crowd into two sides
  • Pairing study partners while keeping certain people apart
  • Dividing event volunteers into crews, each with one lead

With no rules: shuffle, then deal

The list is shuffled with the Fisher–Yates method, using numbers from the browser’s crypto.getRandomValues. The shuffled names are then dealt like cards: first to team 1, second to team 2, third to team 3, fourth back to team 1, and so on. Team sizes therefore differ by one at most, and any extra people go to the lowest-numbered teams first.

Seven names, Ava, Ben, Cleo, Dan, Eli, Fay and Gus, split into three teams in one run as 3, 2 and 2 people. Because every order is equally likely at the shuffle step, the chance of any two people ending up together is exactly what the arithmetic says. Split 12 people into three teams of four and a given pair shares a team with probability 3/11, about 27.3%; 100,000 simulated splits gave 27.2%.

Choosing a team size instead of a number of teams

  1. 1With Team size, the number of teams is the head count divided by the size, rounded up. People are then spread as evenly as above, so the size you enter works as the largest a team can be.
  2. 2Nine people, teams of 4: rounding up gives three teams, which come out 3, 3 and 3, not 4, 4 and 1.
  3. 3Thirteen people, teams of 4: four teams of 4, 3, 3 and 3. Eleven people, teams of 5: three teams of 4, 4 and 3.
  4. 4Seven people, teams of 2: four teams of 2, 2, 2 and 1, leaving someone on their own. For pair work, ask for three teams instead and get 3, 2 and 2.

With rules: placing groups, not people

People who must stay together are first fused into a single unit. Units containing a captain go one to each of the first teams; the rest are placed largest first, with equal sizes in shuffled order. Each unit tries the teams in a random order and takes the first that keeps within the size limit and the keep-apart rules. If a unit has nowhere to go, the search steps back and tries another arrangement, for up to 200,000 steps before it asks you to drop a rule.

The outcome is random, but this search does not promise that every split satisfying your rules is exactly as likely as every other. In everyday use you will not notice, though it is worth knowing if strict fairness matters. Names in the rules must also match the list exactly: if the list says Cleo and a rule says Cloe, you are told that a rule names someone not on the list.

Balancing skill or other traits

There is no field for skill ratings, but the keep-apart rule does the job of seeding in a tournament. Take as many of the strongest players as there are teams and keep them apart: each team gets exactly one. You can use several groups at once. Nine people, A to I, split into three teams with A+B+C and D+E+F kept apart, came out as F, A, I / G, E, B / H, C, D, so every team received one person from each group.

The same approach spreads out gender, year group or anything else. To put six people evenly across three teams, make two groups of three and keep each group apart. A group larger than the number of teams cannot be spread one per team, so keep each group no bigger than the team count.

Checked

Frequently asked questions

What happens with 10 people and a team size of 3?

The number of teams is rounded up to 4 and people are spread evenly, giving 3, 3, 2 and 2. It does not leave one person alone as in 3, 3, 3, 1.

Does shuffling again change the teams?

Yes, every shuffle starts from scratch. Results are not saved, so copy the teams you want to keep.

What if two people share a name?

Identical names are merged into one, and the result says how many were merged, so make them distinct, for example 'Sam A' and 'Sam B'.

Can I keep two friends apart and choose the captains?

Yes. Join names with + under Keep apart, such as Ava+Ben, and they go to different teams; names joined under Keep together share a team. Separate several groups with commas. Names under Captains head teams 1, 2 and so on. When the rules cannot be kept, for example more people to keep apart than there are teams, or a group kept together larger than a team, the message says which rule is in the way.