Home › Generators & Text Tools › Secret Santa Generator
Secret Santa Generator
This free Secret Santa Generator draws names for your group in seconds — no hat, no slips of paper, no arguments. Add everyone's name, tell it which people must not draw each other, and it finds a fair draw where nobody gets themselves. Each giver reveals only their own match, right here in your browser; nothing is uploaded or saved.
Write a pair as “Ayesha ≠ Bilal” or “Ayesha, Bilal”. Each pair works both ways.
Private by design: the draw happens in your browser and the names never leave this page.
How to use this tool
- Type or paste the names in the box, one name per line. You need at least three people.
- If couples, siblings or last year's pairs must not draw each other, add them in the exclusions box, one pair per line.
- Press Draw Names.
- Pass the phone or laptop around: each person finds their own name and taps Reveal to see — privately — who they are buying for.
- Use Copy List or Download List if the organiser needs a private record of the full draw.
How it works
Drawing names fairly is a small mathematical problem with a name of its own: a derangement — a pairing in which nobody is matched with themselves. Pure shuffling gets this wrong surprisingly often: with six people, a blind shuffle leaves at least one person holding their own name nearly three times out of four. So this tool does not shuffle and hope. It builds the draw directly, trying givers one at a time in random order and backtracking whenever a choice would break a rule, until it finds an arrangement that satisfies everything:
Because the search checks the rules as it goes, the result is guaranteed valid whenever a valid draw exists — and when the exclusions make one impossible (say, in a group of three, Ayesha excludes both other players), the tool says so plainly and asks you to relax a rule, rather than quietly producing a broken pairing. Exclusions are two-way: writing “Ayesha ≠ Bilal” stops Ayesha drawing Bilal and Bilal drawing Ayesha, which is how households usually mean it. The full list stays hidden behind individual Reveal buttons, so a group can draw together on one screen without spoiling anyone's surprise — the organiser's eternal problem with the paper-hat method, where somebody always peeks.
| Group size | Chance a blind shuffle has a self-draw | This tool |
|---|---|---|
| 3 people | About 67% | Never — checked by construction |
| 4 people | About 63% | Never |
| 6 people | About 63% | Never |
| 10 people | About 63% | Never |
Those percentages are a famous piece of mathematics: however big the group, a blind shuffle leaves somebody with their own name about 63% of the time — which is why every office draw done by shuffling seems to end with a redraw, a swap and a small suspicion that it was rigged. A search-based draw removes the suspicion along with the problem.
Worked example
Six cousins — Ayesha, Bilal, Sara, Omar, Hina and Danish — are drawing for Eid gifts. Ayesha and Bilal are married, and Sara drew Omar last year, so the family wants both pairs kept apart.
Step 1: The organiser types the six names, one per line.
Step 2: In the exclusions box she writes Ayesha ≠ Bilal and Sara, Omar.
Step 3: She presses Draw Names. The list appears with every receiver hidden.
Step 4: The phone goes around the room; each cousin taps Reveal beside their own name, reads their person, and taps Hide again.
Nobody drew themselves, neither excluded pair was matched, and — for the first time in family history — nobody accused the organiser of peeking.
FAQ
How does the Secret Santa Generator work?
Type or paste the names of everyone taking part, one name per line. If some people must not draw each other — couples, siblings, or last year's pairing — list those pairs in the exclusions box. Press Draw Names and the tool shuffles everyone into a circle where each person buys for exactly one other person, nobody draws themselves, and every exclusion is respected. Each giver can tap Reveal privately to see their person.
Is it fair? Does anyone end up buying for themselves?
It is fair by construction: the draw is a derangement, which is the mathematical name for a shuffle in which nobody is matched with themselves. The tool does not just shuffle and hope — it searches for an arrangement that satisfies every rule, and if the rules make a valid draw impossible (for example, two people who have excluded everyone else), it tells you honestly instead of producing a broken draw.
Can couples or family members avoid drawing each other?
Yes. Use the exclusions box, one pair per line, written as “Ayesha ≠ Bilal” or simply “Ayesha, Bilal”. The tool treats each pair as two-way: Ayesha will not draw Bilal and Bilal will not draw Ayesha. You can exclude as many pairs as you like — just remember that every extra rule makes a valid draw harder to find.
Are the names uploaded or saved anywhere?
No. The draw runs entirely in your browser and the names are never sent to a server or stored. When you close or reload the page, they are gone. If you want a record, use the Copy or Download button to save the list yourself.
How many people do we need to play Secret Santa?
At least three — with two people there is no secret, and with one there is nobody to draw. There is no fixed upper limit in the tool, but for very large groups (a whole office), exclusions become harder to satisfy; keep them few and sensible. The reveal buttons are designed for passing one device around the group or drawing on a shared screen.
Can I redraw if someone drops out?
Yes. Remove the person from the names list (and from any exclusion lines), then press Draw Names again for a completely fresh draw. Everyone will get a new person, so redraw only before anyone has started shopping — or accept the chaos, which is also a Christmas tradition.