TOTP Code Generator

Generate time-based one-time passwords (RFC 6238) from a Base32 secret with live countdown. Free online TOTP tool, browser-based.

Preparing private browser tool…

Your file will stay on this device.

Frequently asked questions

What is TOTP?
Time-based One-Time Password (RFC 6238) generates short numeric codes from a shared secret and current time. Used by Google Authenticator and most 2FA apps.
Is my secret safe?
Yes. Base32 secret never leaves your browser. HMAC-SHA1 runs locally through WebCrypto. Still avoid pasting production secrets.
Why does code not match my app?
Check device clock is accurate, period is 30 seconds, digits is 6, and Base32 secret has no extra spaces.