Account

What new tool do you want?

Fun & Games

Secret Santa Generator

Draw Secret Santa names instantly — nobody gets themselves, and you can stop couples or housemates from drawing each other.

How to use

  1. 1Enter everyone's names, one per line.
  2. 2Add pairs who shouldn't draw each other (e.g. Sam - Alex), then press Draw.
  3. 3Share each pairing privately — or have one neutral person send them.

How it's calculated

A random assignment is drawn where nobody gets themselves or an excluded partner (a constrained derangement), retrying until every rule holds.

Frequently asked questions

How do I keep it secret?

Have someone not taking part run the draw and message each person only their own match, or print and fold the slips.

What if the rules make it impossible?

With too many exclusions (e.g. three people where two are excluded from each other), no valid draw exists and you'll be told.

What's a good spending limit?

Set one in advance — $20–30 / €20–30 is common for office exchanges.

What 'nobody gets themselves or an excluded partner' means

In math terms, a valid Secret Santa draw is a derangement — a shuffled assignment with no fixed points — further constrained so excluded pairs (like couples or housemates) never draw each other in either direction. Rather than building one directly, the tool takes the simpler route of shuffling the full name list and checking the result against both rules, retrying with a fresh shuffle up to 5,000 times until one passes. For any reasonably sized group this succeeds almost immediately; it's a brute-force approach, but a fast one for this kind of small combinatorial problem.

Worked example: 6 people, one excluded pair

With Sam, Alex, Jordan, Taylor, Morgan and Riley entered, and 'Sam - Alex' marked as an excluded pair, the tool discards any shuffle where Sam draws Alex, Alex draws Sam, or anyone draws their own name. A valid result might be: Sam → Jordan, Alex → Riley, Jordan → Taylor, Taylor → Morgan, Morgan → Sam, Riley → Alex. Every name appears exactly once as a recipient, nobody has themselves, and Sam/Alex never appear as each other's match — exactly the two conditions the retry loop is checking on every attempt.

When no valid draw exists

Exclusions can make the puzzle unsolvable — the clearest case is three people where two of them are mutually excluded from each other, since the only way to deal out three distinct names runs into that blocked pair no matter the order. The tool gives up after 5,000 failed attempts and tells you to remove an exclusion rather than silently producing an invalid draw; in practice, this only happens with small groups carrying a disproportionate number of exclusion rules relative to the headcount.

Keeping the draw actually secret

The tool shows every pairing on one screen the moment you press Draw, so running it while everyone's watching defeats the point. The practical pattern is to have one neutral, non-participating person run the draw and privately message each participant only their own line, or to generate it, screenshot the full list, and crop/forward each line individually — the tool itself doesn't handle distribution, just the fair assignment.

Six names are filled in, and Sam is already blocked from drawing Alex

The exclusion box opens as Sam - Alex, one pair per line, and the budget note opens as $25. I need at least three different names. Blank lines are ignored. If the exclusions make a fair draw impossible, the message says to remove one and try again, and no partial list is shown. The button says Draw names. A new draw replaces the previous assignment. The budget line is just text attached to the result, not a check that gifts match the number. Changing a name redraws immediately, so I copy the result before I keep editing.

Related tools

More: Fun & Games