Get 2FA Codes Without Your Phone

A browser-based authenticator for PC. Paste your account’s setup key and generate 2FA codes on Windows, macOS, or Linux — no phone, no app install, no sync.

Codes are computed in your browser with the Web Crypto API — the key never leaves this page.

How to get a 2FA code without your phone

Any account that offered a QR code during 2FA setup also has a text key behind it. Once you have that key, the phone becomes optional:

  1. Open your account’s 2FA settings and choose the authenticator-app method.
  2. Use the “can’t scan?” or “enter manually” link to reveal the Base32 setup key (or otpauth:// URI). If you saved that key earlier — in a password manager or printed — use the saved copy.
  3. Paste the key into the generator above. Codes now appear on your PC and refresh every 30 seconds.
  4. Optional: click Install App on the home page to pin the generator as a desktop app that also works offline.

“Google Authenticator” on PC — how compatibility works

Google Authenticator has no official desktop version, but that does not matter technically: every authenticator — the Android app, the iPhone app, this page — computes codes with the same RFC 6238 algorithm from the same key. A code from this browser-based authenticator matches a code from Google Authenticator, Microsoft Authenticator, or Authy for the same key, which is why services accept it. The service never knows which tool generated the code.

Lost your phone? Recovery paths in order

  1. Backup codes — the list each service offered when you first enabled 2FA. Search your email, downloads, and password manager for them.
  2. A saved setup key — if you stored the Base32 key (or an otpauth:// URI), this page regenerates codes immediately.
  3. Alternate 2FA methods — SMS or email codes if configured, a security key, or a passkey.
  4. Account recovery — every major service has a lost-device flow (identity checks, registered email, waiting periods). Start it early; some take days.

When you regain access, immediately re-enroll 2FA on the new device and generate fresh backup codes — old ones may have been single-use.

Safety: storing your keys on a computer

A setup key is a permanent credential — anyone holding it can mint codes indefinitely. This tool computes codes locally and never transmits the key, and the home generator keeps the key only in your browser’s local storage on that device. Treat the PC side the same as the phone side: use a full-disk-encrypted, password-protected user account, do not paste the key into shared machines, and for high-value accounts consider a hardware security key as the primary second factor. The full risk discussion is in{' '} is an online 2FA generator safe?

Frequently asked questions

How do I get 2FA codes without my phone?

Paste your account’s Base32 setup key into a browser-based TOTP generator like the one on this page. The code is computed from the key and your computer’s clock, so no phone or app is needed.

Can Google Authenticator run on a PC?

Not officially — but a standards-based web generator produces the identical codes, because both implement the same RFC 6238 algorithm with the same key.

What should I do if I lost my phone with 2FA on it?

Try the backup codes from setup first. Without them, use the service’s account recovery process. If you saved the setup key separately, this page generates codes from it right away.

Is using a browser authenticator on a PC safe?

As safe as the computer it runs on. This tool computes codes locally and never uploads the key, but a compromised PC can read anything you do on it. For high-value accounts, prefer a hardware key.

Related tools and guides