randarium
Security

Recovery Code Generator

Generate one or many cryptographically random recovery codes for MFA/2FA backup storage. Choose the code length, grouping layout, separator style, and character mode for printable, easy-to-type emergency codes.

Also known as: 2fa backup code · mfa recovery code · account recovery code

secure · crypto RNG

Private by design. Your recovery codes is generated locally and never saved, uploaded, or shared — only your settings can be, and only when you choose.

Output

No output yet — set your options and hit .
About this tool, tips & examples

What it does

The Recovery Code Generator creates cryptographically random backup codes for 2FA and MFA recovery flows. You can control the code length, how many codes to make, how they are grouped, which separator to use, and whether the characters are numeric, alphabetic, or alphanumeric.

Common use cases

  • Backup codes for 2FA or MFA-protected accounts.
  • Printable emergency account-recovery sheets.
  • Write-down-friendly codes stored in a safe or password manager.
  • Internal demos and security onboarding materials.

Settings

  • Code length — total characters before grouping.
  • How many — generate one code or a full backup set.
  • Characters per group — split long codes into chunks such as ABCD-EFGH; set this to 0 for no grouping.
  • Separator — use hyphens, spaces, or no separator between groups.
  • Character mode — choose alphanumeric, numeric-only, uppercase letters, or lowercase letters. Non-numeric letter-based modes avoid characters like 0/O and 1/I/l to keep printed codes easier to read.

Privacy note

Everything runs locally in your browser using cryptographically secure random generation. Recovery codes are never uploaded, logged, or included in share links. Only generation settings can be saved or shared, and the sensitive generator warning reminds you to handle the resulting codes with care.

FAQ

What are recovery codes for? They are backup codes you keep offline so you can regain access if you lose your authenticator app, hardware key, or phone.

Can I print or write these down? Yes. Grouping and separator options are designed to make codes easier to read, print, and copy carefully onto paper or into a secure note.

Can I reproduce the same codes later with a seed? No. This is a secure generator, so it always uses local crypto randomness and never exposes a seed.