# Backup codes: what they are and where to get them

Page: https://signedas.com/en/guides/backup-codes/ · Updated: 2026-11-29

> What backup codes (recovery codes) are, where to get them in Google, Instagram, Facebook, Microsoft and Discord, and what to do if you've lost them.

Backup codes (or recovery codes) are single-use codes a service gives you when you turn on two-factor authentication: with one, you sign in without your phone. You get them in the service's security settings, and only while you can still sign in: do it today, not the day you lose your phone.

## What they are

- **They stand in for the second step**: instead of your app's code or the text message, you type one of them.
- **Each one works once** at Google, Facebook and Discord: once used, it's done.
- **Getting new ones cancels the old**: at Google, Instagram and Microsoft, the new set replaces the last.
- **Each service names them**: Google, Instagram and Discord call them backup codes; Facebook and Microsoft, recovery codes.

## Google

1. In your Google, go to **Security & sign-in** › **2-Step Verification**.
2. Under “Backup codes”, click **Continue**, then **Get backup codes**.
3. Download or print them. There are 10, of 8 digits each, and you can get a new set of 10 whenever you want.

To use one, when you sign in click **Try another way** › **Enter one of your 8-digit backup codes**. If you downloaded them and can't find them, search your computer for `Backup-codes-` followed by your username.

## Instagram

1. Tap your profile picture in the bottom right, then **Menu** in the top right.
2. Tap **Password and security** (in Accounts Center or Meta Account settings) › **Two-factor authentication** › your Instagram profile.
3. Tap **Additional methods** › **Backup codes**. **Get new codes** cancels the current ones and gives you a new set.

Instagram asks you to copy them, take a screenshot or save them some other way before you need them.

## Facebook

1. On a computer, click your profile picture › **Settings & privacy** › **Settings**.
2. Click **Accounts Center** › **Password and security** › **Two-factor authentication** and pick your Facebook profile. You may need to enter your password again.
3. Below “How you get login codes”, click **Additional methods** › **Recovery codes** › **Get new codes**.

There are 10. If you don't see “Recovery codes”, check that two-factor authentication is on.

## Microsoft

Microsoft gives one recovery code, 25 digits long, which also works if you forget your password.

1. Open Microsoft's **Manage how I sign in** page (account.live.com/proofs/manage/additional).
2. In the **Recovery code** section, select **Generate a new code**. Any previous code stops working.
3. Print it: Microsoft won't show it or let you download it again.

To use it, when you sign in select **Other ways to sign in** › **Use my password** › **Forgot password?** › **Use a different verification option** › **I don't have any of these**, and type it when asked (the steps may vary). It isn't case-sensitive, and it needs no spaces or dashes.

## Discord

It gives them when you turn on multi-factor authentication. To see them again, tap the cogwheel in the bottom left (**User Settings**), make sure you're under **My Account**, and select **View Backup Codes**: you'll see which ones you've used and can download them. Keep them safe: Discord Support can't remove multi-factor authentication.

## Where to keep them

Somewhere other than the phone with your authenticator: lose it, and you lose them with it. Discord recommends a password manager or printing them; Microsoft, printing its code and not keeping it on a device you sign in with. [SignedAs](https://signedas.com/en/authenticator-app/) keeps each service's recovery codes next to its login, end-to-end encrypted with everything else.

## If you've lost them

- **If you can still sign in**, get new ones: every service here gives you a new set, and at Google, Instagram and Microsoft the old ones stop working.
- **If you can't sign in**, use another method the service offers (a text message, email, a passkey) or its account recovery. Microsoft has a sign-in helper for this.
- **If you lost the phone with your authenticator**, see [how to recover Google Authenticator](https://signedas.com/en/guides/google-authenticator-lost-phone/) or [how to move Microsoft Authenticator to a new phone](https://signedas.com/en/guides/microsoft-authenticator-new-phone/).

## Questions

### Are backup codes and recovery codes the same thing?

Yes, the same thing under different names: single-use codes that stand in for the second step. Microsoft's differs in form: it gives a single 25-digit code.

### What are 8-digit backup codes?

Google's have 8 digits: it gives you 10, each single-use, in your Google's 2-Step Verification.

## Sources

- [Google: sign in with backup codes](https://support.google.com/accounts/answer/1187538?hl=en)
- [Instagram: how you can use a backup code](https://help.instagram.com/iphone-app/1006568999411025/?locale=en_US)
- [Facebook: how to get recovery codes to log in without your phone](https://www.facebook.com/help/148104135383285/?locale=en_US)
- [Microsoft: how to get a Microsoft account recovery code](https://support.microsoft.com/en-us/accounts-billing/manage/how-to-get-a-microsoft-account-recovery-code)
- [Discord: setting up multi-factor authentication](https://support.discord.com/hc/en-us/articles/219576828)
