Free · Open source · No signup

Two-factor codes in your browser, encrypted on your device.

2FA Keyring is a free authenticator app that runs in any modern browser. Add your accounts once, then copy a code whenever a site asks for one. Your keys stay on this device, locked with a passphrase only you know. There's no account to create.

The demo uses sample keys and saves nothing. Works with services that offer "authenticator app" codes (TOTP), such as Google, GitHub, AWS and Discord.

Your keys ● Encrypted on this device
  1. Example Maildemo@example.com --- ---
  2. Example Code Hostdemo-developer --- ---
  3. Example Cloudadmin@example.com ---- ----
Live codes from public test keys, calculated in your browser right now. Not real accounts.

Try it here

See how it works, no passphrase needed

This sample vault runs on this page. Search, filter by group, and click a code to copy it. Nothing is saved.

The full demo also lets you

  • Add keys with a setup key, a link or a QR image
  • Import a Google Authenticator export
  • Mark favorites and sort keys into groups
  • Change auto-lock settings

The demo keeps everything in memory. It never touches a vault you've already created in this browser.

Open the full demo

Getting started

Set up in three steps

  1. Create your vault

    Choose a passphrase of at least 12 characters. Four or more random words work well. It encrypts everything you add, and it can't be reset, so keep it safe.

  2. Add your accounts

    When a service asks you to set up an authenticator app, give 2FA Keyring the setup key, the otpauth:// link or a picture of the QR code. You can add several at once, or import from Google Authenticator.

  3. Back up, then sign in

    Download an encrypted backup and keep it somewhere safe. After that, open the app, unlock it and click a code to copy it.

Read the full getting-started guide

Switching apps

Moving from Google Authenticator?

Bring all your accounts across in one go. The export QR codes are read on your device and never uploaded.

Read the migration guide
  1. ExportIn Google Authenticator, open the menu and choose Transfer codes, then Export codes. It may show several QR codes.
  2. ScanTake a picture of each code and choose the pictures in 2FA Keyring under Add key → Google Authenticator. Large exports split into several codes; the app tells you if one is missing.
  3. ReviewSee every account before anything is saved. Accounts already in your vault, and types the app doesn't support, are clearly marked and skipped.
  4. Check, then removeCompare a few codes, or sign in once with each account, before you delete anything from your old app.

Backup and recovery

Your vault lives in this browser. Keep a copy.

There's no server holding a copy for you, so a backup is how you recover from a lost device or cleared browser data.

Read the backup guide
Clearing browser data deletes the vault
So does resetting the device or uninstalling the browser. An encrypted backup file brings everything back.
Private windows don't keep anything
Incognito and private windows erase the vault when they close. Use a normal window.
The app tells you when to back up
It counts changes since your last backup and reminds you after you add, edit or remove keys.
Check a backup without risk
Open a backup file to confirm it works and see what's in it. Your vault isn't changed.
A lost passphrase can't be recovered
Not by you, and not by us. Keep each service's recovery codes somewhere safe and separate.

Trust you can check

Don't take our word for it

Every claim on this page can be checked in the source code or in your own browser.

  • Open source, MIT licensedAll the code is public, and you can read, run or host it yourself.View the source
  • Everything served from this siteThe app's code, its one bundled open-source library (jsQR, for reading QR codes) and the fonts all come from this domain. No CDNs, trackers or analytics.See the bundled library
  • A strict security policyYour browser blocks the app from opening network connections. It's a strong extra layer of defense, though no policy alone can stop code that has been tampered with.Read the policy
  • Check it in your browserOpen your browser's developer tools while you use the app and watch the network: after the page loads, nothing is sent.How to check
  • Security reportsProblems can be reported privately through GitHub. The site publishes a standard security.txt file.Report a problem

Protected

  • A stolen backup file or browser profileWithout your passphrase, the vault can't be read.
  • A breach of the website's hostThe host stores only the public site files. Your keys and passphrase never reach it.
  • Tracking and data collectionNo accounts, cookies or analytics, and the app sends nothing once loaded.
  • Someone at your screen laterThe vault locks after 5 minutes without activity by default (1, 5 or 15 minutes, or never), and can lock as soon as you switch tabs.

Not protected

  • Tampered website codeIf the site's deployment or source were compromised, your browser would run whatever was served. Check the address is 2fa-keyring.com, or host your own copy.
  • Malware or a malicious browser extensionSoftware on your device can read the page while the vault is unlocked.
  • A weak or forgotten passphraseA weak one can be guessed from a stolen backup. A forgotten one can't be reset.
  • PhishingA code typed into a fake sign-in page can be reused within seconds. Use passkeys or security keys where accounts offer them.

Security details

What happens to your keys

Every key you add is encrypted inside your browser before anything is written to storage.

  1. You typeYour passphrase

    Never stored or sent. It exists only in memory while you unlock the vault.

  2. Key derivationPBKDF2-SHA256

    600,000 rounds with a random 16-byte salt make each passphrase guess slow.

  3. EncryptionAES-256-GCM

    A fresh random IV on every save. Any tampering makes decryption fail.

  4. StorageThis browser only

    Only the encrypted vault is saved, in this browser's local storage.

Read the full security model

Questions

Frequently asked

Can anyone else see my keys, including whoever runs this site?

No. Your keys are encrypted in your browser and saved only on your device. The site is static files with no backend to receive them. Like any website, the host sees that your IP address loaded the files, but nothing you type or store is sent.

Is the demo safe to try if I already have a vault?

Yes. The demo uses public test keys and keeps everything in memory. It never reads or writes your saved vault, and closing it leaves no trace.

What happens if I forget my passphrase?

The vault can't be opened, by you or anyone else. That's what keeps it safe. Use each service's recovery codes to sign in again and set up two-factor afresh.

How do I move to a new computer or phone?

Download an encrypted backup from the app. On the new device, open 2FA Keyring, choose "Restore from an encrypted backup" and enter the passphrase you had when you made it. See the backup guide.

Does it work offline?

Once the app is open and unlocked, codes keep working without a connection, because they're calculated from your keys and your device's clock. Opening the app again while offline isn't guaranteed: your browser may need the network to load the page.

My codes are rejected. What's wrong?

Codes depend on your device's clock, so make sure it's set automatically. If a service uses non-default settings, check the key's algorithm, digits and period against what the service shows.

Does it work with push approvals or passkeys?

No. 2FA Keyring makes the 6 to 8 digit codes that services call "authenticator app" or TOTP codes. Tapping "Approve" in a company's own app, and passkeys, are different sign-in methods. The account setup guide explains the difference.

Is it free?

Yes. There's no account, subscription or advertising, and the code is MIT licensed.

Project status

Maintenance and support

Current version
1.1.1 · commit c6734d3 · deployed 2026-11-16
Changes
Changelog · Commit history
Maintained by
estuty on GitHub
Questions and bugs
GitHub issues (never include keys or backups)
Security problems
Report privately · security.txt
License
MIT

Ready when you are.