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?
How to use the totp code generator
- 1Enter or paste your base32 secret.
- 2Choose the digits.
- 3Set the period (seconds).
- 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
Related tools
Bcrypt Hash GeneratorHash a password with bcrypt at a configurable cost factor — the right way to store passwords.Passphrase GeneratorGenerate memorable Diceware-style passphrases from random words.Password GeneratorGenerate strong random passwords using your browser's cryptographic random source.Password Strength CheckerEstimate how long a password would take to crack, and see exactly what weakens it.HMAC GeneratorGenerate an HMAC signature with SHA-256, SHA-1, SHA-384 or SHA-512 and a secret key.Base32 Encoder & DecoderEncode and decode Base32 (RFC 4648) — used by TOTP secrets and case-insensitive identifiers.
Last updated
More hash & crypto tools