Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Security & Privacy

TOTP Authenticator Code Generator

Compute time-based one-time passwords exactly like an authenticator app: paste the base32 secret that your otpauth:// URI contains, pick digits (standard 6) and a time step, and read the current, previous and next one-time codes with remaining seconds. The implementation is a self-contained SHA-1/HMAC and runs entirely in your browser — no requests, no history. A verify mode checks a code against the current 30-second window with a small tolerance so clock drift is handled.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

The secret is the input

TOTP works from a shared secret, not an account name. Paste the base32 string that sits after secret= in an otpauth:// URI — something like JBSWY3DPEHPK3PXP — and the tool computes the codes for the current, previous and next time window, with the seconds left in the current one.

Generating versus verifying

In codes mode you get a three-row table: the current code with its remaining lifetime, the previous window and the next one. In verify mode the input is the secret followed by the code to check, separated by a space, and the result row says Valid or Invalid and explains which window matched. The tolerance is one step either side of now, so a code typed just as the window rolls over still verifies.

Digits and period

Standard TOTP is six digits on a 30-second period, which is what most services issue; eight digits and a 60-second period are less common but supported. Both must match whatever the issuer used — a six-digit code checked as eight will never match.

Clock drift and the base32 format

TOTP depends on the clock. If every code is rejected, check the device time first — the ±1 step tolerance covers a few seconds, not minutes. The secret must be valid base32 (A–Z and 2–7 only); padding and spaces are tolerated, but any other character is refused rather than producing a wrong code.

Nothing is stored or sent

The HMAC-SHA-1 is computed with the browser WebCrypto API entirely in this tab. No request is made and the secret is not saved between visits. Keep a real authenticator app or a secure backup of the secret as well.

Questions

Where do I find the secret?

Scan or open the otpauth:// URI your service provides; the secret is the base32 string after "secret=".

Does this replace my authenticator app?

Conveniently yes on this machine, but keep a real app or secure backup of your secrets too, since codes are generated on launch and nothing is stored.

Why is my verify failing?

Check the secret (base32 without spaces), digits, and that your device clock is roughly correct — the window tolerance covers a few seconds of drift.

See category