Authenticator App Backup Codes: How to Save & Use Them
Learn where authenticator app backup codes come from, how to save them securely, and what to do if your phone is lost or your 2FA codes stop working.

Lost your phone, replaced it, or opened an authenticator app only to discover your verification codes are missing? Your next step depends on whether you saved recovery credentials before losing access. Authenticator app backup codes are usually issued by the website or account provider, not generated by the authenticator app itself. They can let you sign in when your normal two-factor authentication (2FA) method is unavailable.
That distinction matters. Restoring an authenticator app, using a website’s one-time recovery code, and recovering an online account are three different operations. Understanding which one you need can prevent a temporary device problem from becoming a permanent account lockout.
If you can still access the account, open its Security, Two-Factor Authentication, or Two-Step Verification settings. Look for Backup Codes, Recovery Codes, or an equivalent recovery option.
Download or print the codes, secure them outside the phone you depend on, and verify that an alternative sign-in method is available. If you are already locked out, check for previously saved codes, another registered authenticator, an existing trusted session, or the provider's official recovery procedure.
What Are Authenticator App Backup Codes?
Authenticator apps such as Google Authenticator and Microsoft Authenticator commonly generate time-based one-time passwords (TOTPs). These verification codes are calculated using a secret shared during account setup and a time-based input. They typically refresh every 30 seconds, although implementations and intervals can differ.
Backup codes work differently. The account provider issues them in advance so that you have a recovery method if your usual verification device becomes unavailable. Many services provide several single-use codes, but their formats and quantities vary.
The difference is also reflected in the 🔗 NIST digital identity guidance, which distinguishes one-time passcodes from recovery codes and other authentication secrets.
⬇️ Three Credentials That People Commonly Confuse
Some platforms also offer recovery keys, emergency contacts, passkeys, hardware security keys, or identity-verification procedures. These are not automatically interchangeable with backup codes.
How to Get Authenticator App Backup Codes
There is no universal button inside Google Authenticator or Microsoft Authenticator that generates backup codes for every connected website. You generally obtain recovery credentials through each website’s own security settings.
1. Google Account Backup Codes
Google provides a set of 10 eight-digit backup codes for eligible accounts using 2-Step Verification. Each code works once. Creating a replacement set invalidates the previous set.
- Open your 🔗 Google Account security settings.
- Select 2-Step Verification under the sign-in settings.
- Complete any required identity verification.
- Locate Backup codes.
- Choose the option to generate, view, download, or print your codes.
- Store the codes securely and remove unnecessary unencrypted downloads.
Google documents these steps in its 🔗 official backup-code instructions. It also notes that users enrolled in the Advanced Protection Program cannot download backup codes, so recovery arrangements must account for that restriction.
2. Microsoft Authenticator and Microsoft Account Recovery Codes
Microsoft requires an additional distinction: its authenticator app’s backup feature and the personal Microsoft account recovery code are separate mechanisms.
A personal Microsoft account can have a 25-digit recovery code. Microsoft’s instructions explain that this code is intended to help with account recovery, including situations involving lost access or compromised credentials. It is not a universal replacement for the authenticator codes of third-party services.
To generate a Microsoft account recovery code:
- Open the 🔗 Microsoft account security management page.
- Find the recovery-code section.
- Select the option to generate a new code.
- Print or otherwise securely record the new recovery code.
Generating a new Microsoft recovery code invalidates earlier ones. Microsoft also states that an existing recovery code cannot simply be retrieved or downloaded again. See 🔗 Microsoft’s recovery-code documentation for the current procedure.
Microsoft Authenticator itself can back up supported one-time password accounts. However, recovery behavior depends on account type and operating system. Work or school credentials may require fresh registration with the organization after restoration.
3. GitHub Recovery Codes
GitHub provides recovery codes when configuring two-factor authentication. Its current documentation describes a set of 16 single-use codes and recommends securely saving them.
- Sign in to GitHub.
- Open your profile menu and select Settings.
- Navigate to Password and authentication.
- Find Recovery codes and select View.
- Download, print, or copy them into secure storage.
Generating a new GitHub recovery-code set invalidates the existing set. These details are documented in 🔗 GitHub’s official recovery-method guide.
Other services may issue codes during initial 2FA enrollment or expose them later through account settings. If you cannot locate a recovery-code feature, consult that service’s documentation rather than assuming it provides one.
How to Use a Backup Code When Your Phone Is Lost
If you already saved a valid backup code, recovery is usually simpler than restoring a complete authenticator installation.
- Open the affected website using its known, official address.
- Enter your username and password, if requested.
- At the 2FA screen, look for Try another way, Other options, or Use recovery code.
- Choose the backup-code option provided by that service.
- Enter one unused code from the correct account.
- Once signed in, review registered authenticators and establish a working replacement verification method.
A recovery code may complete the normal second verification step, or it may begin a broader account-recovery process. The exact behavior depends on the provider.
For example, Google offers an option to enter an unused eight-digit backup code during supported 2-Step Verification flows. GitHub has a dedicated 2FA recovery-code option. Microsoft’s personal account recovery code follows a different account-recovery sequence.
After recovering access, do not immediately disable all security protections. First register a replacement authenticator or another approved strong authentication method, confirm it works, and then revoke any credentials that are no longer safe.
Lost Your Authenticator? Choose the Correct Recovery Path
Before resetting anything, identify which security resource you still control. This decision is more important than the brand of authenticator app installed on your replacement phone.
🤔 What If You Still Have an Authenticated Device?
An existing signed-in session may be your most valuable recovery asset. If your laptop or another phone remains connected to an important account, check whether its security settings allow you to add another authenticator, generate recovery codes, or register a new passkey.
Some platforms require recent reauthentication before sensitive security changes. Therefore, remaining signed in does not guarantee that every recovery setting can be modified.
Do not voluntarily sign out of your last accessible session until you have established an alternative route and tested it. If a device is stolen or suspected to be compromised, however, protective actions such as remote locking and revoking dangerous sessions may take priority.
How to Restore Google Authenticator on a New Phone
Google Authenticator supports account synchronization and manual transfer, but the appropriate option depends on how it was previously configured.
Method 1: Restore Synchronized Codes
If you signed in to a Google Account within Google Authenticator and your codes were synchronized, install the app on the new device and sign in to the same Google Account. Supported synchronized authenticator entries should become available.
Check that the correct Google Account is selected, especially if you use multiple accounts. Signing in with the wrong account can make previously synchronized entries appear missing.
Google also allows use of Authenticator without an account. In that configuration, the codes are not automatically synchronized through a Google Account.
Method 2: Transfer Codes from Your Old Phone
If the old phone is still accessible and the app offers the transfer feature:
- Install Google Authenticator on the new device.
- On the old device, open the app’s Transfer codes or equivalent menu.
- Select Export codes and choose the accounts to transfer.
- Unlock the device if prompted and display the transfer QR code.
- On the new device, choose Import codes.
- Scan the QR code shown on the old device.
- Verify the transferred accounts before erasing or resetting the old phone.
Google documents the transfer and synchronization procedures in its 🔗 Google Authenticator support guide.
Security note: An authenticator transfer QR code can contain sensitive credential material. Do not photograph, publish, email, or share it with anyone. Scan it only with a trusted device you control.
🤔 What If the Old Phone Is Completely Gone?
If the authenticator entries were not synchronized and no usable backup exists, reinstalling the app alone will not reconstruct the missing TOTP secrets.
You must instead use an account’s recovery code, another registered authentication method, or its official account-recovery procedure. Once you regain access, you can register a fresh authenticator setup.
How Microsoft Authenticator Backup and Restore Works
Microsoft Authenticator offers cloud backup for supported account information, but it should not be treated as a universal restore mechanism for every credential and approval method.
Microsoft’s current support documentation distinguishes among personal Microsoft accounts, third-party TOTP accounts, and work or school accounts.
On supported Android configurations, cloud backup is enabled through the app’s settings and an associated recovery account. On iOS, Microsoft documents backup requirements involving iCloud services.
When restoring a backup, Microsoft requires the relevant recovery flow. Its documentation also states that backups can only be restored to the same device platform: an iOS backup cannot be restored directly to Android, and vice versa.
There are further limits:
- Supported one-time password credentials can be restored according to Microsoft’s backup rules.
- Passwordless sign-in credentials may require re-registration.
- Work or school account credentials are not fully backed up; organizational re-registration is normally required.
- Some restored entries may require additional account verification before they work.
See Microsoft’s 🔗 backup instructions and 🔗 restoration guidance before switching phones.
How Authy Backup Passwords Differ from Recovery Codes
Authy provides another example of why a generic recovery guide cannot treat every authenticator identically.
With Authy backups enabled, supported authenticator tokens can be stored as encrypted backups. Accessing those tokens on another device depends on the backup password and the applicable account-recovery requirements.
According to 🔗 Twilio’s Authy backup-password documentation, the backup password cannot be recovered or reset by support. Without that password or an already accessible, decrypted Authy installation, the encrypted token backup may remain inaccessible.
This is different from a website’s single-use 2FA recovery code. A website recovery code may restore access to that particular service without decrypting an Authy backup.
For this reason, anyone using encrypted authenticator backups should protect the backup password independently of the device being backed up.
Where Should You Store Authenticator Backup Codes?
Recovery codes should remain confidential, retrievable during an emergency, and protected against accidental destruction. Those requirements create a trade-off between convenient access and isolation from the devices or accounts that might become compromised.
Noxoric’s practical rule is to make your recovery method independent of the device it is intended to replace. A backup stored only on the same phone does not provide meaningful protection against losing that phone.
1. Recovery-Code Storage Methods Compared
| Storage Method | Main Advantage | Main Limitation | Appropriate Use |
|---|---|---|---|
| Printed paper | Independent of digital account access | Can be lost, photographed, stolen, or damaged | Secure physical storage |
| Password manager | Encrypted, organized access when configured properly | Vault compromise or lockout can affect recovery | Protected digital storage with independent vault recovery |
| Encrypted offline storage | Can reduce exposure to online account compromise | Requires reliable encryption-key and device management | Advanced recovery planning |
| Unencrypted cloud file | Convenient retrieval | Potential account exposure and recovery dependency | Not recommended for sensitive recovery secrets |
2. The Password Manager Trade-Off
Keeping backup codes in a reputable password manager can be practical, particularly if the manager uses strong encryption, a strong master password, and suitable authentication protections. GitHub explicitly recommends secure password-manager storage as one option for its recovery codes.
However, saving your account password, TOTP generator, and recovery codes inside the same accessible vault creates a concentration of sensitive credentials. A vault compromise could expose multiple factors, and losing access to that vault might simultaneously remove your backup method.
Consider maintaining an independently accessible offline recovery copy for critical accounts such as your primary email and password manager.
Do not store the only password-manager recovery information inside the very password manager it is supposed to help you unlock.
3. Should You Screenshot Your Backup Codes?
A screenshot is convenient but often creates additional copies of sensitive information. Depending on device settings, screenshots may synchronize to photo libraries, appear in automatic backups, or become accessible through other apps.
For this reason, screenshots should not be your default long-term storage method. Prefer secure physical storage or an appropriately protected digital vault, and remove unnecessary temporary copies.
Advantages and Disadvantages of Backup Codes
✅ Advantages
- Device independence: A previously saved recovery code can work when your authenticator phone is unavailable.
- No mobile signal required: Codes stored offline do not depend on SMS delivery or mobile network coverage.
- Simple emergency use: Many services provide a dedicated option for entering a recovery code.
- Limited reuse: Single-use codes become invalid after successful use, reducing the value of an already consumed code.
- Flexible storage: You can maintain an offline copy separate from your normal authentication device.
❌ Disadvantages and Limitations
- They are sensitive secrets: Someone who obtains an unused recovery code may be able to bypass the normal second-factor step if they also meet the service’s other sign-in requirements.
- They can be misplaced: A code stored in an inaccessible account is not a useful emergency backup.
- They may be invalidated: Regenerating codes or changing security settings can revoke earlier sets.
- They are service-specific: Recovery codes generally cannot be transferred between unrelated websites.
- Availability varies: Some services provide no conventional backup-code feature, especially when alternative recovery mechanisms are required.
The central trade-off is that backup codes improve recoverability by creating an alternative authentication path. That path must be protected as carefully as the account it can help unlock.
What If You Lose Both Your Authenticator and Your Backup Codes?
This is the scenario in which recovery becomes uncertain. Your options depend entirely on the affected service and what you established beforehand.
Step 1: Look for Legitimate Existing Recovery Resources
Search places where you may have intentionally saved codes: your password manager, encrypted storage, printed documents, or known backup folders.
For Google, previously downloaded recovery-code files may follow a recognizable filename pattern such as Backup-codes-username.txt. GitHub commonly uses github-recovery-codes.txt.
Finding an old file is not proof that its codes are still valid. A newer set may have revoked it.
Step 2: Check Other Registered Authentication Methods
If the account supports them, a separately registered passkey, security key, secondary authenticator, or trusted device may provide another route.
Passkeys and authenticator recovery codes are not the same technology. Passkeys use public-key cryptography, and their recovery depends on whether the credential was synchronized, backed up, or bound to a particular authenticator.
For the distinction and a separate recovery procedure, see 🔗 How to Recover Passkeys After Losing Phone Access.
Step 3: Use the Provider’s Official Account-Recovery Process
If no approved sign-in method remains, follow the website’s official recovery instructions. A provider may request additional verification, impose a waiting period, or refuse recovery when ownership cannot be established to its required standard.
Policies differ significantly. GitHub, for example, warns that support cannot simply restore an account when all accepted 2FA credentials and recovery methods have been lost. Its 🔗 account-recovery documentation explains the available routes and restrictions.
Never assume that a photograph of an ID, access to an email inbox, or proof of device ownership will be sufficient for every provider.
What to Do If Your Phone Was Stolen
A stolen phone presents a different risk from a phone that simply stopped working. The priority is not only restoring authentication but also reducing the possibility that someone else can use your existing credentials.
- Secure the device: Use the manufacturer’s official lost-device tools where available to locate, lock, or erase it.
- Protect important accounts: Review recent sign-ins and security alerts from a trusted device.
- Revoke unsafe sessions: Remove sessions or devices that may be accessible to someone else.
- Replace compromised authenticators: Once you have safe account access, revoke authenticator credentials associated with the stolen phone when the service supports it.
- Regenerate exposed backup codes: If the codes may have been stored on or exposed through the stolen device, invalidate them and issue replacements.
- Protect your phone number: Contact your mobile operator when necessary to address unauthorized SIM replacement or number-transfer risks.
If the missing phone was protected by a strong screen lock, that can reduce exposure, but it does not eliminate every threat. Risk is higher when the device was stolen while unlocked or someone knows its unlock credentials.
Why an Authenticator Code Might Stop Working
Not every failed 2FA attempt means your backup is lost. A few checks can help distinguish a synchronization problem from an invalid recovery code.
1. Incorrect Device Time
Time-based one-time passwords depend on an accurate clock. Check that automatic date and time settings are enabled on the device. Google notes that current versions of its authenticator app rely on operating-system time settings rather than the older manual time-correction option.
2. Wrong Account Entry
Authenticator apps can hold multiple entries with similar labels. Ensure you select the code for the correct website and username. A valid code for one account will not authenticate a different account.
3. Expired One-Time Password
Temporary codes have limited validity. Wait for a fresh code and enter it promptly. Do not confuse a continuously changing TOTP with a stored, single-use recovery code.
4. Previously Used or Revoked Backup Code
Many providers reject a recovery code after it has been used. A replaced recovery-code set may also invalidate every code from the earlier set, even those never used.
5. An Old Authenticator Registration
If you reconfigured 2FA on the website, an authenticator entry from an earlier enrollment may no longer match the provider’s active secret. Restore or enroll the correct current credential instead of repeatedly attempting invalid codes.
Are Backup Codes as Secure as Authenticator Apps or Passkeys?
Backup codes serve a recovery function. They are not inherently equivalent in security properties to a normal authenticator app or a phishing-resistant passkey.
An authenticator app’s TOTP adds a possession-based verification step, but the code is manually entered. A convincing phishing website can attempt to capture and relay that code during its validity period.
The 🔗 NIST SP 800-63B guidance explicitly distinguishes manually entered OTP authentication from phishing-resistant authentication.
Passkeys using properly implemented FIDO2 or WebAuthn mechanisms can provide phishing resistance through cryptographic binding to the legitimate service. Recovery codes usually do not offer that same property because they are secrets users can manually enter into a website.
For sensitive accounts, use a phishing-resistant authentication method where supported and retain the provider-approved recovery arrangements. Strong authentication and reliable recovery are complementary requirements, not competing goals.
A Practical Recovery Plan Before Changing Phones
A carefully planned device migration avoids most preventable authenticator lockouts.
For high-value accounts, it may also be appropriate to register a second compatible security key or another supported authentication method in advance. Verify which recovery options your provider allows, rather than assuming that all accounts support the same setup.
Final Takeaway: Secure Your Recovery Before You Need It
Authenticator app backup codes are a practical emergency-access mechanism, but they only work when you have obtained the appropriate credentials and preserved them securely. An authenticator backup, a website’s recovery code, and a password-reset procedure are different safeguards, each with its own limitations.
The strongest preparation is straightforward: protect important accounts with robust authentication, maintain an independent recovery method, verify your backup arrangements before switching devices, and remove compromised credentials promptly.
Do not rely on a single phone, a single cloud account, or an untested recovery assumption for every important login.
🚀 Explore more practical security guides and digital tools at Noxoric, including the site’s Cybersecurity & Privacy section.



