About this tool
Calculates the same six- or eight-digit time-based codes as authenticator apps, from a Base32 secret or a full otpauth:// link. It shows the current and next code with a countdown, checks codes you type, and draws a setup QR code, useful when you build or test 2FA. You can also generate a fresh random secret; nothing is sent over the network.
How to use 2FA Code Generator (TOTP)
- Paste a Base32 secret or an otpauth:// link, or click New random secret.
- Adjust algorithm, digits or period only if the service specifies them.
- Read or copy the current code before the countdown runs out.
- Scan the QR code with an authenticator app to set it up there.
Frequently asked questions
Why does my code differ from my phone's?
TOTP depends on the clock. Make sure this computer's time is set automatically, and that algorithm, digits and period match the service.
Should I use this instead of an authenticator app?
For testing and recovery it is handy, but for everyday logins keep secrets in a dedicated app or password manager.
Is HOTP supported?
No, only time-based TOTP codes, which is what nearly all services use.