Free 100% In-Browser Tool

Secret Santa Generator (Fair Matching & Exclusions)

Pair Secret Santa gift exchange participants with custom exclusion rules and private reveal cards.

Initializing tool...

Privacy First: 100% Client-Side Processing

Processed in your browser. Files are never uploaded.

How to Use the Secret Santa Generator

  1. 1Add participant names (minimum 3 people) or paste a roster list.
  2. 2Optionally set exclusion rules (e.g., 'Alice cannot draw Bob').
  3. 3Click 'Generate Matches' to run a derangement matching algorithm.
  4. 4Click 'Reveal Match' privately on each person's card so secrets are not spoiled.

Formula & How It Works

Derangement Algorithm with Exclusions

Permutation π where ∀i, π(i) ≠ i and (i, π(i)) ∉ Exclusions

Generates a true mathematical derangement (a permutation with no fixed points, meaning nobody draws themselves: π(i) ≠ i) while satisfying constraint satisfaction graph boundaries for excluded pairs.

Worked Examples

Family Exchange (4 People)

Input: Alice, Bob, Charlie, Diana (Alice & Bob excluded from each other)

Explanation: 100% compliant with exclusion rules and zero self-matching.

Result: Alice -> Charlie, Bob -> Diana, Charlie -> Bob, Diana -> Alice

Office Team (8 People)

Input: 8 coworkers in single gift pool

Explanation: Ensures every participant is matched fairly.

Result: Perfect circular gift chain where everyone gives and receives one gift

Frequently Asked Questions

How does the private reveal work?▼

Each participant's assigned gift recipient is hidden behind an interactive 'Click to Reveal' card. Participants can look at their match one at a time on the screen without seeing anyone else's.

Can someone accidentally draw their own name?▼

No. The mathematical derangement algorithm strictly prevents any participant from matching with themselves.

Are email addresses required?▼

No emails, accounts, or logins are required. Everything is generated instantly and kept 100% private in your browser.

Can I save or print the match list?▼

Yes, you can copy individual confidential links or download an encrypted organizer summary.

Last reviewed & updated: 2026-03-29
Free & Open Access
Related Utilities

Explore complementary calculators and converters with instant client-side execution

More in Generators

Explore Other Tool Categories

Browse our full collection of 50 free web utilities

View All 8 Categories