Backup 2FA Codes: Save, Store, and Use Them
- Hours
- hours
- Result
- Total minutes
- 720 min
- You entered
Backup two-factor authentication (2FA) codes are one-time codes you generate and save in advance, so you can still get into your account if you lose your phone or authenticator app. You enter them when prompted instead of the usual code from your app, and each one works only once. They are your safety net for account recovery, and setting them up takes about two minutes per account.
Formula
The calculator converts a number of minutes into days and hours. The formulas are:
- Days = total minutes ÷ 1,440 (because 1 day = 24 hours × 60 minutes)
- Hours = total minutes ÷ 60 (because 1 hour = 60 minutes)
Variables: t = total minutes (input), days = equivalent days, hours = equivalent hours.
Worked Example
Using the default value of 720 minutes:
- Days = 720 ÷ 1,440 = 0.5 days
- Hours = 720 ÷ 60 = 12 hours
So 720 minutes equals 0.5 days or 12 hours. The calculator shows both results, with the days as the headline answer.
Why Backup Codes Matter
Two-factor authentication adds a second check after your password. The most common second factor is a time-based one-time password (TOTP) generated by an app like Google Authenticator, Authy, or Microsoft Authenticator. That code changes every 30 seconds. If you lose your phone, break it, or wipe it without backing up the app’s data, you lose the ability to generate those codes. Backup codes are the standard solution: you print or store a set of one-time codes before you need them, and you can use them to get back in even without your device.
Most major services—Google, Microsoft, Facebook, Apple, Amazon, and many others—offer backup codes in their security settings. They are also sometimes called “recovery codes,” “single-use codes,” or “scratch codes.” The number of codes varies: typically 8 to 10, but some services give more. Each code is a random string of letters and numbers, often 8–10 characters long.
How to Get Backup Codes
Getting backup codes is straightforward, but the exact menu paths differ by service. Here is the general process:
- Sign in to your account and go to the security or two-factor authentication settings.
- Look for an option labeled “Backup codes,” “Recovery codes,” or “Show codes.”
- Click to generate a new set. Some services show them immediately; others ask you to confirm your password again.
- Save the codes somewhere safe. The service will usually show them on screen and let you download or print them.
- Test one code immediately. Enter it as if you were logging in without your phone. If it works, you know your saved set is valid.
Important: If you generate a new set of backup codes, the old set becomes invalid on most services. So only generate a new set when you actually need it, or after you have safely stored the new ones.
How to Store Backup Codes Safely
Backup codes are as sensitive as your password. If someone gets them, they can bypass your 2FA. So store them with the same care as your password manager’s master password. Good options include:
- Password manager: Most password managers (like Bitwarden, 1Password, or KeePass) have a field for notes or custom items. This is convenient and encrypted.
- Encrypted file: Save the codes in a text file, then encrypt it with a strong password. Keep the encrypted file in cloud storage or on a USB drive.
- Printed paper: Write or print the codes and keep them in a safe place, like a fireproof safe or a locked drawer. This protects against digital theft but not physical loss.
- Offline device: Store the codes on a separate device that is not connected to the internet, like an old phone or a dedicated USB drive.
Avoid storing backup codes in plain text on your main computer, in your email, or in a note app that syncs to the cloud without encryption. If your email is compromised, the attacker could also get your backup codes.
Common Mistakes and How to Avoid Them
Several mistakes can turn a minor inconvenience into a locked-out account:
- Not generating backup codes at all. Many people skip this step because it seems unnecessary. Then they lose their phone and have to go through a lengthy account recovery process, which may take days.
- Storing codes in the same place as your password. If you save your password and backup codes in the same unencrypted file, a single leak exposes both.
- Using a code twice. Backup codes are single-use. After you use one, cross it off or delete it from your list. If you run out, generate a new set.
- Sharing codes. Never share backup codes with anyone, even a friend or family member. Treat them like your password.
- Ignoring the “regenerate” option. If you think your codes may have been compromised (e.g., you lost the paper), generate a new set immediately.
What to Do When You Run Out of Codes
If you have used all your backup codes, you need to generate a new set. Go back to the security settings and look for “Regenerate codes” or “Get new codes.” This will invalidate the old ones and give you a fresh set. Do this before you actually need a code, so you are never caught without a valid one.
If you have lost your backup codes and your phone at the same time, you may still have other recovery options. Many services offer account recovery via email, a secondary phone number, or answering security questions. Some have a waiting period. The process varies, so check the service’s help page. The key is to set up backup codes before a crisis, not after.
Backup Codes vs. Other Recovery Methods
Backup codes are not the only way to recover an account, but they are often the most reliable. Here is a comparison:
- Backup codes: Work offline, no internet needed. You just type the code. They are single-use and can be stored anywhere.
- SMS codes: Sent to your phone via text. They require a working phone number and cellular service. SIM-swap attacks can intercept them.
- Email codes: Sent to your email address. If your email is compromised, this is not secure.
- Authenticator app on another device: You can install the same app on a second phone or tablet. This works, but you need to set it up in advance.
- Security keys (hardware): A physical USB or NFC key that you plug in or tap. Very secure, but you need to buy it and keep it safe.
Backup codes are a good middle ground: they are free, do not require extra hardware, and work even if you have no internet connection.
Frequently Asked Questions
How many backup codes do I get?
Most services give 8 to 10 codes. Some give fewer (like 5) or more (like 16). The exact number is shown when you generate them. Each code is single-use, so if you have 10 codes, you can log in 10 times without your phone.
Can I reuse a backup code?
No. Each backup code is valid for exactly one login. After you use it, it is permanently invalid. If you try to reuse it, you will get an error. That is why it is important to keep track of which codes you have used.
What happens if I lose my backup codes?
If you lose your backup codes but still have your phone, you can generate a new set from your security settings. If you lose both, you will need to go through the service’s account recovery process, which may involve waiting or providing additional proof of identity. It is much easier to avoid this situation by storing codes safely.
Are backup codes safe to store in a password manager?
Yes, storing backup codes in a reputable password manager is generally safe, because the password manager encrypts your data. Just make sure your password manager’s master password is strong and that you have a recovery method for the password manager itself (like a recovery key or a printed backup).
Do backup codes expire?
Backup codes do not expire on their own. They remain valid until you use them or until you generate a new set. Some services may invalidate them if you change your password or security settings, but that is not universal. Check your service’s documentation if you are unsure.
Can I use backup codes on multiple devices?
Yes, backup codes are not tied to a specific device. You can enter them from any computer, phone, or tablet. That is the point: they are a universal fallback. Just keep them secret.
Related
Formula used
in t | Total minutes | min | 720 | 0 out days | Days | days | t / 1440 | 2 out hours | Hours | hours | t / 60 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.