Authentication

Backup codes

Backup codes are a short list of single-use codes a site gives you when you turn on two-factor authentication. Each one substitutes for a one-time passcode when you can't produce one.

2 min read · Updated August 30, 2026

A page with ten hidden codes in two columns.

Each code works once. Any one of them stands in for the one-time passcode your authenticator would generate. Use one for a lost phone, a dead battery, or a new device you haven't set up yet. Most sites display them only once, during setup.

What to do with them

  • Save them at setup. This is the only time most sites show them. Afterwards the route back in is an account-recovery form.
  • Store them in your vault. Paste them into the same record as the login, in a Secret field. It is masked on screen, encrypted like everything else, and next to the account they rescue. See add a one-time code.
  • Cross each one off as you use it. A used code is dead; knowing how many remain tells you when to generate a fresh set.
  • Generate a new set when you run low, or after you use one on a device you don't control.

Where not to keep them

  • A screenshot in your photo library, which syncs to the cloud unencrypted.
  • A text file on your desktop, or a note in an unencrypted notes app.
  • An email to yourself. Your mailbox is the account they are most often needed to protect.

In Lockit

Paste them into the account's record as a Secret field, which is masked on screen and encrypted like everything else. Add a one-time code to the same record while you're there.