Group Splitter
Paste a list of names and split it into random, round-robin or in-order groups by size or count. Group sizes never differ by more than one person.
The interactive tool loads here when JavaScript runs.
About this toolWhat is Group Splitter?
Group Splitter divides a list of names into teams. Paste one name per line, choose whether you want a fixed Group Size or a fixed Number of Groups, pick an assignment method, and press Split into Groups. Each group gets a colour and a name such as The Awesome Squad.
Sizes are balanced: no two groups differ by more than one person. Ten names in groups of three become 3, 3, 2 and 2, not 3, 3, 3 and a lonely 1. Asking for four groups from nine names gives you four groups (3, 2, 2, 2).
Random assignment uses a Fisher-Yates shuffle driven by crypto.getRandomValues, so every arrangement is equally likely. The whole split happens in the browser, and you can copy the result or download it as groups.txt.
- Balanced groups that differ by at most one member
- Random (Fisher-Yates), Round Robin and Block assignment
- Split by group size or by number of groups
- Optional one-by-one reveal animation
- Copy or download the groups as plain text, all in your browser
Updated
How to use Group Splitter
- Paste names into the Names List box, one per line, or click Load Sample for 15 example names.
- Under Grouping Method choose By Group Size or By Number of Groups, then enter the number.
- Pick an Assignment Method: Random, Round Robin or Block.
- Choose Enable Animation to reveal members one by one (about 3.4 seconds each) or Skip Animation for instant results.
- Click Split into Groups, then use Copy Groups or Download to save the result, or Settings to go back and change the options.
Worked examples
Ten people, groups of three
Input
10 names, By Group Size = 3, Block
Output
Group sizes 3, 3, 2, 2 (first group: the first three names)
ceil(10 / 3) = 4 groups. The two leftover places are spread over the first groups, so nobody ends up alone in a fourth group of one.
Round robin from a sorted list
Input
P1 to P5, By Number of Groups = 2, Round Robin
Output
The Awesome Squad: P1, P3, P5 Team Fantastic: P2, P4
Names are dealt alternately. If the list was sorted by experience, each group gets a mix of senior and junior people.
Background and insight
Two details decide whether a group generator is fair. The shuffle must give every ordering the same probability, which rules out the common array.sort(() => Math.random() - 0.5) trick: its output depends on the sort algorithm and in V8 some orders come up twice as often as others. Fisher-Yates, published by Ronald Fisher and Frank Yates in 1938 and adapted for computers by Richard Durstenfeld in 1964, swaps each position with a random earlier one and is exactly uniform.
The second detail is the remainder. Splitting n people into k groups leaves n mod k people over. Dumping them in a last group produces one tiny team; the balanced approach gives the first n mod k groups one extra member. In Group Size mode the number of groups is n divided by the size, rounded up, so no group is larger than the size you asked for.
Round Robin deals names in list order like cards (first to group 1, second to group 2, and so on), and Block keeps the list order and cuts it into consecutive runs. Both are deterministic, useful when the list is already sorted by skill or department and you want each group to get a spread, or to keep neighbours together.
Common use cases
Classroom groups
Split a class into lab or project groups that are random and the same size.
Workshop breakouts
Divide attendees into a fixed number of breakout rooms for a session.
Sports and games
Make even teams for five-a-side, quiz night or a hackathon.
Cross-team mixing
Sort the list by department, then use Round Robin so every group gets one person from each team.
Tips and limitations
- The animation takes about 3.4 seconds per person, so 30 names is nearly two minutes. Skip it for large lists.
- If the group size or group count is larger than the number of names, a message under the button says so and Split into Groups stays disabled until you lower the number or add names.
- Duplicate names are kept and placed by position, so two people called Sam are treated as two people.
- Random is the only method that changes between runs. Round Robin and Block give the same groups for the same list.
- Fullscreen uses the browser Fullscreen API; press Esc to leave it.
Sources and further reading
- Algorithm 235: Random permutation, Communications of the ACM. Durstenfeld, 1964: the computer version of Fisher-Yates
- Crypto: getRandomValues() method, MDN Web Docs. The random source for the shuffle
- Math.random(), MDN Web Docs. Why Math.random() is not for security-sensitive draws
Frequently asked questions
How do I split a list of names into random groups?
Paste the names one per line, choose By Group Size or By Number of Groups, set Assignment Method to Random and click Split into Groups. The list is shuffled with Fisher-Yates and dealt into balanced groups, so every arrangement is equally likely.
Why are my groups different sizes?
Because the names do not divide evenly. With 10 names in groups of three, two places are short, so you get 3, 3, 2 and 2. Sizes never differ by more than one, and no group is larger than the size you asked for.
What is the difference between round robin and block grouping?
Round Robin deals names one at a time across the groups, like dealing cards, so a sorted list gets spread out. Block cuts the list into consecutive runs, so neighbours in the list stay together. Neither is random.
Is the random team generator really fair?
Yes. It uses a Fisher-Yates shuffle with crypto.getRandomValues, which gives every ordering the same probability. It does not use the sort with Math.random() - 0.5 shortcut, which in V8 makes some orders twice as likely as others.
Can the group splitter balance teams by skill?
Not directly; it only sees names. A practical workaround is to sort your list from strongest to weakest and use Round Robin, which deals the top players across different groups.
How do I save the groups I generated?
Click Copy Groups to put a plain-text list on the clipboard, with each group name followed by its members, or click Download to save the same text as groups.txt.
Is there an in-depth guide to Group Splitter?
Yes. “Fair Random Decisions: Coin Flips, Wheels, Shuffles and Even Groups” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.