TOTP / 2FA Code Generator
NEWGenerate the current time-based 2FA code from a secret key, like Google Authenticator.
Frequently asked questions
Is this the same algorithm apps like Google Authenticator use?
Yes — standard TOTP (RFC 6238) with SHA-1, 6 digits, and a 30-second period, which is what the vast majority of 2FA setups use by default.
Where do I get the secret key to paste in?
It's the Base32 string a service gives you when setting up 2FA — usually shown as text near or underneath the QR code, as an alternative to scanning it with your phone.
Is my secret sent anywhere?
No — the code is computed entirely in your browser via the Web Crypto API. That said, treat any 2FA secret as sensitive, since anyone with it can generate valid codes for your account.
Related tools
Password Generator
Generate strong, random passwords with a strength meter.
Passphrase Generator
Generate a memorable, secure passphrase from the EFF's Diceware word list.
Password Strength Checker
Check and score the strength of any password.
QR Code Generator
Generate QR codes for any URL, text, or contact info.