🔐 encrypt.toolsALL TOOLS
TOTP · RFC 6238

TOTP / 2FA Authenticator Code Generator

Live 2FA codes from a Base32 secret.

FIELD NOTES

About this tool

TOTP (RFC 6238) is HMAC of the current 30-second interval, truncated to 6 digits — that's the whole secret behind authenticator apps. Paste a Base32 secret to watch codes generate and roll over live, with configurable digits, period, and hash.

Useful for debugging 2FA integrations and recovering access when you have the secret but not the app. The secret never leaves your browser — but treat any 2FA secret as radioactive and paste it only on a machine you trust.

Like everything on encrypt.tools, this runs entirely in your browser — nothing you enter is transmitted or stored.

FREQUENTLY ASKED

Frequently asked questions about TOTP Generator

What can I do with this?+

Generate the same 6-digit codes an authenticator app produces from a Base32 secret — useful for debugging 2FA integrations or accessing an account when you have the secret but not the app.

Is it safe to paste my 2FA secret?+

The secret never leaves your browser, but a TOTP secret is as sensitive as a password. Only paste it on a device you fully trust.

Why does the code keep changing?+

TOTP codes are derived from the current 30-second time window, so they roll over automatically. The countdown shows seconds until the next code.

RELATED INSTRUMENTS