All tools

TOTP Code Generator

Generate 2FA codes from a Base32 secret in your browser.

Current code
--- ---
expires in 24s
Next code
------

Generates time-based one-time passwords per RFC 6238. Secrets stay in your browser. The default settings (30 s, 6 digits, SHA-1) match Google Authenticator. Most providers print this Base32 secret in QR codes during setup.

About

Paste a Base32 TOTP secret (the kind printed under a 2FA QR code). The tool generates current and next codes with a live countdown. Supports SHA-1, SHA-256, SHA-512, 6 to 8 digits, and 30 or 60 second periods. Secrets never leave your browser.

How to use

  1. Paste the Base32 secret.
  2. Pick the period and digits.
  3. Read the current code.

FAQ

Is this safe?+

The secret stays in this tab. No upload, no logging. That said, your authenticator app keeps secrets in encrypted storage. This is meant for testing or recovering when your app is missing.

What format is the secret?+

Base32 (A–Z, 2–7), without padding. Spaces and lowercase are accepted.