Language: English

tools / team-generator

team-generator/

Split a list of names into random groups, by number of groups or by group size, and optionally balance them by score. The list is processed only in your browser; it is not uploaded or saved.

Paste the list (one name per line), choose how to split, and press “Split”. Each press makes a new random split.

Names

No names yet. Write one name per line, or press “Fill in example” to try it first.

Group names

Optional, one per line; missing ones become “Group N”

Groups

What is a random team generator

A random team generator shuffles a list of names and deals them into groups. This page does a Fisher–Yates shuffle with crypto.getRandomValues, so every order is equally likely; by default group sizes differ by at most 1, and when splitting by group size the last group can instead be smaller; it can balance scores and takes up to 1000 people.

How it works

Random split: a Fisher–Yates shuffle driven by crypto.getRandomValues with rejection sampling gives every ordering the same chance, then people are placed into the groups in order. Split by number of groups, sizes differ by at most 1; split by group size, the group count is “people ÷ per group” rounded up, and you can even out the sizes or keep the first groups full and make only the last one smaller.

Balanced split: write “name, score” on each line. People are sorted from highest to lowest score (ties shuffled first), then each goes into the group that has the fewest members and, among those, the lowest total. This is a greedy algorithm: sizes still differ by at most 1, and totals end up close but not guaranteed to be the closest possible.

Example: 23 people in 4 groups gives 6, 6, 6, 5; 23 people with 5 per group always gives 5 groups — even sizes are 5, 5, 5, 4, 4, otherwise 5, 5, 5, 5, 3.

FAQ

How are people split when it does not divide evenly?

When splitting by number of groups, the extra people are added one each starting from group 1, so sizes differ by at most 1: 23 people in 4 groups gives 6, 6, 6, 5. When splitting by group size, the group count is people divided by the size, rounded up; “Even sizes” gives something like 5, 5, 5, 4, 4 and “Last group smaller” gives 5, 5, 5, 5, 3.

How do I make the groups evenly matched?

Tick “Balance by score” and write each line as “name, score”; a comma, semicolon or tab all work, and scores can be decimals or negative; write decimals with a point (e.g. 7.5), not a comma. People are placed from the highest score down into the group with the fewest members and the lowest total, and each group’s total and average are shown. It is a greedy method: usually very close, but not guaranteed to be the most even of all possible splits. Lines without a score are listed by line number instead of being counted as 0.

Every split is different. How do I keep one?

Every press of “Split” or “Split again” reshuffles, and the page does not save results. When you like a result, keep it with “Copy”, “Copy as table” or “Download CSV”.

Can I keep two people out of the same group?

No. This version has no rules such as “keep these two apart” or “assign captains”. If you do not like a split, press “Split again” or adjust the copied result by hand.

How do I paste the groups into Excel or Google Sheets?

Press “Copy as table”: each group becomes one column with its name in the first row, separated by tabs, so pasting fills several columns. Or press “Download CSV” for one row per person with group and name columns; the file is UTF-8 with a BOM so Excel shows non-Latin names correctly. Names starting with =, +, - or @ get a leading ' so spreadsheet apps do not run them as formulas.

How many people and groups can I use?

Up to 1000 people; beyond that only the first 1000 are split and the page tells you. Up to 100 groups. If there are fewer people than groups you get a message instead of a result; if the group size is larger than the whole list you get 1 group. With “Remove duplicate names” (on by default) identical names are kept once and the page says how many were removed.

Is my list saved or uploaded?

No. Lists are usually real names of students or colleagues, so this page deliberately does not store them on your device or send them to a server; splitting happens in your browser and a reload clears everything. Analytics only count page visits and never include your list or results.