What is a TOTP Generator?
A TOTP generator creates one-time passwords that refresh every few seconds. These codes are widely used for two-factor authentication (2FA) in apps and services. This tool helps you generate and verify TOTP codes for testing login flows and security features during development.
How to use this tool
- Set or generate a Base32 secret in the settings panel.
- Adjust issuer, account, algorithm, digits, and period to match your target system.
- Scan the QR code with an authenticator app or copy the
otpauth://URI. - Use the Verifier tab to validate a code with a ±1 window for time drift.
Why this is useful
- 2FA testing: Simulate real authenticator behavior while building auth flows.
- Debugging: Confirm whether invalid logins come from clock drift, wrong secret, or wrong settings.
- Interoperability checks: Match your implementation with common authenticator apps.
Security note
This tool is intended for development and testing. Treat secrets like passwords and avoid sharing production secrets in screenshots, logs, or public environments.
Library credit
This tool uses the OTPAuth library for standards-compliant TOTP generation and verification.