The phone is clean. Whatever it was doing badly, it is not doing any more. You have signed back in, the apps are coming down from the Play Store, and then you open the authenticator and it is empty: no accounts, no six-digit codes, no list. Meanwhile your email, your bank, your registrar and the account that just sent you a sign-in prompt all still want a code from it, and none of them has noticed that anything happened.
The uncomfortable truth about how to recover Google Authenticator after a factory reset is that the question was decided before you tapped Erase. A factory reset is not a deletion you can undo; it is the removal of the only copy of something, unless a copy was already somewhere else. So the useful version of this page is not a trick to get the secrets back off the wiped phone. It is a short, honest test of what was already off the device, followed by the fastest rebuild for everything that was not.
There is one genuinely time-critical piece, and it is near the middle of this page rather than the end: on Android, the window in which your pre-reset app backup is still reachable can close during the setup wizard you have probably already finished. If you are reading this on the reset phone with setup complete, read that section first.
The short answer
- The secrets are gone from the phone and unchanged everywhere else. A TOTP enrolment is a shared secret: your app held one copy, the service holds the other. Wiping yours does not touch theirs.
- The reset switched two-factor authentication off on exactly zero accounts. No service was told. There is no notification, no grace period and nothing to appeal to, which is why every login still demands a code.
- Google Authenticator comes back if, and only if, you had signed in to a Google Account inside the app. Google documents it plainly: "When you sign in to your Google Account within Google Authenticator on a new device, your codes are automatically synced to this device." Try this before you rebuild anything.
- If you never signed in, Google's other documented route needs the old phone. The manual transfer works by exporting a QR code from the device you are moving away from, and a wiped phone cannot produce one.
- Every other app follows the same rule with different plumbing: a cloud account you can sign back in to, or an encrypted backup file you kept somewhere that is not the phone, or nothing.
- Android's own backup is a real possibility and a narrow one. A factory reset starts a new backup dataset, and the pre-reset one is offered during the setup wizard. Finish setup without choosing it and, in Google's words, "the device can restore only from its own backups".
- Where nothing restores, you re-register, and the order matters more than the speed. Email first, because almost every other recovery path ends in your inbox.
- Nobody can decrypt a backup for you. Authy, Aegis, 2FAS and KeyNesta all keep the key in your head rather than on a server. That is the correct design, and it is also why a remembered password is part of your backup.
What the reset actually destroyed
It helps to be precise about what an authenticator stores, because the vague version of it ("my codes") makes the situation sound more recoverable than it is.
For each account, the app holds a secret: a short string of random bytes handed to you once, usually inside a QR code, when you turned on two-factor authentication. The app does not fetch codes from anywhere. It combines that secret with the current time and computes six digits locally, which is why an authenticator works with no internet connection. The secret is the whole account. The codes are disposable output.
A factory reset erases app storage. That removes your copy of every secret the app was holding. There is no recycle bin, no undo and no forensic route back, because the data is not merely unlinked: the user data partition is cleared, and on a modern Android device it was encrypted with keys that the reset discards. Pages that suggest rooting the phone and pulling an app database with an old backup tool are describing a world that no longer exists on a current Pixel, and they predate the Google Account sync that is now the actual answer for most people.
The flip side is the part nobody panicking tends to notice: the service's copy of that secret is completely untouched. Which means two things at once. Your accounts are not less secure than they were yesterday, because the lost secret is not in anyone else's hands. And your accounts are not more reachable than they were yesterday either, because the second factor is still switched on and still being enforced.
Your accounts never heard about the wipe
This is the single most common misunderstanding behind the searches that land here, and it is worth stating as flatly as possible. Erasing the phone did not disable two-factor authentication anywhere.
A service has no way to observe what happened. It never had a connection to your authenticator; there is nothing to go offline. The enrolment is a row in the service's own database saying "this account has a TOTP factor, and here is the secret to check against". Wiping a client cannot edit that row, and your app never had the authority to.
The practical consequences are worth spelling out, because each one surprises somebody:
- You will not get an email about it. Nothing was triggered, so nothing was sent.
- There is no grace period. Some services offer a window after a password change; none offers one for a device you erased without telling them.
- The switch is at the service, not on the phone. 2FAS puts this in the plainest terms of any vendor, in its own support article for people with no backup: contact the service's support team, because "they may disable 2FA on your account or enable another method". That is where the off switch lives.
- Re-enrolling replaces the secret. When you add an account to a new authenticator, the service usually issues a fresh secret and retires the old one. So the copy that went down with the wiped phone becomes worthless the moment you re-register, which is the real reason you should rebuild rather than hunt for ghosts.
If you are in the harder version of this, where the inbox you need for recovery is itself behind a code from the wiped app, do not work through accounts in order of importance. Read locked out of email and 2FA first, because the way out of a dependency ring is rarely the account you want most.
What actually restores, app by app
Every row below is what the vendor documents about its own app. Where the vendor does not publish an answer, the row says so rather than rounding a forum post up to a fact.
| App | What had to be true before the wipe | What you get back on the reset phone |
|---|---|---|
| Google Authenticator | You had signed in to a Google Account inside the app, so codes were syncing. | Sign in to the same account and they arrive: "your codes are automatically synced to this device". Never signed in, and nothing returns. Google's only other documented route is a manual QR transfer that needs the old device (Google). |
| Microsoft Authenticator | Cloud Backup was on, and the reset phone is the same platform you backed up from. | Personal and third-party accounts return with their one-time password codes. Work or school accounts do not: "Work or school account credentials are not backed up. Only the account name is saved." Backups do not cross platforms (Microsoft). |
| Authy | Backups were on, you can still produce the backups password, and you can still receive on the same phone number. | Reinstall, re-register the number, then decrypt with the backups password. Twilio never had it and cannot reset it, so without the password the stored tokens stay unreadable (Twilio). |
| 2FAS | Google Drive sync was already on, under a Google account you can still sign in to. | "All your tokens/codes will be automatically restored to the app... just by turning the Sync back on (remember to choose the same Google account)", plus the sync password if you set one. Drive sync is "available only for Android users" (2FAS). |
| Aegis | You kept a vault file off the phone: "Automatic backups of the vault to a location of your choosing", a manual export, or Aegis's own Android backups setting. | Nothing by signing in, because there is no Aegis account. You restore the encrypted vault file with the password that encrypts it (Aegis). |
| Proton Authenticator | You were signed in to a Proton Account, or you exported a backup. | Sign in and the entries sync down, "protected by end-to-end encryption, so nobody but you can access them". Without an account it is the encrypted export you kept (Proton). |
| Bitwarden | The codes were saved in your Password Manager vault, not kept as local codes in Authenticator. | Vault codes reappear once you sign in, because "synced TOTP codes are not stored independently on your device". Local codes you never copied across "cannot be found anywhere in your Bitwarden vault" (Bitwarden). |
| KeyNesta | Sync was on, or you kept an encrypted backup file, and you remember the vault passphrase. | Install, sign in, unlock with the passphrase, and the entries are there. Our server cannot supply the passphrase, and there is more on that below. |
Four cells where the honest answer is that the vendor does not say, and you should plan as if the answer is no:
- Whether Google Authenticator's local-only codes travel in an Android backup or a phone-to-phone transfer is not documented by Google. Its Authenticator help page covers the in-app Google Account sync and the manual QR transfer, and nothing else. Treat the account sync as the only supported route, because it is the only one Google describes.
- Whether Microsoft's backup carries the underlying secrets of third-party accounts, or only reproduces their codes, is not documented. The page says the 30-second codes "will be available after you restore" and stops there. It also warns that Android backup moves to Google One from January 2027, so check its current page rather than an older walkthrough.
- Whether Aegis's automatic backups are on by default is not documented in the project's own README, which lists them as a feature without stating a default. If you cannot name the folder your vault backs up to, assume it is not backing up.
- Whether any given authenticator participates in Android's own backup at all is the app's decision, declared in its manifest rather than in its marketing, and most do not publish the answer either way.
If what you are actually dealing with is a deleted app rather than a wiped phone, the picture is more forgiving and the differences matter: see I deleted my authenticator app, where the phone's own backup is still a live option rather than an orphaned one.
The Android backup window you may have already closed
This is the section that belongs to a factory reset specifically, and it is the one everything else on the web skips. Android's Auto Backup can hold app data in Google Drive, and the rules Google publishes for developers describe exactly how a reset changes your odds.
A reset does not overwrite your backup. It starts a second one. In Google's words: "If the user factory-resets a device and then sets up the device with the same account, the backup is stored in a new dataset. Obsolete datasets are automatically deleted after a period of inactivity." So immediately after the wipe there are two datasets associated with that phone, the useful one being the older one.
The choice between them happens once, in the setup wizard. "During the initial device setup wizard, the user is shown a list of available backup datasets and is asked which one to restore data from. Whichever backup dataset is selected becomes the ancestral dataset for the device." And then the sentence that decides most outcomes: "If the user didn't go through the device setup wizard, then the device can restore only from its own backups."
Read that together with when a restore happens: "Data is restored whenever the app is installed, whether from the Play Store, during device setup... or by running adb install. The restore operation occurs after the APK is installed but before the app is available to be launched by the user."
Put the three together and the practical rules fall out:
- If you have already completed setup without picking the old dataset, this route is closed on that phone. Reinstalling the app again will pull from the new, empty dataset, not the old one.
- If you are still in the setup wizard, choose the pre-reset backup now, before installing anything by hand. The restore is attempted at install time, once per install.
- If the app opens empty after a restore, stop using it. Backups run roughly nightly, and "only the most recent backup is stored. When a backup is made, any previous backup is deleted."
- You will need the old screen lock. The backup "is end-to-end encrypted on devices running Android 9 or higher using the device's PIN, pattern, or password". A forgotten old PIN is a closed door.
- A phone-to-phone transfer is not the same as a cloud backup. For apps targeting Android 12 or higher, Google notes that on some devices
android:allowBackup="false""disables cloud-based backup and restore (such as Google Drive backups) but doesn't disable device-to-device transfers for the app". That is why some people's codes survive a handset swap and not a reset.
None of this is a plan. It is worth ten minutes of checking on the day, and it is the reason a reset you have not yet performed should be preceded by a verified copy somewhere else. The preparation half of that, for a phone that is about to be erased, repaired or traded in, is covered in broken phone authenticator app.
Rebuild in dependency order, not importance order
Before you rebuild anything, spend five minutes finding out whether you have to. Install the authenticator, sign in to the account it syncs with, and look. People re-enrol twenty services and then discover the codes were one sign-in away.
If the list is genuinely empty, work in this order. It is not an order of importance; it is an order of dependency.
- Your primary email. First, always. Nearly every other recovery flow ends with a message to your inbox, so an inbox you cannot open turns every later step into a two-step problem.
- The Google Account the phone signs in with, and your password manager. These gate most of the rest, including the backup discussed above.
- Domain registrar, DNS and your cloud provider, if anything other people rely on depends on them.
- Anything financial. Deliberately after email, not because it matters less but because its identity checks are the slowest and will almost certainly want to email you.
- Everything else, at whatever pace suits you.
Three things to do as you go, each of which prevents a repeat:
- Spend a recovery code on a registration, not just a login. Getting in once is not progress if you leave the account still pointing at an authenticator that does not exist. Where to store your 2FA backup codes covers spending one and generating a fresh set.
- Turn on whatever copy the new app offers, and then test it. A backup you have never restored is a belief. The options and their trade-offs are laid out in 2FA backup and sync.
- Write down the accounts as you re-add them. The list itself is useful: next time, it is the difference between rebuilding in an evening and discovering a forgotten service in four months.
If you are rebuilding without the phone at all rather than on a reset one, the per-service ladders are in lost phone 2FA recovery.
Where KeyNesta fits, and what it cannot do
We make an authenticator, so read this section with that in mind. Here is what our own documentation says, with the limits included rather than left out.
A wipe costs you nothing while you remember the passphrase. With sync on, your entries are stored on our server as individually encrypted objects, alongside your vault key wrapped under a key derived from your passphrase with scrypt. After a factory reset you install KeyNesta, sign in, type the passphrase, and the vault unwraps on the device. The reset removed a copy, not the original.
Without sync, we hold nothing at all. The app works entirely offline and uploads nothing unless you create a sync account, which is a genuine privacy property and also means a wipe with no sync and no backup file loses the vault. Both halves of that are set out in what our server stores.
A forgotten passphrase cannot be reset, by us or by anyone. The passphrase never reaches our servers, so there is nothing on our side to recover it from and no support request that changes this. There is exactly one documented exception, and it has to have existed before the wipe: a Recovery Kit, whose Recovery Code "is made on your device and printed; it never reaches us", and using it "sets a new passphrase, signs out every other device and ends that code". A printed code is off the device, which is the entire theme of this page. What zero-knowledge costs you is the honest version of that trade.
And the limits. KeyNesta is not open source and has not had an independent security audit, so read our security claims as well-designed and tested rather than externally verified; the parameters are in the encryption architecture. We store TOTP codes, not passkeys, and KeyNesta is not a hardware security key. If an account's second factor was a passkey or a physical key, nothing on this page applies to it, and the recovery route is that vendor's.
Frequently asked questions
Does a factory reset switch off two-factor authentication on the accounts in the app?
No, on none of them. Your app held one copy of each account's secret and the service holds the other, and erasing the phone cannot edit the service's records. No account is notified, no grace period opens, and every sign-in keeps demanding a code. The switch that turns a factor off lives at the service, which is why the route back is either a copy of the secret or the service's own recovery process.
I finished setting up my reset phone before I noticed. Is the old Android backup still reachable?
On that phone, assume not. Android offers the pre-reset dataset during the setup wizard, and Google's developer documentation is explicit that without the wizard "the device can restore only from its own backups". After the reset, its own backup is the new, empty dataset. Reinstalling the app again does not re-ask the question; it restores from the dataset the device is now attached to. It costs nothing to look in Google Drive's backup list, but plan on re-registration.
Will signing in to my Google Account on the reset phone bring the codes back by itself?
Only if you had signed in to that account inside Google Authenticator before the wipe. Signing in to the phone is not the same action as signing in to the app. Google's help page describes the sync as a feature of the app, where codes are saved to your Google Account and arrive automatically on a device you sign in to. If you had only ever used the app without an account, there is nothing stored to come down.
Is there any way to read a TOTP secret out of a phone that has already been wiped?
No, and treat any tool promising otherwise with suspicion. A reset clears the user data partition and discards the keys that encrypted it, so there is no plaintext left to carve back out. Older guides recommending root access and a backup tool to copy the app's database were written for devices and Android versions long superseded, and they describe copying data before a wipe rather than after one.
Should I turn two-factor authentication off at each service while I rebuild?
No. Switching a factor off and on again regenerates the enrolment, and on many services it also invalidates the recovery codes you were issued, which is the safety net you are most likely to need in the middle of a rebuild. Add the account to the new authenticator from the service's security settings instead, confirm one code, and only then save the fresh recovery codes. Leave the factor enabled throughout.
Is there any way to recover Google Authenticator after a factory reset?
Yes, but only if a copy existed off the phone. If you had signed in to your Google Account inside Google Authenticator, signing in again on the reset phone syncs the codes back. If you had exported the accounts as a QR code before the reset, or kept an encrypted backup from another app, restore that. If you had neither, the codes cannot be read back out of the wiped phone and each account has to be re-enrolled.
How do I restore Google Authenticator without my old phone?
Sign in to Google Account sync inside the app on the new phone first, since that needs no old phone. Where no sync was on, use each service's backup codes or recovery flow to sign in, then register the new app. To get back into the Google Account itself, Google's own recovery page is accounts.google.com/signin/recovery. If the app opens but the codes it shows are refused, that is a different fault: see Google Authenticator code not working.
Takeaway
The version that fits on a card: a factory reset does not lose your accounts, it loses your copy of the keys to them, and whether that matters was decided before you tapped Erase. Check the one place a copy might be, in this order: the app's own cloud sync, an encrypted backup file you kept somewhere else, the pre-reset Android dataset if you are still in the setup wizard.
The version that helps next time: the thing worth building is not a better recovery routine but one copy that lives somewhere the phone cannot take with it. A synced vault you can sign back in to, an export file on a computer, a printed recovery code in a drawer. Any one of them turns tonight's problem into a five-minute sign-in, and all three cost less than one evening of re-registering twenty services while your inbox asks you for a code you cannot produce.
Sources
- Google Account Help, "Get verification codes with Google Authenticator"
- Android Developers, "Back up user data with Auto Backup"
- Android Developers, "Changes to backup and restore in Android 12"
- Microsoft Support, "Back up and recover account credentials using the Microsoft Authenticator app"
- Twilio Support, "Authy Backups Password Recovery"
- 2FAS Support, "How does Google Drive synchronization work?"
- 2FAS Support, "I have lost all of my tokens/codes"
- Aegis Authenticator, project README
- Proton Support, "Proton Authenticator"
- Bitwarden Help, "TOTP sync"