Using the tool
Type or paste your players, one per line. Next choose the split style, either a set number of teams or a set number of players per team. One press of Make teams produces a card for each side, and Copy teams as text sends the lineup to your clipboard for the group chat.
Your list is kept on the device. For next week, just remove the absentees, add newcomers and press again.
A quick example
There are ten names in the sample list. Splitting in two gives fives. Ask for three teams and the sizes are 4, 3 and 3. Choose players per team and enter four, and ten players still become three teams of 4, 3 and 3, as nobody is left without a team.
Now add ratings. Write the list like this:
- Alex 5, Sam 5
- Jordan 4, Taylor 4
- Casey 3, Morgan 3
- Riley 2, Jamie 2
- Robin 1, Charlie 1
Tick Balance teams by rating and request two teams. Alex and Sam end up apart, then Jordan and Taylor, and so on down the list, and each team totals 15. Another press may swap who plays where while keeping the totals equal. A purely random split of these ten does worse: the totals typically differ by almost 4 points, and about one press in twenty opens a gap of 10 or more, leaving both top players and most of the next best together.
Choosing a rating scale
Any consistent figure will do, such as stars out of 5, a score out of 10, a handicap or goals per game. Decimals are fine, written with a point or comma. Unrated players are treated as average for the group, so you can limit yourself to rating the standouts. Keep the scale even, because balancing assumes a 2 is as far under a 3 as a 4 is over it.
Small groups balance exactly or nearly so. Testing 12 to 30 players rated 1 to 5 across two to four teams, we saw team totals within one rating point of each other in 97 cases out of 100.
Why shuffle instead of picking
Captains choosing in turn is slow, and somebody always goes last. A shuffle is over in a second with nobody ranked in public. Give ratings in advance and you get the fairness that picking aims for without the ritual.
Limits are 200 names and 40 teams. A coin toss can decide who kicks off, and the round-robin schedule generator can turn the teams into a fixture list.
Questions people ask
What's the fastest way to split people into random teams?
How do I balance teams by ability?
Can I trust the shuffle?
What happens when the group doesn't split evenly?
Can I keep two players on the same team, or on different ones?
Does the tool save the names I enter?
Where the numbers come from
- Knuth DE. The Art of Computer Programming, volume 2: Seminumerical Algorithms, 3rd edition, section 3.4.2, Algorithm P (shuffling). Addison-Wesley, 1997
- MDN Web Docs, Crypto.getRandomValues() (cryptographically strong random values in the browser)
- Wikipedia, Fisher–Yates shuffle (the algorithm and the modulo-bias pitfall)
- Graham RL. Bounds on multiprocessing timing anomalies. SIAM Journal on Applied Mathematics 17(2), 1969, pp. 416–429 (the largest-first rule used for balancing)