What Is a Backup Code?

ALI Remote · Glossary

A backup code is a one-time code, created in advance, that lets you finish signing in when two-factor authentication is on and your usual second factor is unavailable.

Services give you backup codes as a short list when you turn two-factor authentication on. Each code works once. Some services use another name: GitHub, for example, calls them recovery codes. Whatever the name, the idea is the same: a spare key you cut while you still have the first one.

Why do backup codes matter?

With two-factor authentication, a password alone no longer opens the account. That protection has a cost: the second factor usually lives on one phone, and phones get lost, broken and replaced.

Google's help page on backup codes (checked on 27 November 2026) gives the reason in one line: create backup codes "to use in case you lose your phone, change your phone number, or otherwise can't get codes by text, call, or Google Authenticator."

The catch is timing. A backup code only helps if you saved it while you could still sign in. Without one, and without another second factor, you are left with the service's account recovery process, which can be slow and is not always possible.

How does a backup code work?

  1. You turn on two-factor authentication. The service offers a list of backup codes in its security settings.
  2. You save the list somewhere you can reach without the phone that holds your second factor.
  3. At sign-in, you enter your password, choose another way to verify, and type one unused code.
  4. That code stops working. The others stay valid.
  5. When the list runs short, or someone may have seen it, you create a new set.

The details change from one service to the next. Here is what Google's page says for a Google Account, as one example:

PointWhat Google's help page says (27 November 2026)
Codes in a set"You can get a new set of 10 backup codes whenever you want."
Reuse"After you use a backup code to sign in, that code becomes inactive."
New setCreating new codes inactivates the old ones.
Sharing"Do not share your backup codes with anyone."

Other services set their own numbers and rules, so read the help page of each one instead of assuming. For Instagram, the path to the codes and the route when you don't have them are in our guide to Instagram backup codes.

Example of a backup code in use

Example (illustrative). The owner of a café runs the café's social account, with an authenticator app on her phone as the second factor. On a Saturday the phone falls into a sink and doesn't restart.

She had printed her backup codes and put the sheet in the office safe. On the replacement phone she enters her password, chooses to use a backup code and types the first one on the sheet. She is back in the account. She then sets up the authenticator app on the new phone, crosses out the used code and creates a new set.

Who should hold the backup codes when several people work on an account?

The owner of the account. A backup code stands in for the second factor, so whoever holds the list can pass that step.

For a client's account, that means the client keeps the codes. The agency works through its own access, with the client's authorisation, and never asks for the list. Write this into the access step of your client onboarding checklist: who owns the account, who holds the second factor, where the codes are stored. Record names and places, never the codes themselves.

Related terms

  • Two-factor authentication (2FA): a sign-in that needs two kinds of proof. Backup codes only exist once it is on.
  • Authenticator app: an app that shows a changing one-time code.
  • Recovery code: another name some services give to backup codes.

More terms in the glossary.

Common questions

Can a backup code be used more than once?

Usually not. Google's help page says that after you use a backup code to sign in, that code becomes inactive. Other services publish their own rules. The safe habit is the same everywhere: treat every code as single use, cross it out once typed, and create a new set before the list is empty.

Where should you store backup codes?

Somewhere you can reach without the phone that holds your second factor. Google suggests printing them and keeping the copy "somewhere safe, like where you keep your passport or other important documents". A password manager also works, as long as you can open it without that phone. Avoid a screenshot in a camera roll, an email to yourself or a chat message.

More terms