TOTP 2FA Generator
Generate time-based one-time passwords (TOTP) for two-factor authentication. All computation happens locally in your browser.
Add Account
Paste the Base32 secret key provided by the website or app to set up a new 2FA account.
Import via QR Code
Select an image file containing a TOTP QR code to extract the secret automatically.
No accounts yet. Add an account with your secret key to start generating 2FA codes.
How TOTP Works
- A shared secret key is established between you and the service (e.g. Google, GitHub).
- Your browser combines the secret with the current time to generate a 6-digit code.
- The service independently computes the same code. If they match, you are authenticated.
Privacy: Your secret keys never leave your browser. All codes are generated locally using the Web Crypto API.
Learn more about TOTP (RFC 6238) โ