FREE WEB TOOL

TOTP generator (2FA code)

Generate the same time-based OTP code as an authenticator app from a Base32 secret or otpauth:// URI, entirely in this browser.

Use tool

For an otpauth:// URI, algorithm, digits, and period are read automatically. The input is not stored.

If the code does not match, check the clock first

TOTP is computed from the shared secret and current time. A clock that is noticeably out of sync can produce the wrong code even when the secret is correct.

Six digits and 30 seconds are common, not universal

SHA-1, six digits, and a 30-second period are common defaults, but an otpauth:// URI can specify SHA-256 / SHA-512, eight digits, or another period.

Related tools

Useful next steps for authentication and identifiers.