TOTP code generator (2FA)
Generate a TOTP code (2FA, Google Authenticator style) from a base32 secret, in your browser.
Standard TOTP code (SHA-1, 6 digits, 30 s period) computed locally.
🔒 100% client-side — no data sent
Generate a one-time TOTP code from a base32 secret, just like Google Authenticator would. The calculation happens entirely in your browser, so your 2FA secret is never transmitted.
What is it for?
- ▸ Get a 2FA code when your phone is out of reach
- ▸ Test the TOTP integration of an app you are building
- ▸ Verify that a two-factor authentication secret works
- ▸ Automate login to a test account that has 2FA enabled
FAQ
Where do I find the base32 secret to enter?
It is shown when you enable 2FA, often below the QR code as a string of letters and digits.
Is my 2FA secret stored or sent?
No. The code is computed locally in your browser, and the secret is neither saved nor sent to any server.
Why does the code change every 30 seconds?
TOTP is time-based: a new code is computed at each interval (30 s by default) so it stays valid only briefly.
Related tools
AES · encrypt / decrypt Encrypt and decrypt text with AES-GCM using a password, in your browser. API key · generator Generate API keys with a custom prefix (sk_live_, pk_…), cryptographically secure. Bcrypt hash Generate a bcrypt hash of a password and verify a password against a hash, in your browser. Binary calculator (bitwise) Perform bitwise operations (AND, OR, XOR, NOT, shifts) on two numbers, in your browser. Classic ciphers (Caesar, ROT13, Vigenère) Encrypt and decrypt with the Caesar, ROT13 and Vigenère ciphers (educational). CRC32 · checksum Compute the CRC32 checksum of a text (hexadecimal).