TOTP generator

0 uploads — runs entirely in your browser, works offline

Your secret is used to compute the code here and never leaves your browser.

TOTP generator — 2FA codes, fully client-side

Paste a Base32 secret and get the current 6-digit TOTP code, computed entirely in your browser (0 uploads, works offline). Your 2FA secret never leaves your device.

How to use it

  1. Set the options above.
  2. Results generate instantly on your device.
  3. Copy or Download them.

FAQ

How do I generate a TOTP 2FA code for free?

Paste the Base32 secret from your authenticator setup and the current time-based code appears instantly, computed in your browser via Web Crypto with no upload — the same RFC 6238 algorithm Google Authenticator and Authy use.

Is it safe to enter my 2FA secret here?

The secret is used to compute the code on your device and is never transmitted, logged or stored — turn off your Wi-Fi and it still works, which is the proof. That said, your secret is sensitive: only use this on a device you trust, and prefer a dedicated authenticator app for daily use.

Does it match Google Authenticator?

Yes — it implements RFC 6238 TOTP with the standard 30-second period, verified against the RFC's own test vectors.

Why does the code change?

TOTP codes are time-based and rotate every 30 seconds; the tool shows how long the current one is valid.

Limits

Computes the current code as a snapshot; re-open to refresh. SHA-1 with a 30s period and 6 digits by default.

Related

The hash and HMAC generators cover related cryptographic primitives.

Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.