Losing the phone that holds your two-factor authentication app is one of the most stomach-dropping moments in modern digital life. Every account you protected with a time-based code — email, banking, work systems, crypto — suddenly asks for a six-digit number you can no longer produce. The reassuring reality is that a lost, stolen, or wiped phone almost never means a permanently locked account. It means you now have to fall back on one of several recovery paths, and how smooth that fallback is depends almost entirely on what you set up when you first enabled 2FA. This guide walks through every option in order, from the fastest to the most involved, and finishes with the handful of habits that make the next lost phone a non-event.
Before diving in, it helps to understand what actually lives on that phone. A TOTP authenticator does not store a password or a login session. It stores a shared secret — a short string of random data — for each account, and it combines that secret with the current time to compute the rotating six-digit code. If you want the full mechanics, our pillar guide How TOTP authentication works explains the algorithm step by step. The key takeaway for recovery is this: the code is not tied to the physical device. It is derived from the secret. Anyone or anything that holds the same secret can generate the exact same codes. That single fact is the foundation of half the recovery options below.
Option 1: Use Your Backup or Recovery Codes
When you enabled 2FA on most services — Google, GitHub, Microsoft, Dropbox, financial platforms, and many more — the setup screen offered you a list of backup codes (sometimes called recovery codes). These are typically eight to ten single-use strings that act as a one-time bypass of the authenticator. Each code works exactly once: you type it in place of the six-digit code, the service lets you in, and that code is then permanently spent.
If you saved those codes, this is the fastest route back in. They may be in a printout in a drawer, a text file, a screenshot, a password manager entry, or a secure note. Once you are logged in with a backup code, immediately go to the account's security settings, remove the old authenticator registration, and enrol a fresh one on your new device. Regenerate a new set of backup codes at the same time, because you have just burned one and should assume the old list is now partly used.
Backup codes are the option every security team hopes you kept, precisely because they require no waiting, no support ticket, and no identity check beyond the code itself. If you have them, start here and you may be done in minutes.
Option 2: Restore From an Authenticator With Cloud Backup or Sync
Not all authenticator apps are equal when disaster strikes, and the single biggest difference is whether the app backs its secrets up off-device. Several modern authenticators offer encrypted cloud sync or backup: Google Authenticator can sync secrets to your Google account, Microsoft Authenticator can back up to a Microsoft account and iCloud, Authy keeps an encrypted multi-device backup, and password-manager-based authenticators such as 1Password and Bitwarden store your TOTP secrets in the same encrypted vault as your logins. Open-source options like Aegis on Android let you keep an encrypted export.
If your old app was one of these and you had backup or sync turned on, recovery is straightforward: install the same app on your new phone, sign back into the account or vault that held the backup, unlock it with your password or recovery key, and your accounts reappear, codes and all. No per-service dance required — one restore brings back every secret at once.
The painful counterpart is an authenticator that stored everything only on the device, with no export and no sync. Older versions of Google Authenticator worked this way for years: the secrets never left the phone. If that phone is gone and you never exported, those specific secrets are unrecoverable, and you fall through to the options below. This is not a failure of the algorithm; it is simply that the only copy of the secret went with the device. It is also the strongest argument for choosing an app that supports encrypted backup in the first place.
Option 3: Re-Add the Account From a Secret or otpauth:// URI You Saved
Here is the option most people forget they have. When you set up 2FA, the service showed you a QR code to scan. That QR code is not magic — it encodes a plain-text otpauth:// URI that contains the account's base32 secret along with the issuer name, your account label, and parameters like the algorithm, digit count, and 30-second period. Many setup screens also show a "can't scan? enter this key manually" link that reveals the base32 secret as text.
If, at enrolment, you saved that secret or the full otpauth:// string somewhere safe — a password manager, an encrypted note, a printed sheet — then you never truly lost 2FA at all. Because the code is derived purely from the secret and the time, you can re-add the account to any compatible authenticator on your new phone and it will immediately produce the correct codes, perfectly in sync with what the service expects. You do not need the original app, the original phone, or a support ticket.
You can even verify a saved secret before committing it to a new device. Paste the base32 secret into our TOTP generator and it will compute the live six-digit code entirely in your browser, using the same RFC 6238 algorithm your phone did. If that code is accepted by the service, you have confirmed the secret is correct and can re-enrol it in your authenticator of choice with confidence. This is also the fastest way to sanity-check a secret you are not sure you copied correctly — and if the code the service rejects looks close but wrong, our sibling guide Why my 2FA code is not working covers the usual culprits, from clock drift to a mistyped key.

Option 4: Per-Service Account Recovery
If you have no backup codes, no cloud backup, and no saved secret, you are not out of options — you simply move from self-service recovery to provider-assisted recovery, and this is handled one account at a time. Every major service has an account-recovery flow for exactly this situation, though the details vary widely.
Common recovery paths a service may offer include: sending a verification link or code to a backup email address or a previously registered phone number; falling back to a second enrolled 2FA method (a hardware security key, a passkey, or SMS you may also have set up); answering account-history questions; or opening a support case where you prove ownership through identity verification. Financial institutions and workplaces often route you to a human — a bank branch, a helpline, or your organisation's IT help desk — who can reset the second factor after confirming who you are. These flows are deliberately slower and more suspicious than the self-service ones, because from the provider's perspective, "I lost my phone, please turn off 2FA" is exactly what an attacker would also say. Expect identity checks, waiting periods, and occasionally a mandatory cooling-off window before the reset takes effect.
Two practical tips make provider recovery smoother. First, start from a device and network the service already trusts if you have one — a work laptop, your home connection — because a recognised context lowers the friction. Second, tackle your email account first if it is among the locked ones, since email is the recovery channel for almost everything else; regaining email often unlocks a cascade of other recoveries.
Lost vs. Stolen: An Extra Step If the Phone Was Taken
Recovery is about getting you back in, but a stolen phone raises a second question: could someone else get in with it? Here the ordinary defenses of the device do most of the work. A screen lock — a strong PIN, a passphrase, or biometrics — stands between a thief and your authenticator app, and many authenticators add their own app-level lock on top. Someone who cannot unlock the phone cannot open the app to read your codes, even though the secrets are physically present on the device.
Even so, treat a stolen phone as a security event, not just a recovery chore. Use your platform's remote find-and-lock tools (Find My iPhone, Find My Device on Android) to lock or, if you have given up on getting it back, remotely wipe the phone so the secrets are erased. Then, as you regain access to each account, do not merely re-add your new authenticator — remove the old device's registration and rotate the secret by re-enrolling from scratch, so the codes on the lost phone stop matching. Change the password of any account whose email or session may also have been exposed. The goal is to make the stolen device useless even in the unlikely event its lock is defeated.
What To Do Differently Next Time
Once you are back in, spend twenty minutes making sure a future lost phone is a shrug rather than a crisis. Three habits cover almost every case.
- Save your recovery codes the moment you enable 2FA. Every service that offers them is handing you a guaranteed way back in. Store them somewhere independent of the phone: a password manager entry, an encrypted note, or a printed sheet in a safe place. Test that you can find them before you need them.
- Keep a backup of your secrets. When you scan a 2FA QR code, also capture the underlying
otpauth://URI or the base32 key and file it in your encrypted vault. This gives you the Option 3 escape hatch for every account, independent of any single app. Treat these secrets like passwords — they are just as sensitive — and never store them in plain text on a synced-but-unencrypted service. - Use an authenticator with encrypted sync, and consider a second enrolled factor. An app that backs your secrets up to an encrypted, password-protected account means a lost phone is solved by installing the app and signing in. Adding a second 2FA method to critical accounts — a hardware security key or a passkey kept separately — gives you a built-in fallback that never depends on one device surviving.
The through-line of every recovery option is the same: the six-digit code lives in a secret, not in a phone. If a copy of that secret exists somewhere you control — as a backup code's parent registration, a synced vault, or a saved otpauth:// string — then a lost, stolen, or wiped phone is an inconvenience, not a lockout. Preparation is what turns the worst-case scenario into a ten-minute fix, and the best time to prepare is the next time you enable 2FA on anything.