Random for Developers

Backup / Recovery Code Generator

Generate a set of backup codes in the same format real two-factor authentication systems use — for testing account recovery flows without touching a live account.

Cryptographically secure Instant, in your browser Free, no sign-up

Generate

Your result will appear here

How the Backup / Recovery Code Generator works

Codes use only uppercase letters and digits with the visually ambiguous characters removed — no 0/O, 1/I/L, or similar look-alikes — the same practice real backup-code systems use so a user reading a printed or displayed code aloud, or typing it manually, doesn't misread a character. The two-group-of-five format matches the style used by many real two-factor authentication systems.

How to use it

1
Choose how many codesReal services typically issue 8-10 one-time backup codes per set.
2
GenerateXrandom creates a fresh batch of codes in the common XXXXX-XXXXX format.
3
Use for testingDrop these into a UI mockup or test fixture for an account recovery flow — each one looks and behaves like a real one-time backup code, without being tied to any real account.
Advertisement

Frequently asked questions

Are these real, usable backup codes?

No — they're not tied to any real account or authentication system; they're formatted test data for building and testing your own recovery-code UI or flow.

Why are certain letters and numbers excluded?

Characters like 0/O and 1/I/L are easy to confuse with each other in many fonts — removing them is standard practice for any code a human might need to read or type accurately.

How many codes does a real service usually generate?

Most major services issue 8-10 single-use backup codes per set, which is why that's the default here.