TOTP generator (2FA)

Generate the time-based codes (TOTP, RFC 6238) used by two-factor authentication: paste a Base32 secret or an otpauth:// URI, or create a random one. See the current code with a countdown, the previous and next ones, verify a code and get the QR to scan with an authenticator app.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Case, spaces and hyphens do not matter. If you paste an otpauth:// URI the settings, label and issuer fill in by themselves.

Algorithm
Digits

Almost every app uses SHA-1, 6 digits and 30 seconds: change these only if the service asks for it.

Enter a secret to see the codes.

How it works

The code is an HMAC of the current period number (Unix seconds divided by the period), computed with the shared secret and cut down to a few digits. If the device clock is wrong, the codes do not match.

What it is for

To test a two-factor integration, check a secret, or create a test QR. For your real accounts a dedicated authenticator app is safer.

Privacy

Secret and codes are computed in your browser with WebCrypto and are neither sent nor stored. Closing the page clears everything.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain