TOTP & 2FA Authenticator Code Generator
Turn a Base32 secret into live two-factor (2FA) authentication codes with this free TOTP generator — no app to install. It implements the standard TOTP algorithm (RFC 6238) entirely in your browser using Web Crypto, so your secret key is never uploaded, logged, or sent to any server. Watch the current code and a countdown ring update every second, copy it in one click, or build an otpauth:// link for your authenticator app.
Paste the Base32 secret from your 2FA setup. Spaces and letter case are ignored.
Your browser cannot generate codes here — Web Crypto is unavailable. Use a modern browser over HTTPS or localhost.
Enter a secret to see your code
Paste a Base32 secret, or generate a random one, to start producing time-based codes.
Current code
••••••
otpauth:// URI
Import this into an authenticator app to add the same account.
How to use
- Paste your Base32 secret key, or click the shuffle button to generate a random one.
- Choose the number of digits (6 or 8), the refresh period (30 or 60 seconds) and the hash algorithm if your service uses non-default values.
- Read the current code and copy it before the countdown ring runs out.
- Optionally add an issuer and account name to build an otpauth:// URI for an authenticator app.
Features
- Standards-compliant TOTP (RFC 6238) with dynamic truncation
- Supports 6 or 8 digits, 30 or 60 second periods, and SHA-1, SHA-256 or SHA-512
- Live code with a one-second countdown ring and a next-code preview
- Random Base32 secret generator using the browser CSPRNG
- Builds an otpauth:// URI for Google Authenticator, Authy and similar apps
- 100% client-side — the secret never leaves your browser and works offline