How 2FA codes work without a phone
Apps such as Google Authenticator, Microsoft Authenticator and Authy are popular, but they have nothing special. They all calculate codes from your account's secret key and the time using the open TOTP standard. Any tool with the same secret key creates exactly the same codes.
That means a browser authenticator on your computer can give you the same 6-digit code as the app on your phone, as long as you have the secret key or the setup QR code.
How to get a 2FA code on your PC
- Find the secret key for your account. You can only get it while setting up 2FA, so check where you saved it (see where to find your 2FA secret key).
- Open our online 2FA authenticator in any modern browser on Windows, macOS, Linux or ChromeOS.
- Paste the key, or upload a screenshot of the QR code.
- Copy the 6-digit code and enter it on the website.
- Optionally click Save on this device so the key is kept in this browser for next time.
An authenticator app alternative, not a replacement
People often search for "Google Authenticator online", "Google Authenticator for PC" or "Microsoft Authenticator online". Those apps are made by their own companies and are designed for phones. Our 2FA code generator is an independent web authenticator that uses the same open TOTP standard, so it works with keys meant for those apps. It is not affiliated with Google, Microsoft, Authy or any other company.
A browser authenticator is handy when:
- you work on a computer all day and want codes on the same screen;
- your phone is broken, lost or out of battery, and you saved the secret key;
- you manage several shared or test accounts.
We still recommend keeping your keys in at least one authenticator app as well, so you always have a second way in.
Is an online authenticator safe?
It depends on where the code is calculated. With our 2FA code generator, the code is generated by JavaScript inside your own browser. The secret key is not sent to our server, and you can even disconnect from the internet after the page loads. Saved keys stay in your browser's local storage on that device only.
Some simple rules keep you safe with any online 2FA tool:
- Only use it on your own, trusted device, not a public or shared computer.
- Do not save keys in a browser that other people use.
- Keep your backup codes somewhere offline.
What if you never saved the secret key?
Without the secret key you cannot create codes anywhere else. In that case, log in with a backup code or another method the website offers, then set up the authenticator again to get a new key, and this time store it safely. Our guide on recovering a 2FA account explains the options.
Frequently asked questions
Can I get a 2FA code without my phone?
Yes, if you have the account's secret key or setup QR code. Any TOTP authenticator, including a browser-based one on your computer, creates the same codes as your phone app.
Is there a Google Authenticator for PC?
Google Authenticator is a phone app. On a computer you can use any TOTP-compatible authenticator, such as our browser-based 2FA code generator, with the same secret key. We are not affiliated with Google.
Is it safe to get 2FA codes in a browser?
It is safe when the code is calculated locally in your browser and you use your own trusted device. Our 2FA code generator never sends your secret key to a server.
Can I get a 2FA code without the secret key?
No. The code is calculated from the secret key, so without it no authenticator can create valid codes. Use a backup code or the website's recovery process instead.