TOTP Code Generator
Generate a TOTP code from a base32 secret in your browser. Choose SHA-1/256/512, digits and period; the secret is never uploaded.
What this totp code generator does
TOTP is HMAC of the current 30-second counter, truncated to a short decimal code. The secret is base32 because that is what authenticator apps exchange, and the page refuses a malformed secret instead of computing a code for the wrong key.
How to use it
Paste a base32 secret above and press Run. The code is recomputed for the current time on every run; clear the box and press Run again to watch the counter advance.
Why it runs in your browser
The HMAC and the truncation happen in the page with the cipher engine, so the secret never leaves it. The page is time-dependent, which is why it has no fixed worked example: the code it shows is the code for the moment you opened it.
TOTP is HMAC of the current 30-second counter, truncated to a short decimal code. The secret is base32 because that is what authenticator apps exchange, and the page refuses a malformed secret instead of computing a code for the wrong key.
Generate a TOTP code from a base32 secret in your browser. Choose SHA-1/256/512, digits and period; the secret is never uploaded.
How to use it
Paste a base32 secret above and press Run. The code is recomputed for the current time on every run; clear the box and press Run again to watch the counter advance.
Why it runs in your browser
The HMAC and the truncation happen in the page with the cipher engine, so the secret never leaves it. The page is time-dependent, which is why it has no fixed worked example: the code it shows is the code for the moment you opened it.
What to Expect
Best for
- Converting base32 secret to code when the data is already on screen.
What this tool keeps
- The HMAC and the truncation happen in the page with the cipher engine, so the secret never leaves it.
Frequently asked questions
How do I use the totp code generator?
Paste a base32 secret above and press Run. The code is recomputed for the current time on every run; clear the box and press Run again to watch the counter advance.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.