Random Group Generator

Put your class into fair random groups in one click. Paste the names, choose how many groups you want or how big each group should be, and the generator shuffles everyone into balanced groups — no name is ever sent anywhere, because everything runs in your browser.

Runs in your browser — your files and text never leave this device

How do I split a class into random groups?

Paste the names, one per line, and choose how many groups you want — or how big each group should be. This free online random group generator shuffles everyone with a Fisher-Yates shuffle and deals them into balanced groups, so no group is much bigger than the others. Names never leave your browser.

0 names · Your list is saved in this browser only — names never leave this device.

Add at least 2 names and press Generate groups.

Related tools

How to use the Random Group Generator

  1. Paste the names, one per line — from a class list, a spreadsheet column, or typed by hand.
  2. Choose how to split them: a fixed number of groups, or a fixed group size.
  3. Press Generate groups. Use Reshuffle for a fresh split, Project mode to show the groups on a screen, or Copy to paste them into a document.

Fair groups, without the awkward picking

Picking groups by hand is slow and rarely feels fair: the same confident students end up together, someone is always picked last, and the teacher spends ten minutes on what should take ten seconds. A random split removes all of that. Nobody is chosen or left out on purpose, mixed-ability groups happen by chance instead of by design, and the class gets on with the work instead of negotiating who sits with whom.

The two modes cover the two ways teachers actually plan. "Number of groups" fits the lesson — four discussion groups, six lab stations, three debate teams — and the generator works out the sizes. "Group size" fits the activity — pairs for peer review, threes for group work, fives for a project — and the generator works out how many groups that makes. Either way the sizes stay balanced, so no group is left with one person doing the work of three. For a plain shuffled list with no grouping, List Randomizer shuffles any list and picks random winners.

How the shuffle stays fair

The generator uses the Fisher-Yates shuffle, the standard algorithm for an unbiased shuffle, driven by your browser's cryptographic random number generator — the same source of randomness used for security features. Every possible ordering of the names is equally likely, so no student is more likely to land in any particular group. After the shuffle, names are dealt one by one into the groups, like dealing cards, which is what keeps the sizes balanced: a class of 23 split into 5 groups gives groups of 5, 5, 5, 4 and 4, never a group of 8 and a group of 2.

Privacy matters here more than with most tools, because a class list is children's names. The list is stored only in your own browser, in localStorage, so it is still there when you come back tomorrow — and it is never sent to any server, because there is no server involved at all. Press "Clear saved list" and the names are gone from the browser completely. Project mode is designed for the classroom display: large cards, high contrast, readable from the back row, so students can find their group without crowding around the teacher's desk.

Two ways to group: by group count or by group size

Group by count when you know how many groups you need — four groups for four tables, say — or group by size when the group size matters, like groups of four for a project. Either way the groups come out balanced: after the shuffle, names are dealt one by one into the groups, like dealing cards, so a class of 23 split into 5 groups gives groups of 5, 5, 5, 4 and 4 — never a group of 8 and a group of 2.

The shuffle stays fair because it uses a Fisher-Yates shuffle driven by your browser's cryptographic random number generator — the same source of randomness used for security features — not the weaker Math.random many simple tools rely on. Every ordering of the names is equally likely. For the classroom, Project mode shows the groups as large cards on a projector or whiteboard, and the list is saved in your browser, so you can reshuffle the same names into fresh groups another day.

Frequently asked questions

How are the groups shuffled?

With the Fisher-Yates shuffle, the standard unbiased shuffling algorithm, driven by your browser's cryptographic random number generator. Every ordering of the names is equally likely — no name is favoured.

Are the groups balanced?

Yes. After shuffling, names are dealt one by one into the groups, like dealing cards, so group sizes differ by at most one person. A class of 23 split into 5 groups gives groups of 5, 5, 5, 4 and 4.

Do the names leave my browser?

No. The names are stored only in your own browser (localStorage) so the list is still there when you come back. Nothing is uploaded to any server, and clearing the saved list removes them completely.

What is project mode?

A full-screen view with large group cards, made for showing on a projector or whiteboard so the whole class can find their group from their seats. Press Escape or Close to return to the normal view.

How many names can I add?

There is no fixed limit in the tool. The list is stored in your browser, so very long lists of thousands of names depend on your browser's storage, but any normal class, team or workshop list works fine.

Can I make groups of a fixed size instead of a fixed number?

Yes — pick the group-size mode and choose how many people go in each group, for example groups of 4. The generator makes as many groups as the list needs, and the groups stay balanced.

Can I reshuffle the same names into new groups?

Yes. Reshuffle re-deals the same list into fresh groups with a new random shuffle. Your list is saved in your browser, so you can come back and reshuffle it another day without pasting the names again.

Can I use this for teams outside the classroom?

Yes — any list of names works: sports teams, workshop groups, breakout rooms, or project teams at work. Paste the names, pick a group count or size, and the generator splits them into fair, balanced groups.