Recovery Codes Generator
Generate one-time recovery and backup codes for two-factor authentication, formatted like abcde-12345 without look-alike characters. Secure and in-browser.
Runs in your browser. Nothing is uploaded.
About Recovery Codes Generator
Recovery Codes Generator produces a set of one-time codes like the backup codes services issue when you enable two-factor authentication. Codes are split into groups with hyphens and use an alphabet without look-alikes (no 0, o, 1, l or i), so they are easy to read off paper.
Developers can use it to prototype a recovery flow or seed test users. If you build this for real, store only hashes of the codes and invalidate each one after use.
How to use Recovery Codes Generator
- Set the options you want.
- Your result is generated straight away. Press Generate again for a new one.
- Copy the result with one click.
Frequently asked questions
How strong is each code?
Two groups of five characters from a 31-character alphabet give about 50 bits, plenty for a one-time code that a server rate-limits.
Can I use these for my own accounts?
Codes only work when the service issued them. This tool is for building or testing systems that use recovery codes.
Is Recovery Codes Generator free and private?
Yes. Recovery Codes Generator is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.