Blog / Phones & Gadgets /
Transferring two-factor codes to a new phone
Setting up a new phone is a pleasant job until you open your authenticator app and find it empty.
Those six-digit codes that change every thirty seconds don’t travel with you automatically. On many apps they live only on the old phone. If you wipe it, lose it or sell it before moving them, you can be locked out of accounts that matter: email, banking, your website’s hosting, your domain registrar.
The fix is simple, and it’s much easier to do before the old phone is gone than after. Here’s the safe order of events.
Why this is awkward
Two-factor authentication using an app works by sharing a secret between the service and your phone, usually through a QR code you scanned when you set it up. The app then uses that secret and the time to produce the codes. Move to a new phone without that secret, and the codes stop working.
Different apps handle this differently, which is why advice you read online sometimes conflicts. Check which app you use first.
Before you start (applies to every app)
- Keep the old phone working and in your hand until the end of the process.
- Make a list of the accounts that use the app. Email, banking, social media, hosting, domain registrar, Google, GitHub, anything that handles money or your site.
- Find your backup codes for the important ones. Many services give you a set of one-time recovery codes when you enable 2FA. If you saved them somewhere safe, you have a way back in. If you didn’t, now is the time to generate fresh ones and store them properly, for example in a password manager.
- Make sure you know your phone number and recovery email are up to date on each account.
Option 1: Google Authenticator
At the time of writing, Google Authenticator does not sync your codes to your Google account, which is why people get caught out. It does have an export feature.
- On the old phone, open Google Authenticator, tap the menu, and choose Transfer accounts (then Export accounts).
- Select the accounts and a QR code is shown. The exact menu names can differ slightly between app versions.
- On the new phone, install the app, choose Import accounts, and scan the QR code.
- Check that the codes on both phones match for a few accounts before you rely on the new one.
Warning: that QR code contains the secrets for your accounts. Don’t screenshot and leave it lying around, and don’t share it. Use it once, and make sure nobody is looking over your shoulder.
If you have many accounts, the export may be split across several QR codes.
Option 2: Authy
Authy supports multiple devices and encrypted backups, tied to your phone number and a backup password you set.
- Install Authy on the new phone and log in with the same phone number.
- Verify through the existing device or by SMS or call, as prompted.
- Enter your backup password so the accounts can be decrypted.
- Once the new phone works, remove the old device in Authy’s settings so it can’t be used to approve new devices.
The backup password is the key. If you’ve forgotten it, the process is much harder, so keep it in your password manager.
Option 3: Microsoft Authenticator
Microsoft’s app can back up account details to the cloud when you turn on backup, tied to your Microsoft account (and on iPhone, to iCloud). On the new phone, you sign in and choose to recover from the backup. Some accounts, especially certain work accounts, may need to be re-added manually. Check the current instructions in the app.
Option 4: Password managers with built-in codes
Some password managers, including 1Password and Bitwarden, can store the one-time codes alongside your logins. When you set up the new phone, you sign in to the password manager and the codes are there. This is convenient, but it also means one account holds both your passwords and your second factor. Whether that’s an acceptable trade-off depends on how you weigh convenience and risk. I think a strong master password with two-factor login on the manager itself is a reasonable compromise for most people. I wrote about why a manager is worth having in password managers: the one app I would install on every device.
Option 5: The slow way that always works
If your app has no transfer feature, or something goes wrong, you can re-enrol each account:
- Log in to the account on a computer (with the old phone still at hand for the current code).
- Go to the security settings and find two-factor authentication.
- Turn it off and on again, or choose to reconfigure the authenticator.
- Scan the new QR code with the app on the new phone.
- Save the new backup codes.
It’s tedious with a long list. It’s also a good moment to tidy up: remove accounts you don’t use any more.
If you’ve already lost the old phone
Don’t panic, but expect effort.
- Try your backup codes.
- Use any other 2FA method set up on that account, like SMS or a security key.
- Use the service’s account recovery process. It can take days and may ask for proof of identity.
- Start with the accounts that unlock others: email first, because it’s how you reset almost everything else.
This is the strongest reason to do the transfer properly while you still have the old phone.
Checklist for switching phones
A note for people who run websites
Your admin logins are some of the most valuable accounts you have. A WordPress admin, a hosting dashboard or a domain registrar being locked is a business problem, not just an inconvenience. If a site has more than one person who might need access, think about how recovery would work if the one phone were lost. Store recovery codes somewhere the team can reach them properly, not in one person’s notes app.
Key takeaways
- Authenticator codes live on the phone unless you move them. Don’t wipe the old phone first.
- Each app has its own transfer method. Use it before the switch.
- Keep backup codes safe, and treat transfer QR codes like passwords.
- Test the new phone on several accounts before you reset the old one.
Related reading
Have you got your backup codes stored somewhere other than the phone you’re about to replace?