Private by design

2FA Code Generator

Generate secure, time-based authentication codes instantly.

How to use this tool

Two-factor authentication (2FA) helps protect your account by requiring a time-based code in addition to your password when you sign in.

Use it as a web version of Google Authenticator: paste a secret key, scan or upload a 2FA QR code, or import a Google Authenticator export to get the same six-digit codes in your browser. You can also turn any saved key back into a QR code for another authenticator app.

  1. Enter your 2FA secret key

    Enter a Base32 secret key or an otpauth:// link from the service you are signing in to.

  2. Get your code

    The current code appears instantly with a countdown. Copy it with one click.

  3. Use the refreshed code

    The code refreshes automatically every 30 seconds. Enter it before it expires.

Tip: Keep your 2FA secret key safe and never share it with anyone to protect your account.

Private browser-based authentication

Without saving, your secret stays in this page's memory and is never sent to a server, stored in a cookie, or added to the URL. Saved keys are kept only in this browser's local storage.

Questions about online 2FA codes

What is a TOTP code generator?

TOTP is a time-based one-time password standard. It creates short-lived codes from a shared secret and the current time.

Can this recover my 2FA account?

No. You need the secret key that was already issued by your account provider. This tool cannot recover accounts or bypass authentication.

Can I import accounts from Google Authenticator?

Yes. In Google Authenticator choose Transfer accounts → Export accounts, then scan or upload the QR code it shows. Every TOTP account in it is imported locally in your browser.

Can I read the secret key from a QR code screenshot?

Yes. Choose “Upload QR code” and select the image. The otpauth:// link and secret are decoded on your device; the image is not uploaded.

How do I move a key to another authenticator app?

Save the key, then use the QR button on its card. Scan the QR code with Google Authenticator, Microsoft Authenticator or any TOTP app, or download it as a PNG.

2FA guides