TOTP Authenticator Code Generator
Generate a real 6-digit TOTP code from a base32 secret, following the standard 30-second step.
Enter your details below.
How to use
- Copy the base32 secret from your authenticator setup.
- Paste it into the secret box.
- Click Generate Code and use the code before its seconds run out.
About this tool
Enter the base32 secret from an authenticator setup and this tool decodes it, combines it with the current 30-second time step, and computes a 6-digit code using HMAC-SHA1, as defined by the TOTP standard. It also shows how many seconds remain in the current step, since the code changes when the step rolls over. The code is computed in your browser; keep your secret private and never paste it into a page you do not trust.
Frequently asked questions
Why does the code change every 30 seconds?
Because TOTP mixes your secret with the current time step, so the same secret yields a new code each step and old codes expire.
What if WebCrypto is unavailable?
The tool says so plainly instead of faking a code, since the HMAC computation needs that browser feature.
Related tools
All tools · Read the guide: TOTP Authenticator Code Generator