OTPilot

Free tool

Free TOTP code generator

Get the current 2FA code from a secret key, like an authenticator app would. Runs entirely in your browser — the secret is never sent anywhere.

••• •••

Computed in your browser — nothing is sent.

26

Need an AI agent to get this code? Give it an API call instead of the secret.

Give this code to your agent

How TOTP codes work

A TOTP (time-based one-time password, RFC 6238) code is an HMAC of the shared secret and the current 30-second time window, cut down to 6 digits. Any device with the same secret and an accurate clock produces the same code — that is why an authenticator app, this page and OTPilot all agree.

Is it safe to paste my secret here?

This generator uses your browser's built-in Web Crypto; the secret stays on this page. Still, treat a TOTP secret like a password: anyone holding it can produce your codes indefinitely.

Generating codes for an AI agent?

Don't give the agent the secret. Store it in OTPilot and give the agent a revocable key that returns only the current code, with an audit log and optional human approval.

Also try the otpauth QR decoder.