Secret Santa generator
Type the names, list pairs who must not draw each other, and get one private link per person that reveals only their own match. The draw runs in your browser and no name is sent to a server.
Enter at least three names and press “Draw names”. Nothing you type is sent to a server.
How many different draws are possible?
| People | Possible draws |
|---|---|
| 3 | 2 |
| 4 | 9 |
| 5 | 44 |
| 6 | 265 |
| 8 | 14,833 |
| 10 | 1,334,961 |
Questions and answers
How does the Secret Santa generator work?
Enter the names and press “Draw names”. Each person gets exactly one other person, nobody draws themselves, and you get one link per participant that opens their own result.
Are the names saved anywhere?
No. The draw runs in your browser. Each result is written into its link after the # sign, a part of the address that browsers never send to a server.
How do I stop couples drawing each other?
List them in the exclusions box, one pair per line, such as “Anna + Ben”. Neither of them will draw the other.
Can the organiser take part?
Yes. Send everyone their link without opening the others; the organiser only sees the full list if they print it.
What if someone loses their link?
The organiser can send the same link again from the results while the page is still open. After a new draw, all links change.
Method and sources
The draw is a random arrangement in which each person gives to exactly one other person and nobody draws themselves. Pairs listed as exclusions are refused in both directions; the generator repeats the draw until every rule is met.
Randomness comes from the browser’s cryptographic generator (crypto.getRandomValues). Each person’s result is encoded in their link after the # sign; that part of an address stays in the browser.
Runs entirely in your browser; no names, emails or results are stored by Babushka Market.
