TOTP / 2FA Code Generator
Enter a secret key to generate the current time-based 2FA code, like an authenticator app does.
How to use TOTP / 2FA Code Generator
- Enter your Base32 secret key (the one shown when you set up 2FA).
- The current 6-digit code is generated automatically and refreshes every 30 seconds, just like an authenticator app.
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.
Community
Loading...