Advertisement

TOTP Generator

Generate time-based one-time passwords (TOTP) from a Base32 secret key. Useful for developers testing 2FA implementations.

------
Refreshes in 30s
Warning: This tool is for developer testing only. Never enter real authentication secrets on any website. Keep your 2FA secrets private.
Advertisement

About TOTP Generator

TOTP (Time-Based One-Time Password) is the algorithm behind authenticator apps like Google Authenticator and Authy. It generates short-lived codes from a shared secret and the current time.

How TOTP Works

The current Unix timestamp is divided by the time period (usually 30 seconds) to create a counter. This counter and the shared secret are fed into HMAC-SHA1 (or SHA-256/512) to produce a truncated numeric code.