Random Team Generator
Paste a list of names, choose how to split them, and shuffle everyone into fair random teams.
Runs entirely in your browser. Your list of names is never uploaded anywhere.
How to use this tool
This random group generator and team splitter turns a plain list of names into balanced teams in seconds. Type or paste your names into the box, one name per line. Pick a mode: split by the number of teams you want, or by the number of people you want on each team. Set the value, choose how the teams are labeled, then press "Shuffle and split". The tool randomly shuffles every name and divides the roster as evenly as possible. Press the button again any time to reshuffle and get a fresh random team allocation. When you like the result, copy it or download it as a text file.
How it works
The shuffle uses the Fisher-Yates algorithm, which walks the list from the end to the start and swaps each item with a randomly chosen earlier item. This gives every possible ordering an equal chance, so no name is favored. When you split by number of teams, members are dealt out one at a time in round-robin fashion, which keeps team sizes within one person of each other even when the roster does not divide evenly. When you split by team size, names are sliced into chunks of that size, so only the final team may end up smaller.
A real example
Suppose you have 7 players: Alex, Jordan, Taylor, Sam, Riley, Casey, and Drew, and you want 3 teams. Seven does not divide evenly by three, so the tool aims for sizes of 3, 2, and 2. After a shuffle the order might become Riley, Drew, Alex, Casey, Taylor, Jordan, Sam. Dealing round-robin gives Team 1: Riley, Casey, Sam; Team 2: Drew, Taylor; Team 3: Alex, Jordan. Every player landed on exactly one team and the sizes differ by no more than one.
Common questions
How do I shuffle names into groups evenly?
Paste your names, choose "By number of teams", enter how many teams you want, and press shuffle. The tool deals names round-robin so each team ends up within one member of the others, dividing the roster as evenly as possible.
Can I split by team size instead of team count?
Yes. Switch to the "By team size" mode and enter how many people you want per team. The tool creates as many full teams as it can; if the total does not divide evenly, the last team will simply have fewer members.
Is the team allocation truly random?
It uses a Fisher-Yates shuffle, which gives every ordering an equal chance. Each press of the button produces a new independent random team allocation, so you can reshuffle until you are happy with the matchups.
Are duplicate or blank lines handled?
Blank lines and surrounding spaces are ignored automatically. Duplicate names are kept as separate entries, since two different people can share the same first name.
Is my list of names sent to a server?
No. Everything happens locally in your browser using plain JavaScript. Nothing is uploaded, stored, or shared, so it is safe for classroom rosters, work groups, and private events.