Random team generator and name picker
Paste a list of names, one per line, and split them into a chosen number of random teams, into teams of a set size, or pick one or more names at random. Team sizes never differ by more than one.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
Teachers, coaches, workshop leaders and friends organising a game night all face the same small job: split a group into teams without anyone feeling the split was rigged. Paste the names, one per line, and choose how many teams you want or how many people per team; the list is shuffled and dealt out like cards, so team sizes never differ by more than one.
The same page also picks one or more names at random, which covers raffles, choosing who presents first and deciding the order of turns. Nothing leaves your device: the names are shuffled in your browser and disappear when you close the tab.
How to use it
- Paste or type the names, one per line. Blank lines are ignored.
- Choose “Make a number of teams”, “Make teams of a set size” or “Pick names at random”.
- Enter the number of teams, the team size or how many names to pick.
- Run it, then copy or download the teams. Run it again for a new draw.
How the calculation works
The list is shuffled with the Fisher–Yates algorithm, using the Web Crypto API for every swap so that each order is equally likely. Names are then dealt to teams in turn (first name to team 1, second to team 2, and so on), which keeps sizes within one of each other. For a set team size, the number of teams is the number of names divided by the size, rounded up.
shuffle (Fisher–Yates with a cryptographic random source), then deal names to teams in turnWorked example
A PE teacher has 10 students and wants 3 teams. The generator shuffles the class and deals the names out, giving teams of 4, 3 and 3, different each time it runs. Asking for teams of 4 instead also produces 3 teams, because 10 ÷ 4 rounds up to 3.
Sample input and result
10 names into 3 teams: sizes 4, 3 and 3, with the names shuffled
Limitations
- Teams are random, not balanced by skill, age or gender.
- The draw is not stored, so it cannot be audited later; announce or save the result if fairness matters.
- The number of teams cannot be larger than the number of names.
Last updated:
Frequently asked questions
How do I make teams of 4 from a class list?
Paste the names one per line, choose “Make teams of a set size” and enter 4. If the class does not divide evenly, some teams get one person fewer.
Can I pick a random winner?
Yes. Choose “Pick names at random” and enter 1, or a larger number to pick several different names at once.
Can I keep two people apart or together?
Not automatically. Run the draw and swap names by hand, or remove a pair from the list and add them to teams yourself.
Are duplicate names allowed?
Yes. Two people called Sam are treated as two separate entries, so add an initial if you need to tell them apart.
How many names can I enter?
Up to 1,000 names, separated by new lines or semicolons.
Troubleshooting
It says there are not enough names.
Reduce the number of teams or names to pick, or add more names to the list.
Some teams have one fewer person.
The group does not divide evenly; the dealing keeps the difference to one person at most.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Static QR code generator
Create a static QR for a URL, Wi-Fi payload, contact vCard or plain text.
Everyday utilities · Server processingQR and barcode reader
Decode supported QR and barcode formats from an uploaded image.
Everyday utilities · Server processingBarcode generator
Generate Code 128, EAN-13 or UPC-A; this does not register a product number.
Everyday utilities · Server processing