Language: EnglishEN

TOTP Generator (2FA Code)

Generate time-based 2FA codes from a secret key in your browser, compatible with authenticator apps.

— — —

TOTP Generator (2FA Code) runs only in your browser: nothing you enter is stored or sent anywhere. Automatic checks can miss things, so review the results yourself.

How to use TOTP Generator (2FA Code)

  1. Enter your Base32 secret, or generate a test one.
  2. Choose digits, period and algorithm if needed.
  3. Copy the code before the timer ends.

A TOTP code is the six-digit number that apps like Google Authenticator show for two-factor login. It is calculated from a shared secret and the current time, following RFC 6238. No network is required, which is why this page can generate the same code entirely in your browser.

When this tool makes sense

Why be careful

The secret key is the whole security of the second factor. Anyone holding it can generate your codes forever. Don't paste real keys on a computer you don't fully trust, even on a page that works locally. For your daily accounts, use a dedicated authenticator app or a hardware key.

If codes are rejected

Time is the most common reason. Codes depend on your clock, so turn on automatic time. Check that digits, period and algorithm match the service; most use 6 digits, 30 seconds and SHA-1. Secrets must be Base32, which uses only the letters A to Z and the digits 2 to 7. Spaces and dashes are ignored here.

Last updated:

Frequently asked questions

Is the secret saved or sent?

No. It is held only in the page while open, and is not stored or transmitted. Closing the page clears it.

Can this replace my authenticator app?

Technically it produces the same codes, but an app stores keys more safely and is better for daily use.

Is TOTP Generator (2FA Code) free?

Yes. TOTP Generator (2FA Code) is completely free, needs no account and has no usage limits.

Does TOTP Generator (2FA Code) send my data to a server?

No. Files, text, camera and microphone data are processed only in your browser. Network tests exchange only technical probes with the servers being tested.

Which devices does TOTP Generator (2FA Code) work on?

TOTP Generator (2FA Code) works in current versions of Chrome, Edge, Firefox and Safari on computers, tablets and phones. Some hardware features depend on your browser and device.

Related tools