How to Back Up Your 2FA Recovery Codes So You Never Get Locked Out
Avoid getting locked out of Gmail, banking, or work tools when you lose a phone by safely storing offline 2FA recovery codes and authenticator backups.
By DesiDigest
Turning on two-factor authentication protects your accounts, but upgrading or losing your phone in an auto-rickshaw can lock you out too—especially if your authenticator codes live on that single handset. Backing up your recovery codes before an emergency turns a stressful lockout into a two-minute recovery.
What 2FA recovery codes actually are
Whenever you enable app-based 2FA on Google, Microsoft, GitHub, Zerodha, Instagram, or X, the platform shows a list of 8 to 16 single-use backup or recovery codes. Each code works once in place of your six-digit authenticator app code. Many platforms also issue a setup key (QR secret) when you first link your authenticator app.
Three safe ways to store recovery codes
Never leave a plain file named passwords_backup.txt on your laptop desktop or forward codes to yourself on WhatsApp:
- Printed copy in a physical locker: Print or write the codes neatly on paper, label the account name and date, and keep the sheet inside your home document folder alongside passport and property papers.
- Encrypted password manager: Store recovery codes inside the secure notes field of Bitwarden or 1Password (avoid storing the password manager's own recovery code only inside itself!).
- Encrypted USB drive: Keep a password-protected archive on a dedicated thumb drive stored in a safe place at home.
Back up your authenticator app properly
| Authenticator app | Cloud backup available? | Offline export option |
|---|---|---|
| Google Authenticator | Yes (to Google Account) | Transfer accounts via QR code |
| 2FAS / Ente Auth | Yes (end-to-end encrypted) | Encrypted local file export |
| Microsoft Authenticator | Yes (via Microsoft Account) | Limited outside Microsoft backup |
If you prefer local-only control, export your authenticator QR codes onto a spare old tablet kept at home (with a screen lock) or print the setup QR codes before sealing them in your physical document file.
Test your backup before you need it
Check your top five accounts today—primary email, password manager, brokerage, cloud storage, and Instagram—and verify you still have valid, unused recovery codes saved offline. Whenever you use a single-use code, cross it off and generate a fresh batch once you sign back in.
Explore Curated Deals & Recommended Tools
Handpicked offers, travel essentials, and everyday tools selected for DesiDigest readers.