Category: Developer tools
TOTP generator
Generate 2FA codes locally from a secret
Paste a Base32 secret or otpauth://totp URI and locally generate 6- or 8-digit time-based 2FA codes.
Paste a Base32 secret, or a full otpauth://totp/... URI to fill in the algorithm, digits and period automatically.
Everything runs in your browser: the secret is never sent anywhere, and nothing is stored once you leave the page.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This TOTP generator accepts a Base32 secret or otpauth://totp/... URI, then uses matching algorithm, digit count and time step settings to generate a 6- or 8-digit time-based one-time password. The calculation uses the browser Web Crypto API locally, and you can copy the current code before it expires. Secrets and codes are not uploaded to LocalTools. It does not enroll accounts, recover accounts, or scan QR-code images.
How to use it
- Paste a Base32 secret or an otpauth://totp URI from a QR payload.
- Match the algorithm, digit count and time step issued by the service.
- Read the current code and copy it before it expires.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How does a TOTP code use time to generate a one-time password?
- TOTP combines a shared secret and the current time with HMAC, then truncates the result into a short code.
- What is the difference between a Base32 secret and an otpauth:// URI?
- The Base32 value is the secret; an otpauth:// URI can also include account, issuer, algorithm, digit count and period parameters.
- Why do authenticator codes usually change every 30 seconds?
- TOTP produces values on fixed time steps, and 30 seconds is a common default period used by authenticator apps.
- Does this TOTP generator upload my secret or code?
- No. The secret, URI, settings and generated code are processed locally in your browser and are not uploaded to LocalTools.
- What account recovery, secure storage or QR-code features does this tool not support?
- It does not enroll or recover accounts, scan QR-code images, store secrets in a vault, or ask a server whether a code will be accepted.