Secret Santa Generator / How It Works & Privacy
How It Works: Browser Privacy & Algorithm Explained
See exactly how our no-email Secret Santa generator shuffles names locally, encodes pairings in the URL fragment (#s=...), and how you can verify it yourself in 30 seconds.
Technical summary in 30 seconds
Every draw runs 100% inside your browser using randomized backtracking derangement. Pairings live only inside the #s=... URL fragment—never sent to our server, never saved in a database, and verifiable in 30 seconds with F12 DevTools.
1. How your participant list is handled
When you type or paste names into our Secret Santa generator, the text stays inside the browser's <textarea> element in local memory. Clicking Draw names runs JavaScript directly on your own phone or computer—your participant list, exclusion rules, budget, and exchange date are never posted to a backend API or stored in a database.
2. How the matching algorithm prevents self-draws and handles exclusions
Our matcher runs a randomized backtracking derangement algorithm in your browser:
- No self-draws: Every candidate pool excludes the giver's own name from the start, so nobody can ever draw themselves.
- Strict exclusion rules: Every
Person A cannot draw Person Brule is checked before placing a pairing. The solver orders the most constrained participants first so tight couple or household rules resolve quickly. - Clear error when rules have no valid solution: If your constraints make a fair 1-to-1 draw mathematically impossible (for example, one household has more than half the group and cannot draw each other), the tool stops and displays an explicit message instead of silently breaking a rule.
3. How results are encoded into one private link
Once a valid pairing map is found, the script packs a small JSON object ({ v: 1, m: { ... }, n: [...], b: "...", d: "..." }), encodes it with UTF-8 + URL-safe Base64 (base64url), and appends it after #s= on the page URL:
https://secret-santagenerator.com/#s=<base64url-payload>
No short-link database or server token lookup is involved. All information needed for participants to view their match lives right inside that string.
4. Why the #s=... fragment never reaches our web server
By the HTTP and browser URL specification, everything after the # symbol (the URL fragment) is handled strictly by the client browser and is not included in HTTP requests sent to web servers.
- Your browser requests
GET /from the server, downloads the static HTML/JS, and then readswindow.location.hashlocally to populate the participant dropdown. - Because the
#s=...fragment is part of the full URL text, you can still copy and paste it cleanly into WhatsApp, Slack, Microsoft Teams, iMessage, or SMS—chat apps pass the text string to your friends, whose browsers decode it locally.
5. Verify it yourself in 30 seconds (no need to take our word for it)
You do not have to rely on a generic "trust us" promise. Anyone with a desktop browser can verify both claims in half a minute:
- Check the Network tab: Open any generated
#s=...link, press F12 (or Cmd+Option+I on Mac), switch to the Network tab, and reload the page. Inspect the document request for/—you will see zero participant names in the request URL, query string, or payload. - Decode the
#s=string yourself: Copy everything after#s=, replace-with+and_with/, and runatob(...)in your browser console (or any offline Base64 decoder). You will see the exact plain JSON pairing table your browser created.
6. What we do not store—and real limitations to know
- What we do not collect or store: No email addresses, no phone numbers, no user accounts, no passwords, no cookies storing your participant list, and no server database of draws. (If you voluntarily click Save on this device, a copy is stored only in your own browser's
localStorage, which you can clear in one click.) - Limitation 1 — Anyone with the link can see the group list: Because the pairing table is encoded in the link itself, anyone who receives that URL can see the names in the dropdown or inspect the Base64 string. Treat the link like a folded hat of paper slips—share it only inside your group chat, not on a public webpage.
- Limitation 2 — Lost links cannot be recovered: Because we have no backend copy and no emails on file, we cannot resend a lost link. Always pin the link in your group chat or click Backup (.txt) right after drawing.
Having trouble opening a link or running a draw?
If a link looks blank, chat software trimmed the #s= portion, or exclusion rules say no draw is possible, check our Secret Santa generator troubleshooting guide for 8 quick fixes. You can also read our full Privacy Policy or head straight back to the free Secret Santa generator.
Frequently asked questions
Is this Secret Santa generator really private?
Yes for everyday holiday exchanges—your names and pairings are processed locally in your browser and encoded in the URL fragment (#s=...), which browsers do not send to web servers. We collect no emails, create no accounts, and keep no server database of your group. Anyone who has the link can view the group dropdown, so only share it inside your group.
Where is my Secret Santa data stored?
Your draw data is not stored on our servers at all. It lives inside the #s=... link you copy and share. If you click Save on this device, a convenience copy is kept only in your own browser's localStorage until you click Clear.
Can I verify that my participant list is not uploaded?
Yes. Open your generated link, press F12, open the Network tab, and refresh—no names appear in any request to our server. You can also Base64-decode the text after #s= locally to see the exact JSON structure.
Can you recover my Secret Santa link if I lose it?
No. Because nothing is saved on a backend server and no email addresses are collected, lost links cannot be recovered. Pin the link in your group chat or use the Backup (.txt) button right after drawing.