ToolBuddy
In Browser

TOTP Generator

Compute a time-based one-time password from a Base32 secret with HMAC-SHA, the same algorithm authenticator apps use (RFC 6238). Pick SHA-1, SHA-256, or SHA-512, 6 or 8 digits, and a 30- or 60-second step. The secret stays in the tab.

Runs in your browser. Nothing is uploaded.

Loading tool…

About this tool

Mint a time-based one-time password from a Base32 secret using HMAC-SHA, the same algorithm authenticator apps use (RFC 6238). Choose SHA-1, SHA-256, or SHA-512, six or eight digits, and a 30- or 60-second step. The code updates in this tab as the window moves.

How to use: paste the Base32 secret from a test user or from an otpauth setup. The sample is the public RFC 6238 test key, not an account secret. Copy the current code from the sticky bar. A mismatched algorithm, period, or digit count will not match the service you are testing.

Example: the sample secret with SHA-1, 6 digits, and a 30-second step produces the same code as a standard authenticator for that key. Use SHA-256 or SHA-512 only when the issuer says so. Most services still use SHA-1 and 6 digits.

The secret never leaves the tab. This page does not enroll a device, scan a QR code, or upload the key. Related: the Base32 encoder if you need to turn text into the alphabet this tool expects, and the HMAC generator for the underlying signature.

FAQ

Related Crypto tools