TOTP / 2FA Code Generator
Generate and verify time-based one-time passwords (TOTP) compatible with Google Authenticator and Authy. Runs entirely in your browser.
🔒 Security Tools
Free
Browser-based
What is TOTP?
TOTP (Time-Based One-Time Password) is the standard algorithm behind Google Authenticator, Authy and most 2FA apps. It generates a new numeric code every 30 seconds using your secret key and the current time, making it highly resistant to replay attacks.
TOTP Parameters
| Parameter | Default | Description |
|---|---|---|
| Digits | 6 | Length of the OTP code |
| Time Step | 30s | How often the code refreshes |
| Algorithm | SHA-1 | HMAC hash function used |
| Secret | — | Shared Base32-encoded key |
Compatibility
The default settings (6 digits, 30 second step, SHA-1) are compatible with Google Authenticator, Authy, Microsoft Authenticator and all major TOTP apps. Custom parameters may not be supported by all apps.