Skip to main content

TOTP Generator

Generate time-based one-time passwords (RFC 6238) from a secret key. Codes are computed in your browser and the secret is never uploaded.

Secret

Paste the base32 secret or an otpauth:// URI, or scan a setup QR code. Kept for this browser session only.

Clock fix shifts the time used for codes if this device's clock is wrong (positive = ahead).

Current code

Code time (UTC): Sun, 08 Nov 2026 13:42:35 GMT

Enter a secret key to see the current code.

About TOTP

A TOTP code is an HMAC of the current time step (the Unix time divided by the period) using a shared secret. Both the service and your authenticator compute the same code, which changes every period.

Privacy

Everything runs locally with Web Crypto, and QR images are decoded on this device. The secret stays in this tab's session until you close it or press Clear, and is only kept longer if you save the account.

Defaults

Most services use SHA-1, 6 digits and a 30 second period. Use the otpauth URI or QR code when a setup page provides one.