Handitab

TOTP / 2FA Generator

Generate 6-digit TOTP codes from a Base32 secret, the way an authenticator app does, with the secret kept inside your browser.

About TOTP / 2FA Generator

TOTP (time-based one-time password, RFC 6238) is the algorithm behind authenticator apps. It computes an HMAC-SHA-1 of the current 30-second time step with a shared secret, then truncates the result to a 6-digit code. This tool decodes your Base32 secret, runs that calculation with the Web Crypto API every second, and shows the code and the seconds left. It supports only SHA-1, 6 digits, and 30-second steps. The secret does not leave your browser.

Questions about TOTP / 2FA Generator

Why does my code not match the one in my authenticator app?

The usual causes are a wrong device clock, since codes depend on the current time, or a service that uses non-default settings such as SHA-256, 8 digits, or a 60-second period, which this tool does not support.

Where do I find the Base32 secret?

It is the text version of the QR code shown when you set up two-factor authentication, often behind a link for entering the key manually. It is also the secret parameter inside an otpauth:// link.

Runs in your browser. Page last updated .

More security tools

All 10 security tools