Google backup codes let you sign in to your Google Account when you cannot use your usual second step, for example after losing your phone or changing your number. This guide covers how to get them, where to look for lost ones, how to sign in with one, and what to do if you have no codes at all.
Quick answer: Go to myaccount.google.com, open Security & sign-in, then 2-Step Verification, and under Backup codes choose Get backup codes. You get a set of 10 codes with 8 digits each, and each code works once. You must be signed in to do this, so create them before you need them.
Documentation reviewed November 13, 2026. The steps come from Google’s help pages, listed at the end. Menu labels change, and Google’s own pages use slightly different labels in places, which is noted below.
What Google backup codes are
- A set has 10 codes, and each code has 8 digits.
- Each code works once. Google says a code becomes inactive after you use it.
- 2-Step Verification must be turned on. Without it there are no backup codes.
- They are not available in the Advanced Protection Program. Google says you cannot download backup codes if you are enrolled.
- They are different from the codes sent by text or shown in an authenticator app. Those change every time. Backup codes are a fixed list you save in advance.
First, match your situation to the fix
| Your situation | What to do |
|---|---|
| You can sign in and want codes for the future | Get backup codes |
| You can sign in but lost your saved codes | Create a new set, which replaces the old one |
| You cannot use your phone but have saved codes | Sign in with a backup code |
| You saved codes once but cannot find them | Look for the downloaded file |
| You have no phone and no codes | Try another second step, then account recovery |
How to get Google backup codes
Google’s steps on a computer:
- Go to your Google Account at myaccount.google.com.
- Click Security & sign-in.
- Under “How you sign in to Google”, click 2-Step Verification. You may need to sign in again.
- Under “Backup codes”, click Continue.
- Click Get backup codes.
- Click Download Codes to save them or Print codes to print them.
Google’s help page has separate tabs for Android and iPhone. The steps above are the computer version. Another Google help page describes the same place with the labels Show codes and Get new codes, so you may see either wording.
How to find lost backup codes
- Search your computer for the file. Google says downloaded codes are saved as
Backup-codes-username.txt, with your own username in the name. This only works if you downloaded them earlier. - Check where you keep paper records if you printed them.
- If you are still signed in somewhere, open the Backup codes section of your account as described above to see your codes or create a new set.
Google’s help pages give no way to look up your codes without being signed in. If you cannot sign in and cannot find them, go to the section on having no codes.
How to sign in with a backup code
- Find your backup codes.
- Sign in to your Google Account with your email address and password.
- When asked for the second step, click Try another way.
- Click Enter one of your 8-digit backup codes.
- Enter a code you have not used before.
Cross out each code after you use it, because it will not work a second time.
When to create a new set
Google says to create a new set if you lose your codes, run out of them or think they were stolen. In the Backup codes section, click Refresh. The previous set stops working automatically. Delete removes the codes and deactivates them without creating new ones.
No backup codes and no phone
Google lists other ways to prove it is you:
- A phone that is already signed in to your account.
- Another phone number you added to the account.
- A hardware security key.
- A passkey on another device.
- A computer where you earlier ticked “Don’t ask again on this computer”. Google says you may be able to sign in there without a second step.
- Your old phone number on a new phone. Google notes that your carrier can move your number to a new phone or SIM card.
If none of those work, use Google’s account recovery. You answer questions to confirm the account is yours, and you may need to give an email address or phone number where you can be reached. Google says that without another second step it can take 3 to 5 business days to confirm it is you.
If your phone was lost or stolen, Google also recommends signing out of that phone and changing your Google Account password.
How to store backup codes safely
- Keep them somewhere your phone is not. The codes exist for the day you lose the phone, so a note on that phone does not help.
- Keep them private. Anyone with your password and one code can get into your account.
- Never give a code to someone who asks for it. Google says it only asks for a backup code when you are signing in. A caller, email or text asking for one is not Google.
- Replace the set after a suspected leak. Refreshing makes the old codes useless.
FAQ
How many backup codes does Google give you?
Ten codes in each set, with 8 digits each.
Do Google backup codes expire?
Google’s help page does not mention an expiry date. A code stops working once you use it, and the whole set stops working when you create a new set or delete the codes.
Can I use the same backup code twice?
No. Each code becomes inactive after one use.
Can I get backup codes if I am locked out?
No. You create and view them from inside your account, so you need to be signed in. If you are locked out, use another second step or account recovery.
Where is the 8-digit backup code for Gmail?
Gmail uses your Google Account, so the codes are the same. They are in your Google Account under Security & sign-in, 2-Step Verification, Backup codes, or in the file or printout you saved.
Related guides
- Google Account disabled: why it happens and how to appeal.
- Google “This browser or app may not be secure”: fixes for blocked sign-ins.
- Passkeys vs passwords and password managers: other ways to protect sign-in.
Sources: Google Account Help: Sign in with backup codes and the page on problems with 2-Step Verification. This is a documentation-based guide, not a claim of hands-on testing on every device.
Part of our AI security and privacy guides.