Skip to content

Backup Codes and Recovery: Keeping Access if Your Phone Is Lost

What backup codes are, how to save them, and what to set up before a lost phone locks you out of your website accounts.

Reviewed on 26 November 2026

A backup code is a one-use code that stands in for your usual second step. Sites hand out a set when you turn on two-step sign-in. If your phone is lost, broken or out of reach, a saved code is often the quickest way back into the account.

The WordPress handbook describes the problem. If a user forgets their phone at home and two-step is on, they can't get into their account.1 A lost phone is the same trouble, only longer.

What a lost phone looks likePhone is lost or brokenSite asks for a second stepEnter one saved backup codeSet up a new second stepMake a fresh set of codes
Backup codes are the way back in at step three.

How backup codes work

Google's help page says to create backup codes in case you lose your phone, change your phone number, or can't get codes in other ways.2 Here are its rules.

  • After you use a code to sign in, it becomes inactive.2
  • You can get a new set of 10 codes whenever you want, and the old set then becomes inactive.2
  • Backup codes only work while two-step is switched on.2
  • Google says never to share them, and that it never asks for a backup code other than at sign in.2

Cloudflare's documentation agrees on the main points: each code is one-time use only, and you can request a new set from the dashboard.3 It adds that regenerating the codes invalidates the previous ones.3

The number of codes and their length differ between providers. Google's are 8 digits.2 Check your own provider's page.

Where to keep them

Google suggests a place like where you keep your passport or other important documents, and says you can print a copy.2 Cloudflare's screens let you download, print or copy the codes, and its documentation mentions saving them somewhere safe like a password manager.3

Two cautions follow. Don't store the codes only on the phone that makes your codes, because losing the phone would lose both. And don't leave them in a place other people can read. Anyone holding a code can use it as a second step.

Google also notes a tip: since each code works once, you may want to mark it as used.2

Add a second way in

Backup codes are one safety net. Providers suggest more than one.

  • Cloudflare recommends at least two different second-step methods, as well as safely stored backup codes.3
  • It also recommends configuring multiple security keys, so you can still sign in if the main key isn't available.3
  • Google lists other verification methods you can set up in case you lose your phone.4

Pick a second method that doesn't depend on the same phone. A spare security key kept elsewhere, for example, survives a lost handset. You can compare the choices on the types page.

If you've lost the phone and the codes

Start with the provider's own recovery page, since each has different rules. Some accounts can't be recovered quickly, and the provider may need proof you own it. Cloudflare's documentation has a separate account recovery section, so look for the same on your registrar, host and email provider.

Where you can still sign in on another device, you may be able to remove the old phone and add a new one. Cloudflare says reconfiguring the app doesn't turn two-step off.3

A short checklist before you need it

  1. Save a full set of backup codes for every account that offers them.
  2. Keep them in a printed or locked place away from the phone.
  3. Add a second method where the provider allows it.
  4. After using a code, make a fresh set if the provider tells you to.
  5. Don't give a code to anyone who contacts you, even if they say they're from the provider. Google's help page says it never asks for one outside the sign-in screen.2

Reference list

  1. Two Step Authentication, WordPress Advanced Administration Handbook
  2. Sign in with backup codes, Google Account Help
  3. Two-factor authentication, Cloudflare Fundamentals docs
  4. Turn on 2-Step Verification, Google Account Help