Random Group Generator

Randomly divide people or items into fair groups and teams.

Enter items, one per line

Enter items first

groups

No groups generated yet

Enter names above, then click Generate.

info

About Random Group Generator

The Random Group Generator takes a list of names or items — one per line — and divides them into balanced groups using a fair Fisher-Yates shuffle. You control the split two ways: choose how many groups you want and the tool fills each one evenly, or choose how many members each group should contain and the tool creates as many groups as needed. Leftover members when the list does not divide evenly are distributed one per group rather than piled into a single overflow group.

The tool is designed for situations where the division itself must be unbiased: picking project teams in a classroom, splitting a workshop cohort into breakout rooms, forming sports squads from a sign-up list, or assigning reviewers in a code-review rotation. Unlike a random name picker — which selects one winner from a pool — or a random list shuffler — which reorders items without grouping them — this tool produces structured, labeled groups ready to share or paste directly into a meeting agenda.

Every shuffle runs entirely in your browser. Names are never uploaded, stored, or transmitted to any server, so participant lists from HR, classrooms, or private events stay completely private. The tool is free with no account required, and you can regenerate as many times as you like until you get an arrangement that works.

star

Key Features

check_circle

Two split modes

Divide by number of groups (e.g., 3 teams from 18 people) or by group size (e.g., pairs from any list). Switch modes with one click without losing your list.

check_circle

Fisher-Yates shuffle for unbiased randomness

Every item has an equal probability of landing in any group. The algorithm avoids the clustering bias that plagues naive sort-based shuffles.

check_circle

Balanced distribution of remainders

When the list does not divide evenly, extra members are spread across groups one at a time rather than dumped into a single larger group, keeping sizes as equal as possible.

check_circle

Instant regeneration

Click Generate again to get a completely different arrangement in milliseconds. Useful when someone objects to a pairing or when you want to show the draw is genuinely random.

check_circle

Plain-text output for copy-paste

Results appear as labeled group cards and as a plain-text block you can copy and paste straight into a Slack message, email, or shared document.

check_circle

Runs entirely in your browser

No data leaves your device. Participant names from HR records, classrooms, or private events are never sent to a server or stored anywhere.

help

How to Use

01

Enter Names

Type or paste names or items into the text area, one per line. Use the sample data button for a quick demo.

02

Set Mode & Count

Choose By Groups (split into N teams) or By Members (groups of N people), then set the number.

03

Generate Groups

Click Generate to randomly shuffle and divide into groups. Copy the results or regenerate for a new arrangement.

code_blocks

Example

Eight participants split into 3 groups using "By Groups" mode. Members are shuffled first, then distributed round-robin so sizes stay as equal as possible.

Names (one per line)
Alice Chen
Bob Patel
Clara Johansson
David Osei
Emma Larsson
Felix Müller
Grace Kim
Henry Okonkwo
Generated groups
Group 1:
  Alice Chen
  David Osei
  Grace Kim

Group 2:
  Bob Patel
  Emma Larsson
  Henry Okonkwo

Group 3:
  Clara Johansson
  Felix Müller
lightbulb

Common Use Cases

  • arrow_circle_right

    Classroom project teams

    Paste a class roster and split students into project groups in seconds. Regenerate until the teacher is satisfied, or show students the draw is fair by generating live in front of them.

  • arrow_circle_right

    Workshop breakout rooms

    Before a training session or conference workshop, divide all registered attendees into breakout groups of a fixed size so facilitators can prep group-specific materials in advance.

  • arrow_circle_right

    Sports team selection

    Create balanced squads for a company sports day, recreational league, or PE class. Because the shuffle is fair, no one can accuse the organizer of stacking one side.

  • arrow_circle_right

    Code-review rotation

    Split an engineering team into review pairs or trios for a sprint. Use "By Members" mode with a count of 2 or 3 to generate this sprint's review partners at standup.

  • arrow_circle_right

    Event table assignments

    Randomly seat guests or participants at dinner tables when you want to encourage cross-team mixing. Set group size to match table capacity and copy the output into your seating plan.

quiz

Frequently Asked Questions

What is a Random Group Generator? expand_more
A Random Group Generator is a tool that randomly divides a list of people or items into groups. It uses a fair shuffling algorithm to ensure unbiased distribution, making it ideal for creating teams, project groups, or any random division of participants.
What is the difference between By Groups and By Members? expand_more
By Groups lets you specify how many groups to create (e.g., divide 12 people into 3 groups of 4). By Members lets you specify how many people per group (e.g., create groups of 4 from 12 people). Both modes distribute members as evenly as possible.
Are the groups fairly balanced? expand_more
Yes, the tool uses the Fisher-Yates shuffle algorithm for fair randomization. When items cannot be divided evenly, some groups will have one extra member, distributed randomly rather than all in the last group.
Can I use this for classroom or team assignments? expand_more
Absolutely. The Random Group Generator is designed for teachers creating student groups, coaches forming sports squads, managers splitting work groups, and event organizers assigning breakout rooms — any scenario where you need fair, unbiased grouping.
Is this tool free and private? expand_more
Yes, the Random Group Generator is completely free and runs entirely in your browser. No names or data are collected or transmitted to any server, so participant lists from private or sensitive contexts stay on your device.
How is this different from the Random Name Picker or Random List tools? expand_more
The Random Name Picker selects one or more winners from a pool — it picks items, not groups. The Random List tool reorders your list into a shuffled sequence without grouping anything. This tool does something distinct: it takes your full list and divides every item into labeled, balanced groups. Use the name picker when you need a winner; use this tool when everyone participates and you need to know which group they are in.
What happens when my list does not divide evenly? expand_more
Extras are distributed one per group in round-robin order after the shuffle. For example, 10 people split into 3 groups yields two groups of 3 and one group of 4 — the larger group is chosen at random, not always the last one.
Can I regenerate without re-entering names? expand_more
Yes. Click Generate again at any time to produce a completely new random arrangement from the same list. Your names stay in the input field until you clear them manually.