Homeโ€บGeneratorsโ€บEverydayโ€บTeam Generator

Team Generator

Everyday

Split a list of names into random, balanced teams instantly. Enter names, choose the number of teams or team size. Free, client-side, no sign-up required.

What is a Teams?

A Team Generator randomly splits a list of names into balanced teams or groups. Enter names โ€” one per line โ€” choose whether to specify the number of teams or the size of each team, and the tool produces randomly shuffled groups instantly. Every generation uses a fresh random shuffle (Fisher-Yates algorithm), so repeated clicks produce different assignments.

The tool supports two split modes: Number of teams distributes names round-robin across a fixed number of groups, giving each team as equal a count as possible. Team size fills groups of a specified size, leaving any remainder in the last group.

This is useful for classroom group assignments, sports side selection, hackathon team formation, office sweepstakes, escape room group splits, or any situation where you need to randomly partition a list of participants.

For picking a single random winner from a list, use the Random Name Picker. For generating random numbers for draws or lotteries, use the Random Number Generator.


How to use this Teams calculator

  1. Enter the names you want to split into the Names field โ€” one name per line.
  2. Select a Split By mode: "Number of teams" or "Team size".
  3. Enter the desired number of teams (or team size).
  4. Click Generate โ€” the teams appear instantly.
  5. Click Generate again for a different random split.
  6. Copy the result using the copy button.

Formula & Methodology

Shuffle: Fisher-Yates algorithm โ€” iterates from the last element to the first, swapping each element with a randomly chosen element at or before its position. Produces a uniformly random permutation.

Split (number of teams mode): Names are dealt round-robin to N teams: name[0] โ†’ team[0], name[1] โ†’ team[1], ..., name[N] โ†’ team[0], and so on.

Split (team size mode): Names are sliced into consecutive chunks of the specified size. Any remainder forms the last (smaller) team.

Example โ€” 8 names, 3 teams:
- Shuffle: [Fiona, Bob, Hannah, Alice, George, Diana, Evan, Charlie]
- Team 1: Fiona, Alice, Evan (positions 0, 3, 6)
- Team 2: Bob, George, Charlie (positions 1, 4, 7)
- Team 3: Hannah, Diana (positions 2, 5)
Frequently Asked Questions
How does the team generator split names?
The tool shuffles the name list using a random algorithm (Fisher-Yates shuffle), then distributes names evenly across teams. In 'number of teams' mode, names are dealt round-robin so each team gets one extra member if the count doesn't divide evenly. In 'team size' mode, names fill teams of the specified size, with the last team potentially having fewer members.
Can I regenerate teams without changing the input?
Yes โ€” click the generate button again to get a new random shuffled result. Each click produces a different assignment because the shuffle uses a different random seed each time.
What happens if the team count doesn't divide evenly?
Teams receive members as evenly as possible. If you have 7 names and split into 3 teams, two teams get 2 members and one gets 3. The names are shuffled before splitting, so which team gets the extra member is random each time.
What is the Fisher-Yates shuffle?
Fisher-Yates (also called Knuth shuffle) is an algorithm that produces a uniformly random permutation of a list. Starting from the last element, it swaps each element with a randomly chosen element at or before its current position. This guarantees every possible ordering is equally likely โ€” unlike naive approaches that introduce bias.
Can I use this for classroom groups, sports teams, or work projects?
Yes โ€” the tool is generic. Enter any list of names or identifiers (student names, team members, task items), choose the number of groups, and generate. It is equally useful for picking sports sides, forming project groups, assigning office sweepstakes tickets, or randomising any participant list.
Is there a limit to how many names I can enter?
The tool works well with lists of up to a few hundred names. There is no hard limit, but very large lists (thousands of names) may make the output hard to read in the browser. The logic itself has no size restriction โ€” it is bounded only by your browser's memory.
Are the same teams generated every time?
No. A new random shuffle runs on every generation. If you need reproducible results, note the teams shown before navigating away โ€” the results are not saved between sessions.
Is my name list stored anywhere?
No. The shuffle runs entirely in your browser โ€” nothing is transmitted to a server or stored. Names you enter stay on your device only.
Can I use this as a random name picker?
For picking a single winner from a list, the [Random Name Picker](/random-name-generator/) is more appropriate โ€” it picks one name at random from a list. The team generator is designed for distributing a full list across multiple groups.
What if I want teams of exactly equal size?
Use 'Team size' mode and enter the size you want. If the total number of names is not exactly divisible by the team size, the last team will have fewer members. If you need strictly equal teams, remove names from the list until the count divides evenly.