Free tool

TOTP code generator for testing

Enter a base32 secret from a test account to see the current six-digit code and when it changes. Use test secrets only: a real two-factor secret belongs in your authenticator or password manager.

Runs locallyNothing you type leaves this page; it is blocked from making network requests.

The prefilled secret is the widely used RFC example value, not a real account.

Frequently asked questions

How are TOTP codes calculated?

RFC 6238: the current Unix time is divided into 30-second steps, the step number is signed with HMAC-SHA1 using the shared secret, and six digits are extracted from the result (RFC 4226 dynamic truncation). This page does the same with the Web Crypto API.

Why don't my codes match?

Usually a clock difference: TOTP depends on both sides agreeing on the time to within a step. Also check the secret is base32 (letters A–Z and digits 2–7) and that the service uses SHA-1, six digits and 30 seconds, which almost all do.

More free tools

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.