TOTP Code Generator
Generate 2FA codes from a Base32 secret in your browser.
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
- Paste the Base32 secret.
- Pick the period and digits.
- 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.