TOTP Generator
Generate TOTP codes (time-based 2FA) from a Base32 secret. All values are generated on your device using a cryptographically secure random generator — nothing is sent to a server.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
JBSWY3DPEHPK3PXP
Example Output
123456 (valid ~22s)
How to Use
- 1Open "More settings" to adjust parameters (e.g. size/length) if needed.
- 2Click the Generate button.
- 3Copy the result with the Copy button.
About TOTP
TOTP (Time-based One-Time Password, RFC 6238) is a 6–8 digit code that changes every few seconds, the basis of 2FA apps like Google Authenticator and Authy.
The code is computed from a shared secret (Base32) plus the current time, so the server and app produce the same code without communicating. This tool supports 6/8 digits, period, and SHA1/256/512.
Enter your Base32 secret to see the current code and its remaining validity — useful for testing 2FA integrations. To build a URI that scans into a QR, see the OTP URI Generator.
FAQ
Are my data or keys sent to a server?
No. TOTP runs entirely in your browser using the Web Crypto API and client-side libraries. Your data, passwords, and keys never leave your device.