Xerobit

Random Team Generator: Split Names Into Teams

A random team generator takes a list of names and distributes them evenly across groups using a shuffled order. Enter your roster below, pick the number of teams or the size of each team, and press generate to split into teams instantly. Everything runs in your browser, so no data is uploaded anywhere.

Enter one name per line. Blank lines are ignored.

Result

  1. Team 1: Eve, Alice, Bob
  2. Team 2: Charlie, Frank, Diana

How to use the random team generator

  1. Paste your list of names into the text area, with one name per line.
  2. Choose whether to split into a specific number of teams or create teams of a set size.
  3. Enter the count for your chosen mode.
  4. Click Generate to shuffle the names and see the resulting teams.
  5. Click Generate again at any time to get a new random arrangement.

How the random team generator works

This tool uses a Fisher-Yates shuffle to randomize the order of your names before distributing them. The algorithm iterates through the array from the last element down to the first, swapping each element with one at a randomly chosen earlier index. This makes every ordering practically equally likely.

Once shuffled, the distribution depends on your chosen mode. If you select a number of teams, the tool deals names round-robin style: the first name goes to team 1, the second to team 2, and so on until all teams have received one member, then it loops back. If the total number of names does not divide evenly, some teams will have exactly one more member than others.

If you choose a team size instead, the shuffled list is sliced into chunks of that size. For example, 10 names split into teams of 3 produces three full teams and one team with a single remaining member.

Choosing between team count and team size

The two modes serve different planning needs. Selecting a fixed number of teams is ideal when you know how many groups you need, such as splitting a class into four discussion groups or dividing players for a tournament bracket. The sizes may differ by one person if the roster does not divide perfectly.

Selecting a fixed team size is better when the activity requires a specific headcount per group. Board games that support exactly four players, relay races needing three runners per squad, or project teams capped at five members all benefit from this approach. The total number of teams becomes a consequence of the roster size rather than a constraint you set upfront.

Roster sizeModeCountResult
12Teams33 teams of 4
12Size52 teams of 5, 1 team of 2
7Teams31 team of 3, 2 teams of 2
7Size32 teams of 3, 1 team of 1

Random group generator: groups of 2, 3, 4 or 5

For a random group generator job such as random groups of 3 or 4, paste one name per line and choose team size. The table shows what each mode returns. The size mode cuts the shuffled list into consecutive groups, so the last group takes whatever is left. The team-count mode deals names out one at a time, so group sizes never differ by more than one.

RosterGroup sizeResult with team sizeSame roster by team count
30 people215 groups of 215 teams: 15 groups of 2
30 people310 groups of 310 teams: 10 groups of 3
30 people47 groups of 4, 1 group of 28 teams: 6 groups of 4, 2 groups of 3
30 people56 groups of 56 teams: 6 groups of 5
30 people65 groups of 65 teams: 5 groups of 6
25 people46 groups of 4, 1 group of 17 teams: 4 groups of 4, 3 groups of 3
25 people64 groups of 6, 1 group of 15 teams: 5 groups of 5
22 people54 groups of 5, 1 group of 25 teams: 2 groups of 5, 3 groups of 4

To avoid a leftover group of one, work out the number of groups yourself (people divided by the size you want, rounded up) and use team count instead. For random pairs, choose team size 2: an odd roster leaves one person alone, so put that person in a group of three by hand, or use team count instead.

Word grouping tool and group randomizer

The list can hold anything you can type on a line, not only names: vocabulary words, ideas, tasks or topics. That makes the page work as a word grouping tool and a group randomizer as well as a team randomizer. Paste the words, choose how many groups you want, and press Generate again for a new arrangement. The tool does not balance skill or keep people apart: it only shuffles.

Practical uses for a team picker

A random group generator removes bias from team selection. Teachers use it to form lab partners or project groups without students feeling singled out. Coaches use it to mix up scrimmage squads from one practice to the next. Event organizers apply it to assign attendees to breakout sessions or trivia tables.

In workplaces, rotating teams for brainstorming sessions prevents the same people from always collaborating together. Pair programming assignments can be randomized weekly to spread knowledge across a development team. Even casual settings like board game nights or fantasy sports drafts benefit from a quick, unbiased split into teams.

If you only need to select a single winner from a list rather than forming multiple groups, a random name picker is better suited for that task. You can also pair this tool with a team name generator to give each newly formed group a creative identity.

Handling uneven splits and edge cases

When the number of participants does not divide evenly, the round-robin method ensures the difference between the largest and smallest team is never more than one person. This is the fairest possible distribution. For instance, 10 people split into 3 teams yields two teams of 3 and one team of 4.

Blank lines and extra whitespace in the input are automatically stripped, so copying a list from a spreadsheet or document rarely causes issues. Duplicate names are treated as separate individuals. If you need to remove duplicates first, consider sorting and cleaning your list with an alphabetize list tool before pasting it here.

Requesting more teams than there are names results in an error, since empty teams serve no purpose. Similarly, requesting a team size of zero or fewer is rejected. These guards prevent nonsensical outputs and keep the tool predictable.

Randomness quality in the browser

The shuffle takes its random numbers from crypto.getRandomValues(), the browser's cryptographically secure generator, not from Math.random(), so the order cannot be predicted from earlier results.

Each random 32-bit number is reduced to a list position with a remainder. That adds a tiny bias, less than 1 in 40 million for lists of up to 100 names, so every split is for practical purposes equally likely however many times you press Generate. It is suitable for classroom and game use; it is not a certified draw for prizes or regulated games.

Worked examples

ExampleInputResult
6 people into 2 teamsNames (one per line): Alice / Bob / Charlie / Diana / Eve / Frank; Split by: teams; Count: 2Team 1: Bob, Alice, Diana, Team 2: Frank, Charlie, Eve
Teams of 3Names (one per line): Alice / Bob / Charlie / Diana / Eve / Frank / Grace / Hank; Split by: size; Count: 3Team 1: Alice, Eve, Bob, Team 2: Frank, Hank, Diana, Team 3: Charlie, Grace
Classroom of 12 into 4 groupsNames (one per line): Ada / Ben / Cia / Dan / Eli / Fay / Gus / Hal / Ivy / Joe / Kay / Leo; Split by: teams; Count: 4Team 1: Leo, Kay, Ada, Team 2: Joe, Hal, Gus, Team 3: Dan, Ben, Ivy, Team 4: Eli, Fay, Cia

FAQ

Can I use commas instead of new lines to separate names?

This tool expects one name per line. If your list is comma-separated, replace the commas with line breaks before pasting, or enter each name on its own row.

What happens if the number of people does not divide evenly?

The generator distributes members round-robin, so the largest team will have at most one more person than the smallest team. No one is left out.

Is the shuffle truly random?

Yes, for practical purposes. It uses the Fisher-Yates algorithm powered by the browser's cryptographic random number generator. Reducing each 32-bit random number to a list position uses a remainder, which adds a bias of less than 1 in 40 million for lists of up to 100 names, far too small to matter.

Can I generate teams larger than the number of people I entered?

No. If you request more teams than you have names, the tool returns an error because creating empty teams is not meaningful.

Are my names stored or sent to a server?

No. All processing happens locally in your browser. Nothing is uploaded, stored, or transmitted anywhere.

How do I give these teams names after generating them?

You can use a separate team name generator to assign fun or thematic labels to each group after splitting.

How do I split a class into random groups of 4?

Paste the class list with one name per line, choose team size, enter 4 and press Generate. With 30 students you get 7 groups of 4 and one group of 2. To avoid the small group, choose team count 8 instead: you get 6 groups of 4 and 2 groups of 3.

How do I make random pairs?

Choose team size and enter 2. Each result row is one pair. If the roster is odd, the last row has one person, so add a name or put that person in a group of three by hand.

Does it balance teams by skill?

No. It only shuffles the names, so every split is equally likely and skill is ignored.