Secret Santa Generator – Fair, Random Gift Exchange Pairings
Organizing a Secret Santa or White Elephant exchange usually means someone scribbling names on paper slips, shaking a hat, and hoping nobody peeks. It also means manually re-drawing whenever a couple accidentally gets matched with each other. The Secret Santa Generator automates the whole process: paste your participant list, set any exclusion rules, and get a provably fair set of gift-giving assignments in seconds — no paper, no re-draws, no favoritism.
How the Derangement Algorithm Works
A valid Secret Santa assignment is mathematically known as a derangement — a shuffle of a group where nobody ends up matched to themselves. The generator runs a Fisher–Yates shuffleon your participant list using randomness sourced from the browser's crypto.getRandomValues() API, then checks the result for self-matches and any excluded pairs. If the shuffle fails either check, it reshuffles and tries again — up to 1,000 attempts — until it finds an arrangement that satisfies every rule.
Handling Exclusion Rules
Couples, siblings, or roommates who already exchange gifts directly usually shouldn't be paired together in an office or family Secret Santa. Add each pair on its own line (for example Alice - Bob) and the generator treats every exclusion as a hard constraint — it will never produce a result where an excluded pair is matched, no matter how many reshuffles it takes.
Wishlists, Budgets, and Groups
Append a wishlist note to any participant using the Name: notes format, e.g. Alice: loves board games, and it automatically appears next to that person's assignment so their Secret Santa knows what to buy. Set an optional Budget Limit and currency to display a spending guideline alongside the results, and use Group Size to randomly split a large office or family into several smaller sub-exchanges that each run independently.
Organizer View vs. Individual Reveal
Organizer View lists every giver-to-recipient assignment at once — ideal if one trusted person is running the exchange privately. Individual Revealinstead hides every match behind its own click-to-open card, so the whole group can gather around one screen (or a shared printout) and each person opens only their own card without spoiling anyone else's surprise.
Exporting Your Results
Once a valid exchange is generated, use Copy to place the full list on your clipboard, or Download to save it as a .txt or .csv file for emailing to participants or importing into a spreadsheet. Click Reshuffle at any time to draw a brand-new arrangement from the same participant list and rules.
Whether you're organizing an office holiday party, a family exchange with a few couples to keep apart, or a recurring friend-group gift swap, the Secret Santa Generator turns a manual, error-prone process into one that's fast, fair, and easy to trust.