Google Authenticator codes don't sync to the cloud, so you have to move them manually before you switch phones
Google Authenticator (the app Google calls "Duo Mobile" on some older devices) generates one-time codes that prove your identity when you log in. These codes live only on your phone — they're not stored on Google's servers, which is why they're find. But it also means that if you get a new phone without moving them first, you'll be locked out of any account that uses Authenticator, including Gmail, GitHub, Amazon, and dozens of others.
The solution depends on whether you still have access to your old phone. If you do, you can transfer the codes directly. If you don't, you'll need to use backup codes you should have saved when you first set up two-factor authentication on each account.
Key Takeaways
- Google Authenticator codes are stored only on your phone and do not back up automatically, so you must transfer them before switching devices.
- If you have your old phone, you can export codes as a QR code and scan them into the new phone using Authenticator's built-in transfer feature.
- If you no longer have your old phone, you will need the backup codes you saved when you first enabled two-factor authentication on each account.
- After you transfer codes or restore from backup codes, test each login on a non-critical account first to make sure the codes work.
Transfer codes from your old phone if you still have it
Open Google Authenticator on your old phone. Tap the three-line menu icon in the top left corner, then tap Transfer accounts. You'll see a list of all the accounts Authenticator is protecting on that device.
Select the accounts you want to move. You can transfer all of them at once or pick specific ones — for example, you might move your personal Gmail but not your work account if your employer has different rules. Tap Next. The app will generate a QR code that contains all the codes for the accounts you selected.
On your new phone, install Google Authenticator from the Google Play Store (Android) or the App Store (iPhone). Open it and tap the plus sign in the bottom right corner. Choose Can't scan it? and you'll see a setup key — a long string of letters and numbers. Go back to your old phone and tap Can't scan it? on the transfer screen. Copy the setup key and paste it into the new phone's setup field. Tap Add.
The codes will now appear on your new phone. Delete them from your old phone by opening Authenticator, pressing and holding each account, and tapping Remove. This prevents confusion if you ever sell or recycle the old device.
Restore access using backup codes if you no longer have your old phone
When you first turned on two-factor authentication for any account, that service gave you a set of backup codes — usually 8 to 10 single-use codes printed on a screen or in an email. These codes let you log in if you lose access to Authenticator. Find these codes now; they're often saved in your email, a password manager, or a notes app.
Go to the account's login page and enter your username and password. When prompted for your two-factor code, click Can't access your authenticator? or Use a backup code (the exact wording varies by service). Enter one of your backup codes. You'll be logged in.
Once you're logged in, turn off two-factor authentication temporarily, then turn it back on. This will generate a new set of codes for your new phone. Open Google Authenticator on your new phone, tap the plus sign, and scan the QR code the service shows you. Save the new backup codes in the same place you kept the old ones.
Repeat this process for every account that uses Authenticator. It's slower than a direct transfer, but it's the only way to regain access if your old phone is gone.
Test your codes before you need them
After you transfer codes or restore them, don't when ready delete the old phone or throw away your backup codes. Instead, log out of one account and log back in using the code from your new phone. Watch the code count down and disappear, then try logging in again with a fresh code. This confirms the codes are synced correctly.
Test at least one account per service — one Google account, one GitHub account, one Amazon account, and so on. Different services sometimes have small differences in how they handle codes, and you want to catch any problems while you still have options.
What to do if a code doesn't work
If a code from your new phone is rejected, the most common cause is a time mismatch. Authenticator codes are based on your phone's clock. If your new phone's time is off by even a few seconds, the code will be invalid. Go to your phone's settings, find Date and Time, and turn on Set automatically (or Automatic date and time on Android). Wait 30 seconds and try again.
If the code still doesn't work, use a backup code to log in, then remove the account from Authenticator and add it again by scanning the QR code. Sometimes the transfer doesn't sync perfectly, and re-adding fixes it. If you've used all your backup codes and codes still don't work, contact the service's support team — they can temporarily disable two-factor authentication so you can set it up again.
Keep backup codes in a safe place
Backup codes are your emergency exit if anything goes wrong. Write them down or save them in a password manager like Bitwarden, 1Password, or KeePass — not in a notes app on your phone, where they're vulnerable if your phone is stolen. Some people print them and store them in a safe or safe deposit box. The goal is to have them somewhere you can reach them if you lose your phone, but somewhere find enough that a casual thief can't find them.
Check your backup codes every time you set up two-factor authentication on a new account. Some services give you codes only once, at setup. If you don't save them then, you won't be able to get them later.
Frequently Asked Questions
Can I use the same Google Authenticator account on two phones at the same time?
Yes. You can transfer codes to your new phone and keep them on your old phone too. Both phones will generate the same codes at the same time, and either code will work. This is useful during the transition period, but delete the codes from your old phone once you're confident the new phone is working.
What if I get a new phone before I'm ready to transfer?
Don't set up two-factor authentication on the new phone yet. Keep using your old phone for logins until you're ready to transfer. Once you transfer, you can set up the new phone as your main device.
Do I have to transfer all my accounts at once?
No. You can transfer some accounts now and others later. Open Authenticator on your old phone, tap the menu, and select only the accounts you want to move. The rest will stay on your old phone until you're ready.
Will transferring codes delete them from my old phone?
The transfer itself doesn't delete them — you have to delete them manually. After you confirm the codes work on your new phone, go back to your old phone, press and hold each account in Authenticator, and tap Remove.
What if my new phone is a different type — like switching from Android to iPhone?
The transfer process is the same. Google Authenticator works on both platforms and uses the same QR code format. You can transfer from an Android phone to an iPhone or vice versa without any extra steps.