Free tool · Family, pets and kitchen
Secret Santa generator
Type the names, optionally add pairs who should not draw each other, and press Draw. With six names and two rules, one draw is: Maya gives to Ivy, Noah gives to Ana, Ivy gives to Noah and so on.
- Free
- No sign-up
- Runs in your browser
Not drawn yetPress Draw names.
Pass the screen around: each person presses Show next to their own name to see who they give a gift to, then presses Hide.
How to use the Secret Santa Generator
- Type each name on its own line in Who is taking part. Use 3 to 40 different names.
- Optional: under Pairs who must not draw each other, write one pair per line, such as "Maya, Noah".
- Press Draw names. Each person presses Show next to their own name to see who they give to, then presses Hide.
- Press Draw names again for a new draw, or Copy the list to keep the whole draw.
How does a Secret Santa draw work?
Everyone gives one gift and gets one gift, and nobody gives to themselves. The page picks the givers in a random order, and for each one it chooses at random from the people who have not yet been chosen and are allowed. Before drawing, it checks with a matching test whether any draw can exist at all. With few rules it shuffles at random and keeps the first valid shuffle, so every valid draw is equally likely. With tight rules it fills the person with the fewest choices first and steps back from dead ends.
Random numbers come from the secure generator in your browser. Nothing is sent anywhere and nothing is saved, so no one, including the person who set up the page, can look up the draw later. A draw for the six example names with the rules Maya and Noah, and Ivy and Sam, is Maya to Ivy, Noah to Ana, Ivy to Noah, Sam to Maya, Lee to Sam, Ana to Lee.
Because the screen shows everything to whoever holds the device, the page hides the result behind a button for each name. Pass the device around, and each person presses Show for their own name only.
How many different draws are there?
A draw where nobody gets themselves is called a derangement. For three people there are exactly two, for four people nine, and the number grows fast. About 37% of all ways to hand out the gifts are valid once the size is more than a handful, so a random shuffle that is simply retried would work, but the page uses a smarter search so that it also respects your rules.
The table gives the number of possible draws without rules and the share of all arrangements that they make up. Rules remove some of them. If you add so many rules that none is left, the page says that no draw is possible instead of looping.
| People | Possible draws | Share of all arrangements |
|---|---|---|
| 3 | 2 | 33.3% |
| 4 | 9 | 37.5% |
| 5 | 44 | 36.7% |
| 6 | 265 | 36.8% |
| 8 | 14,833 | 36.8% |
| 10 | 1,334,961 | 36.8% |
| 12 | 176,214,841 | 36.8% |
How do I keep couples or housemates from drawing each other?
Add one rule per pair, such as "Maya, Noah". The pair then never draws each other in either direction. You can add as many rules as you like as long as a draw still exists. The table shows how often a valid draw was found in 200 test draws of the six example names with up to three rules.
With very few people, rules use up the choices quickly. Three people with two rules around one person cannot be drawn at all, and the page tells you so.
| Rules | Valid draws found |
|---|---|
| 0 | 200 of 200 |
| 1 | 200 of 200 |
| 2 | 200 of 200 |
| 3 | 200 of 200 |
What makes a Secret Santa go well?
Agree on a budget first and say it in the message that goes with the draw. Ask each person for a few ideas or a wish list, so that the giver is not guessing. Set a date when the gifts are handed over.
Use different names if two people share one, for example by adding a last initial, because each name in the list must be different. If someone drops out after the draw, run the whole draw again so that the chain stays complete.
Use it with
- Spin the Wheel: random picker wheel with custom entries.
- Bingo Card Generator: printable bingo cards with numbers or your own words.
- Chore Chart Maker: printable family chore charts.
Questions
How do I do a Secret Santa draw online?
Type the names, press Draw names and let each person press Show next to their own name. Nothing is stored, so nobody can look the result up later.
Can anyone draw themselves?
No. The page never lets a person give to themselves.
How do I stop two people drawing each other?
Add a rule such as "Maya, Noah" under the optional pairs box. It works in both directions.
What if the rules make a draw impossible?
The page says no draw is possible. Remove a rule or add more people.
How many people can take part?
From 3 to 40, each with a different name.
Where does the draw go once I close the page?
Nowhere. It is made in your browser with its secure random numbers and vanishes when the page closes.
The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.