2FA Code Generator (Browser Only)

Generate TOTP 2FA codes locally in your browser. No storage, no URL secrets, and no server submission. Supports SHA1/SHA256/SHA512, 6/7/8 digits, and 15/30/60 second periods.

Browser-only • No storage
Secret Input
Waiting
Safety tip: avoid using this on devices with untrusted extensions or remote access. This page does not store secrets, but your device environment still matters.
Live OTP
Refresh in --s
------
Digits: 6 Period: 30s Algo: SHA1

How this TOTP generator works

TOTP (Time-based One-Time Password) is used by authenticator apps to generate 2FA codes. A new code is created every fixed time interval (commonly 30 seconds). This tool calculates the code locally using your secret and the current time, without sending your secret to any server.

Supported options

Common setup tips

Popular search keywords

totp generator, 2fa code generator, authenticator code generator, browser totp, otp generator online, time based one time password, sha1 totp, sha256 totp, sha512 totp, totp code generator, google authenticator code generator.

FAQ

What is TOTP?

TOTP is a time-based one-time password used for two-factor authentication (2FA). Codes refresh on a timer.

Does this website store my secret?

No. This page does not store secrets in cookies or local storage, and it does not submit secrets to a server.

Can I use this page offline?

Yes. You can save this page and open it locally for additional privacy.

Privacy & safety

This tool runs locally in your browser. However, no website can guarantee full safety if your device has malware, unsafe browser extensions, remote access, or screen recording tools. For best results, use a trusted device and a clean browser profile.