FPSDEN

Browser tool

Secret Santa Generator – Random Name Pairing | FPSDEN

Draw secret Santa pairings for any group: type the names, block the pairs that should not meet, and get one recipient each. Runs in your browser.

Three people minimum. Blank lines are ignored, and a name typed twice is only counted once.

One pair per line, written like Alice: Carol. The rule counts both ways, so Carol cannot draw Alice either.

Each person's gift recipient will appear here.

Draw a secret Santa pairing for your group without anyone drawing their own name. Type the names in, add any two people who should not be matched, press Pair names, and every person on the list comes back with exactly one recipient.

How to use the secret Santa generator

  1. Type one name per line in the first box. Three people is the minimum, and there is no upper limit worth worrying about: the draw handles a ten-person family list and a forty-person office list the same way.
  2. Optional: add people who should not be paired with each other, one pair per line, written like Alice: Carol. The rule counts both ways, so Carol cannot draw Alice either.
  3. Press Pair names. Every name appears once on the left with one recipient on the right.
  4. Press Copy result and paste it somewhere private. Each line shows only who that one person gives to.

Nothing about the list leaves the browser tab. There is no account, no email step and no server call: the script that shuffles the names is part of this page and runs on your own device.

Why nobody draws their own name

A normal shuffle of a name list can pair a person with themselves, and in a five-person group that happens often enough to ruin the draw. This page instead looks for a complete set of assignments where every person gives to one other person and nobody gives to themselves, which is the arrangement a secret Santa gift exchange needs. Blocked pairs are treated as extra rules on top of that: a pair you list is never allowed in either direction.

Because the rules can conflict, the page checks the whole list before showing anything. If the blocked pairs leave somebody with nobody left to draw, it says so instead of returning a broken list. That is the one message you should act on: remove a blocked pair or add another name and press the button again.

What about two people drawing each other

A mutual pair, where Alice draws Bob and Bob draws Alice, is a legal result but a poor one for a gift exchange, because those two people can work out each other's gift in one conversation. The page treats mutual pairs as a last resort: it keeps looking for an arrangement without them, and only uses one when the blocked pairs leave no alternative. When that happens it says so under the list, so you know why.

Blocked pairs for couples and immediate family

The blocked box is meant for the two or three cases that come up in most exchanges: couples who would rather not buy for each other, siblings who already swap gifts, or a parent and child who want a surprise. Write the pair once and the rule applies both ways. Names in the blocked box have to match the names above exactly, ignoring capitals; a line with a name that is not on the list is ignored and reported under the result.

Group sizes that work

  • Three people: everyone draws one of the other two, and no mutual pair is possible, so the result is a single loop of three.
  • Four to eight people: the usual family or friend group. Mutual pairs are avoidable in almost every attempt.
  • Nine and up: the draw behaves like any larger exchange; add the one or two blocked pairs you need and the rest is random.

Questions people ask

Does everyone get exactly one recipient?

Yes. The result has one line per person, and each name appears once as a giver and once as a recipient. No person is left out and nobody gets two names.

Is this the same as picking names out of a hat?

It reaches the same result in a fairer way. Drawing paper from a hat breaks down when the last person left has only their own name in the pile, which forces a redraw. This page avoids that by planning the whole set of assignments at once.

How random is the draw?

Each attempt uses the browser's cryptographic random source, and the page retries the arrangement until it finds one that satisfies the rules you set. Two people with the same list can get different pairings, and pressing Pair names again produces a fresh draw rather than repeating the last one.

Can I use nicknames or single names?

Any label works, as long as each one is unique. The page compares names without regard to capitals, so typing Alice and alice counts as one person.

Does it work on a phone?

Yes. The page is a single form with two text boxes and one button, and it fits a phone screen without horizontal scrolling.

Can I save the result as a spreadsheet?

Tick Show the result as CSV and the list comes out as giver,recipient pairs, one per line, ready to paste into a spreadsheet.

Need one name instead of a whole pairing? Random Pickers draws a single item from a list, and Random Number Wheel spins a wheel so the group can watch the pick happen.