← All tools

TOTP Code Generator and Tester

Generate or compare 6- or 8-digit SHA-1 TOTP codes with 30- or 60-second periods from a local Base32 test secret.

otp-code-generator-and-validatorLOCAL WORKSPACE

Enabling local controls…

Input & options

HMAC-SHA-1. Comparison uses the current, prior and next window; this does not authenticate an account.

Local only; no upload, storage or URL sharing. Use disposable secrets. Signed data is not a proof of identity, authorization or safe content.

Result

Choose settings and run to produce a result. Unedited input is kept when an error occurs.

How to use this tool

Choose digits and period, check the local clock and use a disposable Base32 secret. Compare a supplied code against the current, prior and next windows.

When not to use it

Clock drift and service-specific parameters affect results; local matching is not server authentication. Never paste a live authenticator secret.