Format Code Now
/

Random Team Generator

RG-110

Paste a list of names, choose how many teams or how many players per team, and press Generate to split them at random.

Runs in your browser. Nothing is uploaded.

Names to split. One per line by default (change the separator in the options). Leave empty to try 12 sample players.

Teams

How to use it

  1. Paste or type the names, one per line. Change the separator in the options if you use commas or spaces.
  2. Choose Number of teams or Players per team, and the number.
  3. Tick Give teams colour and animal names if you want them, then press Generate.
  4. Copy the teams. Press Generate again to reshuffle.

How the split works

The names are shuffled and then dealt to the teams one at a time, like cards, so team sizes differ by at most one. With 23 names and 4 teams you get sizes of 6, 6, 6 and 5. In Players per team mode, the tool works out how many teams are needed, so 23 names at 5 per team make 5 teams. Up to 2000 names are accepted.

Names, duplicates and separators

By default names that repeat, ignoring upper and lower case, are removed and the count is shown below the result; tick Keep repeated names to leave them in. Names are separated by new lines by default. With commas, line breaks also separate names. With spaces, every word is a name, so a name with a space in it is split in two. With no input, 12 sample players are used so you can try it.

Error messages and what to do

MessageWhat it meansFix
Too many names (2100). The limit is 2000.The list holds more than 2000 names.Split the list into smaller groups and run each one.
There are 1 name but you asked for 2 teams. Add names or ask for fewer teams.There are fewer names than teams. With a comma or space separator, the names may not have split the way you expected.Add more names, choose fewer teams, or check the separator option.

Questions people ask

How do I split a list into random teams?

Paste the names, pick the number of teams, and press Generate. Each team is listed with its size and its players. You can paste names straight from a spreadsheet column, since one name per line is the default format and extra blank lines are ignored.

Can I set the team size instead of the number of teams?

Yes. Change Split by to Players per team and choose the size. The tool works out how many teams that needs. For example, 23 names at 5 per team make 5 teams, and the last team has 3 players, so sizes still differ by at most one.

Will the teams be the same size?

Almost. Sizes differ by at most one. If the names do not divide evenly, some teams get one extra player. With 23 names and 4 teams you would get sizes of 6, 6, 6 and 5, and which team is smaller is random.

Does it remove duplicate names?

By default, yes, ignoring upper and lower case, and it tells you how many it left out. Tick Keep repeated names if two people share a name.

Does it remember my names?

No. Nothing is saved, so closing the page clears them. The Share link stores the input after the # in the address, which stays in the link and is not sent to a server.

About this tool

Shuffles the names, then deals them to the teams one at a time, so team sizes differ by at most one. By default repeated names (ignoring upper and lower case) are left out and the count is shown at the end. Up to 2000 names are accepted. With commas, line breaks also separate names. With the space separator, a name with a space in it is split into two names. Team names with colours and animals are only used for up to 20 teams, after that teams are numbered. Nothing is saved, and a new click reshuffles. Picks are made in your browser with crypto.getRandomValues, nothing is stored or sent, and each click gives a new result.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.