TOTP Generator
Generate time-based one-time codes from a secret, view time remaining and test two-factor authentication setup.
What is TOTP Generator tool?
Generate time-based one-time codes from a shared secret or otpauth URI. See the current code and time remaining while checking the period, digits and algorithm used by a two-factor authentication integration. Debug a two-factor login integration. Check whether mismatched clocks or settings explain rejected codes.
How to use it
- Enter a Base32 secret or an otpauth URI for a test account.
- Confirm the period, code length and algorithm match the integration.
- Compare the current code with your authenticator or test service.
FAQ
Code generation runs locally. Secrets stay in page memory by default, but you can explicitly enable device storage or load credentials from URL parameters. URLs can expose credentials through history or sharing; use test secrets and a trusted device.
TOTP codes are time-based. Make sure your device clock is accurate (within a few seconds of UTC). Also verify that the period (30s vs 60s) and digit count (6 vs 8) match the settings used when the secret was registered.
This tool is intended for testing and debugging 2FA integrations, not for managing live account credentials. For production use, store your secrets in a dedicated authenticator app or password manager.



