2FA Backup Codes Generator

Generate secure recovery codes for two-factor authentication. Print, download or copy.

2FA backup codes: complete guide

Two-factor authentication (2FA) dramatically improves account security — but it introduces a new failure mode: losing access to your second factor. Phones get lost, stolen or wiped. Authenticator apps get accidentally deleted. Backup codes are the emergency parachute that keeps you locked in, not out.

When to use this tool

  • Self-hosted services (Vaultwarden, Nextcloud, custom apps) that need bulk recovery codes
  • Team onboarding — issuing initial 2FA recovery codes to new members
  • Emergency access kits for family password vaults
  • Cryptocurrency and hardware wallets — additional recovery layer

Storage best practices (2026)

  1. Print two copies — one at home, one in a safe deposit box or trusted family member
  2. Never store on the same device that runs your authenticator app
  3. Encrypt digital copies using a password manager's secure notes feature
  4. Mark used codes immediately after redemption; regenerate the full set when 5+ codes are consumed
  5. Test recovery yearly — sign in with a backup code once a year to confirm the process still works

SMS-based 2FA vs authenticator apps

SMS 2FA is better than nothing, but SIM-swap attacks make it the weakest 2FA method. Use TOTP apps (Aegis, 2FAS, Authy) or hardware keys (YubiKey) for critical accounts. When SMS is unavoidable — for services that only support it — protect the phone number itself using a dedicated virtual number that never appears on your public profile.