Glossary
Backup codes
Definition
Backup codes: Single-use codes issued with two-step verification that stand in for the second factor when an authenticator app or phone isn't available. NIST SP 800-63B calls them look-up secrets and requires each to be usable only once.
Also known as2FA backup codesrecovery codeslook-up secretsscratch codes
In short
Backup codes are single-use codes issued when you turn on two-step verification, so you can still prove it's you when your authenticator app or phone isn't available. NIST calls them look-up secrets: each must work only once, and services should store them protected. They can be phished like any typed code, and they don't replace a recovery key for encrypted data.
Key takeaways
- Backup codes stand in for your second factor when your phone or authenticator isn't available.
- NIST calls them look-up secrets and requires each one to work only once.
- Keep them away from the phone they back up, in a password manager or on paper.
- They can be phished, unlike passkeys and security keys.
- They help with your second factor, not a forgotten password, and they don't unlock encrypted data.
Last reviewed 30 November 2026
Backup codes are one-time codes you get when you turn on two-step verification, to use when your usual second factor, such as an authenticator app on your phone, isn't available. Each code works once. Store them in a password manager or print them, and keep them away from the phone they back up, so losing the phone doesn't mean losing both.
How NIST classifies them#
NIST's digital identity guidelines, SP 800-63B-4, call them look-up secrets: "a physical or electronic record that stores a set of secrets shared between the claimant and the CSP" (the service). NIST counts them as "something you have" and requires that each one "SHALL be used successfully only once." It also expects services to store them in protected, hashed form and to limit failed guesses.
A worked example#
You turn on two-step verification and save eight backup codes in your password manager, with a printed copy in a drawer at home. A year later your phone is stolen. Your laptop is still signed in, so you open your security settings, switch off the old authenticator with your password and one backup code, and pair a new phone. Setting up again gives you a fresh set of codes, so you replace both saved copies.
What short definitions miss#
They can be phished. NIST says look-up secrets aren't phishing-resistant. A fake sign-in page can ask for a backup code as easily as for an app code. Passkeys and security keys resist that because they check which site is asking.
They aren't a recovery key. Backup codes get you past a second factor. They don't help with a forgotten password, and in an end-to-end encrypted service they don't unlock your data. That's the job of a recovery key.
They're a second factor, so treat them like one. A screenshot of your codes in your phone's photo library fails the moment the phone does.
In Foxcolab#
When you set up 2-Step Verification under Security & Sign-in → Authenticator App, Foxcolab shows eight codes under Backup Codes — Save these somewhere safe. Select Copy All Backup Codes, store them, then select I've Saved My Codes — Continue. The page then shows how many backup codes remain. If your phone goes missing while you're still signed in, select Disable, enter your current password and a backup code, then select Begin Setup to pair the new phone and get a fresh set.
Keep your Secret Recovery Key as well. Backup codes protect sign-in; your recovery key keeps your end-to-end encrypted Drive files, Docs, Notes and mail readable if you forget your password. Create a free account and set up both.
Keep exploring
Related terms
- Two-factor authentication (2FA)Two-factor authentication asks for a second kind of proof after your password, so a stolen password alone can't get someone into your account.
- TOTP (time-based one-time password)TOTP is the algorithm behind authenticator-app codes. Your app and the service share a secret and each computes the same short code from it and the current time.
- Recovery keyA recovery key is a secret that restores access to your encrypted data when you forget your password. In end-to-end encrypted services, it's often the only way back in.
- PasskeyA passkey replaces a password with a key pair your device holds. The site stores only the public half, and the passkey works only on the site it was created for.
- Security key (hardware)A security key is a small USB or NFC device that signs you in with public-key cryptography and works only on the real site, which makes it resistant to phishing.
- PhishingPhishing is impersonation used to trick people into handing over passwords, approving payments or opening malware. Here's how it works and what actually stops it.
- Password managerA password manager creates, stores and fills a unique password for every account, so you only have to remember the one that unlocks it.
Where Foxcolab uses it
Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.