Recovery Codes Generator
Create a bounded set of one-time backup codes with printable, plain-text and CSV output — all in your browser.
Code settings
10 codes · 10 chars eachRecovery codes
No codes generated yet
Choose settings and press Generate. Codes are never saved or uploaded.
Printable 2FA recovery card
[ ] 01 7K4QP-M8R2V [ ] 02 W6T3N-H9X5C
Ten 10-character codes grouped 5-5, shown two per row with checkboxes for marking codes as used after printing.
CSV for a test database
index,code 1,"TST-482913" 2,"TST-750164"
Digits-only codes with a literal prefix, quoted so spreadsheets keep them as text.
Reproducible documentation fixture
seed: docs-example → 7K4Q-M8R2 / 6T3N-H9X5
A seed makes the same set appear on every regeneration; the UI keeps a permanent warning that these codes are for demos only.
Examples
Printable 2FA recovery card
[ ] 01 7K4QP-M8R2V [ ] 02 W6T3N-H9X5CTen 10-character codes grouped 5-5, shown two per row with checkboxes for marking codes as used after printing.
CSV for a test database
index,code
1,"TST-482913"
2,"TST-750164"Digits-only codes with a literal prefix, quoted so spreadsheets keep them as text.
Reproducible documentation fixture
seed: docs-example → 7K4Q-M8R2 / 6T3N-H9X5A seed makes the same set appear on every regeneration; the UI keeps a permanent warning that these codes are for demos only.
About this tool
Recovery Codes Generator builds a bounded set of one-time codes (1–100 codes of 6–32 characters) using crypto.getRandomValues with rejection sampling, so every symbol in the chosen alphabet is equally likely. The default alphabet omits 0/O and 1/I to reduce transcription errors. Codes can be grouped in fours or fives, prefixed, and exported as a printable card, plain text or CSV. An optional seed produces reproducible fixtures for tests and screenshots, clearly marked as non-cryptographic. Codes are never stored or transmitted.
What this tool does not do
- Processes only the inputs provided in this session without connecting to external accounts or background servers.
- Runs entirely in the current browser tab; nothing is synced across devices or backed up to a server.
How to use this tool
Set count, length, and alphabet
Choose how many codes to generate, character length, grouping, and prefix.
Generate with Web Crypto
Click Generate for bias-free CSPRNG codes (or enter a demo seed for fixtures).
Print or export
Print the two-column wallet card or copy/download plain text or CSV.
Use cases
Printable 2FA recovery card
Ten 10-character codes grouped 5-5, shown two per row with checkboxes for marking codes as used after printing.
CSV for a test database
Digits-only codes with a literal prefix, quoted so spreadsheets keep them as text.
Reproducible documentation fixture
A seed makes the same set appear on every regeneration; the UI keeps a permanent warning that these codes are for demos only.
Common mistakes
Mistake:Why are 0, O, 1, and I excluded by default?
Fix:Recovery codes are often printed on paper and typed manually during an account lockout. Omitting look-alike characters prevents frustrating transcription mistakes under stress.
Mistake:When should I use seeded mode?
Fix:Only for deterministic test fixtures, demos, or documentation screenshots. Seeded codes are reproducible by anyone with the seed and are prominently flagged as non-cryptographic.
Frequently asked questions
How random are the generated recovery codes?
Unseeded sets draw entropy from Web Crypto's crypto.getRandomValues using rejection sampling, eliminating modulo bias so every character in the selected alphabet has equal probability.
Why are 0, O, 1, and I excluded by default?
Recovery codes are often printed on paper and typed manually during an account lockout. Omitting look-alike characters prevents frustrating transcription mistakes under stress.
When should I use seeded mode?
Only for deterministic test fixtures, demos, or documentation screenshots. Seeded codes are reproducible by anyone with the seed and are prominently flagged as non-cryptographic.
Are generated backup codes saved or uploaded?
No. Codes are generated in memory inside your browser tab and are never stored in localStorage or transmitted over the network.
Related tools
ABA Routing Number Generator
Generate 9-digit US ABA routing numbers with weighted Mod-10 checks.
Address Generator
Generate realistic addresses in the correct format for 21 countries — single-line, multi-line, JSON or HTML — plus a postcode validator. Test data only, runs in your browser.
API Key Generator
Generate realistic test API keys — custom prefixes, lengths, alphabets, optional checksum, bulk .env/CSV export. Locally in your browser.
Argentina CUIT / CUIL Generator
Generate and validate 11-digit Argentine CUIT and CUIL numbers with AFIP Mod-11 check digits.
ASCII Text Art Generator
Turn text into large ASCII art banners with multiple figlet fonts
Australia ABN Generator
Generate and validate 11-digit Australian Business Numbers (ABN) using weighted Mod-89.