Paste your names, pick the size, and name any two people who should never land together. Your list stays in this browser.
0 names
These two never land in the same group. Add as many pairs as you need.
Every name is shuffled with a Fisher-Yates shuffle, using your browser's cryptographic random number generator rather than the ordinary one. That gives every arrangement the same chance, so nobody is quietly favored by a weak shuffle.
The shuffled list is then cut into groups. If you added keep-apart pairs, the result is checked against them, and the shuffle is re-run until a split satisfies every pair, up to 3000 tries.
Keep-apart is best effort. With many pairs and few groups it can be impossible: three people who must all be apart cannot fit into two groups. When that happens you still get groups, plus a line telling you exactly which pairs are still sitting together. It never silently pretends the constraint was met.
Leftovers get spread, not dumped. In "groups of N" mode, 10 names in groups of 3 gives you groups of 4, 3, and 3 rather than three groups and a lonely pair. Extra people are handed out one each across the groups.
Same list, two tools. The saved class list also powers the Random Name Picker, so you type it once and both pages have it.
You don't have to take our word for it. Every browser has a built-in panel that shows everything a page sends or receives over the internet. On a computer (this doesn't work on a phone):