Secret Santa Generator

Enter 3–100 names, one per line. Each name must be different, so add an initial when two people share a first name.

One pair per line, such as Ana – Ben. The two never draw each other, in either direction. Use it for couples, housemates or last year's matches.

Copy link saves the names and settings, never the draw: whoever opens it makes a new one. The draw stays on this device until you reload the page.

Secret Santa draw

Enter at least three names and press Draw names. No match is shown until someone chooses to look.

About this tool

This Secret Santa generator draws names for a gift exchange in your browser. Everyone gives exactly one present and receives exactly one, nobody draws their own name, and you can stop couples, families or last year's pairs from drawing each other.

You don't need email addresses or accounts. Each person can look up their own match on one phone passed around the room, or the organiser can copy a personal message for each participant and send it privately. It works for office parties, families, classes and groups of friends, whether you call it Secret Santa, Kris Kringle or a gift exchange.

How it works

Type the participants one per line and press Draw names. To keep two people apart, add a line such as Ana – Ben under Exclusions: they will not draw each other in either direction. Turn on Don't let two people give to each other to rule out swaps where Ana buys for Ben and Ben buys for Ana. The budget, date and note are added to every message.

To hand out the matches at a party, pass the phone: each person taps Show match next to their own name, confirms it's them and sees their match for 10 seconds before it hides again. People who have looked are marked as seen. For a group that isn't together, use Copy message next to each name and paste it into a private chat. All pairs shows the full list to the organiser, and only then can the list be copied or downloaded as text or an image.

The draw uses your browser's cryptographically secure random number generator. It first shuffles the names until the result follows every rule, so each valid draw is equally likely; for tightly constrained groups it then searches for an assignment that fits. If no draw can satisfy the exclusions, the tool says so and names the person with the fewest options.

Example

Eight colleagues, two of them a couple: list all eight names and add the couple as one exclusion line. The two partners then each have six possible matches instead of seven, and the draw still gives everyone exactly one person to buy for.

Three people with the exclusions Ana – Ben and Ana – Cy cannot be drawn: Ana is excluded from everyone else, so the tool asks you to remove one of Ana's exclusions. With three people and no exclusions there are only two possible draws: a circle one way round or the other.

Assumptions and limits

The generator takes 3–100 participants with names of up to 80 characters and up to 100 exclusion lines. Names are compared without regard to capital letters, so two people with the same first name need an initial. The draw is kept only on this page: reloading it or drawing again replaces every match, and links never contain the draw. It does not send emails, collect wish lists or remember previous years; paste last year's pairs as exclusions instead.

Frequently asked questions

How does a Secret Santa draw work?

Everyone's name goes into the draw and each person is assigned one other participant to buy a gift for. The assignment forms a closed loop: everyone gives one gift and receives one, and nobody gets themselves. Who gives to whom stays secret until the gifts are exchanged.

Can I stop couples from drawing each other?

Yes. Add one line per pair under Exclusions, such as Ana – Ben. The two will not draw each other in either direction. You can add up to 100 pairs, for example partners, siblings or last year's matches.

How do people find out who they got without the organiser seeing?

Pass one phone around: each person taps their own name, confirms it's them and sees their match for a few seconds. Or the organiser copies each person's message and sends it in a private chat without opening the full list. The organiser only sees everyone's match by choosing Show all pairs.

Is the draw saved or sent anywhere?

No. The draw happens on your device and nothing is uploaded. Copy link saves the names, exclusions and settings but never the matches, so whoever opens the link makes a new draw. Keep the page open until everyone has seen their match.

What if someone forgets who they got?

While the page is open, anyone can tap Show match next to their name again. If you have to draw again, for example because someone joined late, press Draw again: the tool warns you first, because a new draw replaces every match people may already know.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
namesParticipants — one per linetext items separated by commas, or one per line (%0A) when an item contains a comma; your own text; Copy link includes itrequired
exclusionsExclusions (optional)text items separated by commas, or one per line (%0A) when an item contains a comma; your own text; Copy link includes itoptional
no_pairsDon't let two people give to each othertrue or falsedefault false
budgetGift budgettext; your own text; Copy link includes itoptional
exchange_dateExchange datedate: YYYY-MM-DDoptional
noteNote for everyone (optional)text; your own text; Copy link includes itoptional

Examples

  • ?names=Ana,Ben,Cy,Dee&exclusions=Ana-Ben&budget=25%20USD
  • ?names=Kim,Lee,Max,Noa,Oli&no_pairs=true&exchange_date=2026-12-18&note=Theme:%20something%20handmade

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="secret-santa"]