Add everyone's names, add any exclusions (for example partners who should not draw each other), and run the draw. Nobody sees the full list — each person picks their own name and privately reveals only who they are buying for.
Type a pair as Name1, Name2 on its own line. The draw will never pair those two in either direction — useful for couples or last year's pairing. Names must be spelled exactly as in the main list.
Yes — with too many exclusions for too few people there may be no valid pairing. The tool then tells you honestly instead of forcing a bad draw; remove an exclusion or add a person.
No. The draw happens entirely in your browser and nothing is uploaded. If you close the page, the draw is gone — that is the point of keeping it secret.
After the draw, a dropdown lists every name. Each person chooses their own name and presses Reveal to see only their own recipient. The organizer never needs to see the whole list.
A valid draw is a derangement with forbidden pairs: a permutation of the names where nobody maps to themselves and no excluded pair maps either way. The generator tries shuffled permutations first (fast for normal groups), and if random tries keep failing it switches to a deterministic backtracking search that either finds a valid draw or proves none exists — it never silently breaks a rule.
Inputs: 5 names, exclusion Ali–Sara.
Steps: One valid draw the tool can produce: Ali → John, John → Maria, Maria → Chen, Chen → Sara, Sara → Ali. Check: five givers, five different receivers, nobody has themselves, and Ali and Sara do not have each other.
Result: Every rule satisfied, and each person sees only their own line when they reveal.
Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.