# Recovery codes: the thing everyone forgets

URL: https://ekom.blog/recovery-codes-the-thing-everyone-forgets/
Published: 2026-05-06
Author: Ekom
Topics: Operating systems & apps

> Two-factor login is only safe if you can get back in when your phone is lost. Here is what recovery codes are, where to find them, and where to keep them.

Picture this. You switch on two-factor authentication for your email, feel responsible, and carry on with life. A year later your phone is dropped in a river, stolen, or just dies. You buy a new phone, open your email, and it asks for a six-digit code that lives on the phone you no longer have.

This is the moment recovery codes are for. They're also the thing almost everyone forgets to save when they turn two-factor on.

I've written about the front half of this story: two-factor authentication: SMS, apps and passkeys compared and transferring two-factor codes to a new phone. This is the back half: what happens when everything else fails.

## What a recovery code is

A recovery code (sometimes called a backup code) is a one-time password, generated when you set up two-factor login. Each code works once. If you can't use your normal second step, you type a recovery code instead, and you're in.

A set usually contains a handful of codes, such as eight or ten. They look like a string of letters and numbers. You use them only in an emergency, and once a code has been used, it's burned.

Think of them as the spare key you hide outside the house. You hope you never use it, and you'll be very glad it exists the day you lock yourself out.

## Why they matter more than you think

Two-factor login protects you from other people. Recovery codes protect you from yourself, or from bad luck.

Without them, getting back into an account can mean:

- Long identity checks that take days or weeks.

- Waiting periods before the service lets you reset.

- In some cases, losing the account altogether.

For an email account, that can cascade. Your email is the reset route for nearly everything else, so locking yourself out of email can leave you locked out of everything. I covered the process in account recovery: getting back into a locked account, and it's not fun when it comes to that.

For someone who runs websites, the stakes are higher. Domain registrar, hosting, payment processor, Search Console, store admin: all of them may depend on two-factor logins tied to one phone. Two-factor login for website admins explains why that setup is smart, and recovery codes are what stop it from becoming a trap.

## Where to get them

The location differs by service, but the pattern is similar. Look in the account's security settings for words like "backup codes", "recovery codes" or "recovery keys".

- Google. In your Google Account's security section, under 2-Step Verification, there's an option for backup codes.

- Apple. Apple uses a recovery key and recovery contacts rather than a list of codes. You can set these up in your Apple Account's sign-in and security settings. A recovery key is long and is only used in some situations, so read Apple's own explanation before enabling it.

- Microsoft. Offers a recovery code you can generate when setting up two-step verification.

- GitHub, social networks and many others. They generally show you recovery codes as you enable two-factor login. The prompt is easy to click past.

- Authenticator apps. Some apps let you back up or sync your accounts; others don't. Check before you rely on one.

- WhatsApp. Its two-step verification uses a PIN that you set, and an email address for resets. Neither is a recovery code, but the idea is the same: set the email address, or you cannot reset the PIN. See WhatsApp settings everyone should check.

If your service doesn't mention recovery codes, search its help page for how to regain access without your second factor. If the answer is "you can't", you'd better know that before you need it.

## Where to keep them

A recovery code is as powerful as your password plus second factor combined. Anyone who finds it can get in. So how you store it is a trade-off between losing it and leaking it.

Reasonable options:

- In a password manager, in a secure note attached to the login. This is convenient and encrypted. The catch: if your only way into the password manager is the phone that you lost, you've built a circle. Make sure the password manager itself has recovery set up. Password managers: the one app I'd install on every device explains why they matter.

- Printed and kept somewhere safe at home, such as a folder with important documents. Simple, and it survives a dead phone.

- Printed and kept in a second location, such as a trusted relative's home, for your most important accounts.

Things to avoid:

- A screenshot in your camera roll. It's easily seen, and it's backed up to the cloud, which defeats part of the purpose.

- An unlocked notes app or a plain document on your desktop named "codes".

- Email to yourself. If someone gets into your email, they get the codes.

- Only on the phone that holds your authenticator app. If that phone is lost, so are they.

## A simple routine for doing it right

You don't need a complicated system. Start with the accounts that would hurt most to lose:

- Your main email account (and any backup email).

- Your Apple or Google account.

- Your password manager.

- Domain registrar and hosting.

- Payment and banking apps that support two-factor login.

- Social accounts you rely on for work.

For each:

- Turn on two-factor login if it isn't on.

- Generate recovery codes.

- Save them in the place you chose.

- Mark which ones you've used, and generate new ones when you run low.

Note that regenerating recovery codes usually invalidates the old set, so replace the saved copy at the same time.

## Test once, if the service allows it

Some services let you confirm that your codes work. At the very least, check that you know where they are and that you can read them. A set that's saved in a locked file you can't open isn't a backup.

## Common myths

"I'll remember." You won't. These are random strings.

"My phone is backed up." Maybe, but backups of authenticator apps vary, and some deliberately don't include the secrets.

"Nobody would target me." Account takeovers are mostly automated, and a locked account is as likely to happen by accident as by attack.

"I can always contact support." Sometimes you can; often the process is slow, and for a free account it may be impossible.

## Key takeaways

- A recovery code is a one-time key for when your second factor is gone.

- Save codes the moment you enable two-factor login, not later.

- Keep them somewhere safe and separate from the phone that generates your codes.

- Start with email, your phone account, your password manager and anything that runs your site.

## Related reading

- Account recovery: getting back into a locked account

- Email security settings worth turning on

- Authenticator apps compared

Pick one account today, find the recovery option and save the codes. Which account would hurt most to lose?

---

From Ekom (https://ekom.blog/). More: https://ekom.blog/llms.txt
