DevTools Logo

Recovery Codes Generator

Recovery Codes Generator

Create a bounded set of one-time backup codes with printable, plain-text and CSV output — all in your browser.

Runs in your browser
Try an example

Code settings

10 codes · 10 chars each

Recovery codes

No codes generated yet

Choose settings and press Generate. Codes are never saved or uploaded.

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.

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

    Input
    [ ] 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

    Input
    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

    Input
    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.

    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

    1. Set count, length, and alphabet

      Choose how many codes to generate, character length, grouping, and prefix.

    2. Generate with Web Crypto

      Click Generate for bias-free CSPRNG codes (or enter a demo seed for fixtures).

    3. 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.