Where to keep 2FA backup codes
Backup codes are the spare key to your accounts. Keep them where you will still have them when your phone is gone, and where nobody else will find them. Here are the real options.
What these codes are
When you turn on two-factor authentication (2FA) for an account, you sign in with your password plus a second thing. Usually that is a six-digit code from an authenticator app on your phone.
Two other secrets come with it.
Backup codes (also called recovery codes). A short list the service shows you once, at setup. Each code usually works one time, and it works instead of your phone. They exist for the day your phone is lost or broken.
The setup key. The QR code you scan when adding an account to an authenticator is a secret key written as a picture. Anyone who has that key can produce your six-digit codes for as long as the account is set up that way.
Both deserve the same care as the password itself.
The two ways this goes wrong
You lose them. The codes were only on the phone, the phone is gone, and now you are locked out of your own account.
Someone else finds them. The codes were somewhere easy to reach: a screenshot, an email, a note. Whoever gets into that place can get past your 2FA.
A good storage place solves both. It survives the loss of your phone, and it is locked.
What not to do
- Screenshots in the camera roll. No lock, mixed in with your photos, and with iCloud Photos on they are copied to iCloud and your other devices.
- Email to yourself. The codes then sit on your email provider’s servers for years. Email is also how many other accounts are reset, so it is a poor place for spare keys.
- An ordinary, unlocked note. Anyone holding your unlocked phone can read it.
- Only on the phone that runs the authenticator. If that phone is lost, the codes go with it. That is exactly the day you need them.
The real options
Paper
Print the codes or write them out, and keep the sheet where you keep your passport. Paper cannot be hacked and does not need a battery.
Its weak points are fire, water and anyone who goes through your drawers. Write the service name on the sheet, but not your password.
A password manager
A password manager stores the codes encrypted, in the entry for that account, and has them on your other devices as well. That makes it hard to lose them.
The trade-off: if the password and the backup codes are in the same manager, whoever opens it has everything for that account. For most accounts this is a fair deal, because the manager is well protected. For the few accounts that matter most, such as your main email, keep the backup codes somewhere else.
Apple Passwords
Every iPhone on iOS 18 or later has Apple’s Passwords app. According to Apple:
- It keeps passwords, passkeys and verification codes. It can produce the six-digit codes itself. You set that up by scanning the service’s QR code or typing the setup key.
- It opens with Face ID, Touch ID or your iPhone passcode.
- With iCloud Keychain on, it keeps your approved Apple devices up to date, and passwords in iCloud Keychain are end-to-end encrypted. Apple does not hold the keys.
That makes it a solid free choice for everyday codes. It opens with the iPhone passcode, so it is as private as that passcode. For the case of a stolen phone and a known passcode, Apple offers Stolen Device Protection (iOS 17.3 or later). When it is on and the phone is away from familiar places, using saved passwords needs Face ID or Touch ID, with no passcode fallback. It has to be on before the phone is lost, so check it in Settings.
A locked note
For the backup codes themselves, the Notes app can lock a note with a password that is separate from your iPhone passcode. Apple says locked notes in an iCloud account are end-to-end encrypted, and that it cannot help you if you forget a separate Notes password.
An encrypted vault
A vault app with its own lock keeps the codes behind a different secret from the rest of the phone. Check that it really encrypts, and that it has a backup you control, because a vault that exists only on one phone has the same weakness as the phone. Our guide to local-only vaults covers what to look for.
Side by side
| Place | Survives a lost phone | Locked | Main weakness |
|---|---|---|---|
| Screenshot in camera roll | Only if iCloud Photos is on | No | Open to anyone using the phone |
| Email to yourself | Yes | By your email password only | One email break-in opens everything |
| Paper at home | Yes | By your front door | Fire, loss, curious people |
| Password manager | Yes | Yes | Password and codes in one place |
| Apple Passwords | Yes, with iCloud Keychain | Yes | Opens with the iPhone passcode |
| Locked note, separate password | Yes, with iCloud | Yes | A forgotten password cannot be reset |
| Encrypted vault with backup | Yes, if you made a backup | Yes | The backup is your job |
A simple plan
- Two copies, two kinds. One on paper at home. One encrypted, in a manager or a vault.
- Keep your main email account’s codes apart from the place that holds its password.
- Delete the leftovers. Remove the screenshot, the downloaded text file and the email, then empty Recently Deleted in Photos.
- When you use a code, cross it out. When few are left, make a new set in the account’s security settings.
- Test once. Sign in somewhere with one backup code, so you know the list is right.
How Vahty does it
We make Vahty, a vault app for iPhone. It is in final testing and not on the App Store yet.
- Passwords and two-factor login codes live in the vault. You set up a code by typing the key or scanning the QR code.
- Backup codes fit in a note, encrypted like everything else.
- The vault opens with a pattern you draw, not the iPhone passcode. The pattern is the encryption key. Face ID can be added on top, never instead.
- No account and no server. Nothing leaves the phone unless you turn on backup.
- Copied text is cleared after two minutes, and screenshots of the open vault come out blank.
- Backup is one encrypted file that Vahty keeps in your own iCloud, restored on a new iPhone with your 12 recovery words. It is off until you turn it on, so do turn it on, and keep the 12 words on paper.
One honest limit: Vahty has no password AutoFill, so it does not fill in passwords or codes in other apps for you. The full picture is on the security page.
In short
- Backup codes replace your phone, so treat them like a password.
- Never leave them in screenshots, email or an unlocked note.
- Keep two copies: one on paper, one encrypted.
- Do not keep the only copy on the phone that runs your authenticator.
- If you also keep ID scans on your phone, the same rules apply: see how to store a passport copy safely.
Questions
Where should I store 2FA backup codes?
In two places that will not fail together: one on paper somewhere safe at home, and one in an encrypted place such as a password manager or an encrypted vault that has its own backup.
Is it safe to screenshot 2FA backup codes?
No. A screenshot lands in your camera roll with no lock, and with iCloud Photos on it is copied to iCloud and your other devices. Write the codes down or save them somewhere encrypted, then delete the screenshot.
Can I keep backup codes in the same place as my password?
You can, but then one break-in gives both. It is safer to keep the codes behind a different lock from the password, or on paper. For your most important accounts, keep them apart.
What happens if I lose my phone and my backup codes?
You have to go through the service's account recovery, which can take days and sometimes fails. That is why a copy of the codes should live somewhere other than the phone.