Secret Santa Generator
List the names, add who must not draw whom and press Draw: each person gets a link, or a turn on one phone, that shows only the name they buy a gift for.
Add the names and press Draw. You then get one link per person.
December name swaps go wrong in two familiar ways: someone pulls their own name out of the hat, or the whole office finds out who drew whom.
This page does the draw in your browser, follows the rules you set, and hands you one link per person. Each link opens a card with a single name on it, so the organiser can take part too, as long as they open only their own link.
A sample draw for six people
These names are made up, so the pairs can be shown. In a real draw the organiser gets a list of links, and the pairs stay hidden unless Show all pairs is ticked.
- Ava → Finn
- Ben → Dev
- Chloe → Ava
- Dev → Ema
- Ema → Chloe
- Finn → Ben
A sample from this generator; press Draw for new results.
Running a draw
- Type each person's name on its own line in Participants. Add an initial when two people share a first name.
- If some people must not draw each other, write the rules in Who must not draw whom, one per line.
- Add Gift wishes if people have them, one line each: the name, a colon and the wish, such as Anna: books, no candles.
- Fill in Event name, Budget and Exchange date if you want them on every card; all of these can stay empty.
- Press Draw. When the rules leave no possible draw, the message names the people who cannot be matched.
- Next to each name, press WhatsApp, Text or Email to open that app with the person's link in a ready message, or Copy link to paste it yourself. Copy all links gives you every line at once for your own record.
Writing exclusions
Each rule names two people from the list, with the names written as they are there; capital letters do not matter. Three patterns cover most groups:
- Anna > Ben: Anna must not draw Ben. Ben can still draw Anna.
- Anna = Ben: neither draws the other. Use it for couples, housemates or anyone who already swaps gifts.
- One line per pair. To keep three siblings apart, write three lines: Cleo = Dan, Cleo = Eve and Dan = Eve.
Sending the links
Send every link on its own, to its owner only: a direct message, a text or a separate email. Posting all the links in one group chat lets anyone open anyone else's card.
The WhatsApp, Text and Email buttons only prepare the message: your own app opens with a short greeting and the link, and you choose the recipient there. This page sends nothing itself.
A link opens this page with the result stored after #ss= at the end of the address. The card shows the giver's name first and reveals the result only after Show is pressed, so opening it on a shared screen does not give it away at once.
Everyone in one room: Pass the phone
When the whole group is together, the links can wait. After the draw, press Pass the phone and the screen shows only the name of the person whose turn it is. That person takes the phone, presses Show to see who they buy for, and then Hide and pass on, which clears the result before the next name appears.
Gift wishes, the budget and the date show on each turn as they would on a card. The link list and Show all pairs stay hidden while the phone goes round, and Stop passing the phone brings the organiser's screen back.
What the organiser can and cannot see
After the draw you see the names and their Copy link buttons, not who drew whom. Show all pairs prints the full list for an organiser who wants a record, and anyone looking at the screen sees it too.
The result, with any gift wish, travels inside each link: encoded, not encrypted. A browser does not send the part after # to any server, and this page saves nothing, but anyone holding a link, the organiser included, can open it and read the name. If you are taking part, open only your own.
How the random draw itself works: How it works.
How often a hat draw goes wrong
Everyone draws a slip at once. The share of draws in which nobody holds their own name settles at 36.79% (1/e) from 7 people on.
Scroll the table sideways for more columns.
| People | Possible draws | Nobody draws themselves | Share | Needs a redraw |
|---|---|---|---|---|
| 3 | 6 | 2 | 33.33% | 66.67% |
| 4 | 24 | 9 | 37.50% | 62.50% |
| 5 | 120 | 44 | 36.67% | 63.33% |
| 6 | 720 | 265 | 36.81% | 63.19% |
| 7 | 5040 | 1854 | 36.79% | 63.21% |
| 8 | 40320 | 14833 | 36.79% | 63.21% |
| 9 | 362880 | 133496 | 36.79% | 63.21% |
| 10 | 3628800 | 1334961 | 36.79% | 63.21% |
Needs a redraw: the share of first draws in which at least one person holds their own name, so the whole group draws again.
Computed on this site: exact count of the orders in which nobody draws their own name, and 1/e to 15 decimal places.
Eight names in a hat
Eight colleagues write their names on slips and each draws one. The slips can come out in 40320 orders, and in 14833 of them nobody holds their own name: 2119/5760, or 36.79%.
So 63.21% of first draws fail and the group has to start over. If every redraw starts again from a full hat, it takes 2.72 draws on average before one works.
Rules make the hat worse. Make those 8 people 4 couples who must not draw each other, and only 4752 of the 40320 orders pass both checks: 11.79%. The generator does not leave that to luck. It checks the rules first, then shuffles until a valid draw comes up, so every valid draw has the same chance. Only when the rules leave almost no valid draws does it switch to a step-by-step search, and the result says so.
Frequently asked questions
Can two people end up drawing each other?
Yes. Anna buying for Ben while Ben buys for Anna is a valid draw unless you add the rule Anna = Ben. The generator has no setting that forces one long chain through the whole group.
What if someone loses their link?
If the organiser kept the list from Copy all links, they can send that person's line again. Pressing Draw a second time is no fix: it makes a new draw, and every link already sent stops matching it.
How do I put a budget or a date on every card?
Fill in Budget and Exchange date before you press Draw. Both travel inside every link and show on the card under the name. To change them afterwards, draw again and send everyone a new link.
Can we avoid last year's pairs?
Yes, if someone kept a record. Tick Show all pairs this year and save the list somewhere private. Next December, add each old pair as a rule such as Anna > Ben, and nobody gets the same person two years running.
Why does the draw refuse my rules?
Every person has to give to someone and receive from someone. When the rules leave a group of people with fewer names to draw than there are people in it, no draw can work. The message names that group: drop one rule that involves them and press Draw again.
Can the organiser take part too?
Yes. Put your own name on the list, leave Show all pairs unticked and open only your own link. With Pass the phone you take your turn like everyone else and see nothing but your own result.
What if someone is out of the room when the phone goes round?
Press Skip for now on their turn: they move to the end of the round and everyone else carries on. If they still miss it, stop passing the phone, copy their link and send it to them; it shows the same result.
How do I send the links without copying each one?
Use the WhatsApp, Text or Email button next to the name. It opens your own app with a short message and that person's link filled in; you pick the person and press send there. Nothing goes through this site.
How do gift wishes work?
Write one line per person in Gift wishes: the name, a colon and up to 200 characters, such as Anna: books, no candles. The wish goes into the link of whoever draws Anna and shows on their card under the name, so it is as readable as the rest of the link.
Someone joined or dropped out after the draw. What now?
Change the list and press Draw again, then send everybody their new link or pass the phone round once more. The new draw changes the pairs, so tell everyone to ignore the links from the first one.
Related wheels
- Wheel of NamesSpin for who opens the first present on exchange day.
- Ice Breaker Questions WheelQuestions for a party where not everyone knows each other.
- What to Eat WheelSettle the party food with one spin.
- Random Name PickerPaste the same names to pick who hosts, who brings dessert or who opens a gift first.