Homeโ€บ Security Toolsโ€บ TOTP / 2FA Code Generator

TOTP / 2FA Code Generator

Generate live time-based one-time codes from a Base32 secret or otpauth:// URI. RFC 6238, 100% in-browser.

 Back to Security Tools

Spaces and lowercase are fine. Try secret JBSWY3DPEHPK3PXP.

Current code

โ€” โ€” โ€” โ€”

30

Next code: โ€”

How it works

A TOTP code is HMAC(secret, โŒŠnow / periodโŒ‹) truncated to N digits, refreshed every 30 seconds. The same secret will produce the same code in any RFC 6238 authenticator app โ€” useful for backup access or debugging an integration. Nothing leaves this page.

Issuer โ€”
Account โ€”