Balanced team generator
Paste your sign-up list with a skill rating for each player and get fair teams: sizes within one of each other, women and men (or any tag you use) spread evenly, friends kept together and rivals apart. It tells you when the split is proved the most even possible, and otherwise how close it is. Then send the teams straight to the schedule builder.
Rating: any scale, same for everyone (1-5, 1-10, a DUPR or NTRP number). Tag is optional: F/M for a coed league, G for goalies, a position; two at once as F G (each is split evenly on its own). Requests go on their own lines: together: Ana, Ben and apart: Cy, Dee. Lines starting # are ignored.
Teams
Late sign-ups: add players to teams you already announced
Paste the announced teams below (this page's CSV, or columns Team, Player, Rating, Tag), then put only the new players in the players box above. drop: Name there takes out a player who left; listing an announced player again updates their rating or tag. Team names and order are kept.
0 keeps everyone where they were told. Allowing one or two moves usually closes most of the gap (measurements); every move is named.
How it works
Each team's ratings are added up. The tool keeps the hard rules (team sizes within one, every tag split as evenly as the numbers allow, together groups whole, apart pairs split) and, inside them, makes the gap between the strongest and weakest team total as small as it can, by thousands of trial swaps from several starting drafts. For up to 16 players it then checks every possible split. On 420 random invented lists of 8 to 16 players it matched the least gap an exhaustive search finds on all 417 that had a valid split (the swaps alone, before that check, matched 413), and on lists of 40 to 200 players it reached its own proved floor (measurements).
Ratings are only as good as the person typing them. A balanced sheet on paper is a starting point: swap two players by hand if you know something the numbers do not.
Questions
How does it decide teams are fair?
Each team's ratings are added up, and the tool makes the gap between the strongest and weakest team total as small as it can, then makes every total as close to the average as it can. Team sizes never differ by more than one, and each tag (for example F and M in a coed league) is split as evenly as the numbers allow.
What does proved the most even possible mean?
The tool works out a floor no split can beat: with whole-number ratings that do not divide evenly, some team must be at least one point ahead, and one star player stronger than everyone else combined forces a gap too. For lists of up to 16 players it also tries every split. When the answer meets the floor, or every split was tried, the page says it is proved; otherwise it shows the floor so you can see how close it got.
Can friends or carpools stay on the same team?
Yes. Add a line like together: Ana, Ben and they are placed as one unit. Add apart: Cy, Dee to keep two players on different teams. If a request cannot be kept without breaking the size or coed split, the page names it instead of hiding it.
What rating scale should I use?
Any scale works: 1 to 5 stars, 1 to 10, a club rating, even decimals like a DUPR or NTRP number. Use the same scale for everyone. A player with no rating is counted at the middle rating of the list, and the page says who.
Is my player list uploaded?
No. The teams are worked out in your browser. Names and ratings are never sent anywhere, there are no accounts, and the page works offline once loaded.
Can I add players who sign up after the teams are announced?
Yes. Paste the announced teams (the CSV this page downloads, or any sheet with Team, Player, Rating and Tag columns) into the late sign-ups box and put only the new players in the players box. Nobody already told their team is moved unless you allow it: set how many announced players may switch, and the page names each one it moved. A line like drop: Kai takes out a player who left. The same rules apply: sizes within one, every tag split evenly, requests kept, the gap as small as it can be.
Can a player have two tags, like a woman who plays goalie?
Yes. Put both in the tag column with a space or slash between them, such as F G or F/G. Each tag is split evenly on its own, so every team gets its share of women and its share of goalies at the same time. If the numbers make that impossible, the page says which team is off and by how much.
Related: the league schedule generator (round robins, courts, blackouts, standings), how to make a round-robin schedule and how a Swiss tournament works.