Skip to content
Convertto

TOTP Code Generator

Generate time-based one-time passwords from a Base32 secret to test 2FA setups.

To generate a TOTP code, paste the Base32 secret shown during two-factor setup. The code is derived from the secret and the current time using HMAC-SHA1, exactly as Google Authenticator does, and refreshes every 30 seconds.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Should I paste a real 2FA secret here?

Only for testing your own setup. The computation is local and nothing is transmitted, but a 2FA secret is equivalent to a second password — treat it with the same care and prefer a throwaway test secret.

How to use the totp code generator

  1. 1Enter or paste your base32 secret.
  2. 2Choose the digits.
  3. 3Set the period (seconds).
  4. 4The result appears immediately — copy or download it.

Embed this tool

Put the working totp code generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More hash & crypto tools