TOTP Generator

Turn a Base32 secret into live time based one time codes following RFC 6238.

Generate a TOTP code

Code: —
Valid for: — seconds
Counter: —
Codes follow RFC 6238 and are computed with HMAC through crypto.subtle; the secret stays in your browser.

How to use the TOTP Generator

  1. Paste the Base32 secret from your account or authenticator setup.
  2. Set the period, the number of digits and the hash algorithm.
  3. Watch the countdown ring and copy the current code before it expires.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online totp generator.

A time based one time password is a short number derived from a shared secret and the current time, and it changes every period, usually 30 seconds.
Paste the Base32 secret shown by your provider, often under manual setup or a QR code link, and the current code appears immediately.
Check the period, the digit count and the algorithm. Most services use 30 seconds, six digits and SHA-1, but some differ.
No. The secret stays in the page, is never sent anywhere, and disappears as soon as you close or reload the tab.
Until the countdown ring empties, which happens every period. Codes are commonly accepted one step before and after the current one.
It is handy for testing and recovery, but keep using your phone or desktop authenticator for daily logins because it keeps the secret for you.
Base32 only uses letters and digits that are easy to read aloud and type, which avoids the case and character confusion of Base64.
Yes. It is completely free, works offline once loaded, and needs no account, no sign-up and no installation.

Last updated: October 10, 2026