🔑

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
Tool

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

ParameterDefaultDescription
Digits6Length of the OTP code
Time Step30sHow often the code refreshes
AlgorithmSHA-1HMAC hash function used
SecretShared 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.

Frequently Asked Questions