2FA guide
Online 2FA Code Generator
If you already have the 2FA secret your account provider gave you, this generator shows the current six-digit TOTP code — the same code Google Authenticator or Microsoft Authenticator would show — without installing an app.
When an online 2FA generator is useful
Authenticator apps live on your phone. That is great until the phone is out of battery, you are signing in on a work computer, or you are setting up 2FA for a shared team account and need to confirm the secret works before you save it.
A browser-based generator covers those moments. You paste the secret once, read the code, and close the tab. Because the code is computed with the open TOTP standard (RFC 6238), the result is identical to what any compliant authenticator app produces from the same secret.
How to generate a code
- Open the generator and paste your Base32 secret (for example JBSWY3DPEHPK3PXP) or a full otpauth:// link into the input box. Spaces and lowercase letters are fine.
- The current code appears immediately, together with a countdown showing how many seconds it stays valid.
- Select “Copy code” and paste it into the sign-in page before the countdown ends. A new code is generated automatically when it does.
Other ways to add a key
- Scan QR code: point your webcam at the QR code shown by the service during 2FA setup.
- Upload QR code: choose a screenshot or photo of the QR code; it is decoded locally in the browser.
- Google Authenticator export: upload or scan the “Transfer accounts” QR code to import every account it contains at once.
Is it safe?
All calculation happens in JavaScript on your device using the Web Crypto API. The secret is not sent to a server, not written to a cookie and not added to the URL. If you choose “Save locally”, the key is stored only in this browser’s local storage so the code is there next time — it does not sync anywhere.
Even so, treat the secret like a password: anyone who has it can generate your codes. Only use secrets for accounts you own, and avoid saving them on shared or public computers.
Frequently asked questions
Does it support 8-digit codes or SHA-256?
Yes. When you paste an otpauth:// link, the digits (6 or 8), algorithm (SHA-1, SHA-256, SHA-512) and period parameters are read from the link automatically.
Do I need to create an account?
No. There is no registration and no login. Open the page and paste your secret.
