Generate live TOTP authenticator codes from your secret key — perfect for developers testing 2FA flows. Keys stay in your browser, never sent anywhere.
Free TOTP 2FA Code Generator
Generate live two-factor authentication codes from any TOTP secret or otpauth:// link — right in your browser, with a countdown timer and auto-refresh.
Paste a base32 secret from your 2FA setup page, or the full otpauth:// link (we read the secret, issuer, and account name from it automatically). Your key lives only in this tab’s memory — it is never saved, stored, or sent anywhere.
——
Enter a secret key above to start generating codes.
Codes are computed on your device with the Web Crypto API. Your secret is never uploaded, logged, or stored.
Open the page and paste a secret. No account, no email, no waiting.
Unlimited code generation with zero limits and no locked options.
How to use the TOTP 2FA Code Generator
- 1Paste your secret key
Copy the base32 secret from the service’s 2FA setup page (or paste the full otpauth:// link) into the input box. The tool reads the issuer and account name automatically.
- 2Match the service’s settings
Choose 6 or 8 digits and the algorithm (SHA-1, SHA-256, or SHA-512) exactly as your service or authenticator app expects.
- 3Copy the live code
The current code appears instantly and refreshes every 30 seconds. Watch the countdown ring and hit Copy code before it expires.
Features
Paste a full otpauth:// URI and the tool extracts the secret, issuer, and account label in one step.
A visual ring shows exactly how many seconds remain before the current code expires.
Most services use 6-digit codes, but 8-digit mode is one click away for services that need it.
Pick the hash algorithm your service uses — all three run via your browser’s Web Crypto API.
Codes rotate on the 30-second boundary automatically; you never have to reload or re-enter anything.
Send the current code straight to your clipboard, ready to paste into any login form.
Frequently asked questions
Does my secret key leave my device?
What is a TOTP code, exactly?
Why doesn’t my code match my authenticator app?
Should I use this instead of an authenticator app?
What do the SHA-1, SHA-256, and SHA-512 options mean?
Do I need an internet connection to generate codes?
Is this tool free?
Related tools
Password Generator
Create strong random passwords instantly.
🛡️Password Strength Checker
Test how strong your password really is.
🔤Base64 Encoder / Decoder
Encode and decode Base64 text in seconds.
🧮Hash Generator
Generate MD5, SHA-1 and SHA-256 hashes of any text.
🧹Metadata Remover
Strip hidden EXIF data from photos before sharing.
