Generate TOTP 2FA codes from a base32 secret key in your browser. Shows current, previous, and next codes with live countdown. All local, no data sent.
Open TOTP / 2FA Code Generator → free, no sign-inTOTP (Time-based One-Time Password) is the algorithm behind every authenticator app. The TOTP / 2FA Code Generator implements it directly in the browser: paste your base32 secret key, and see the current, previous, and next 6 or 8-digit codes with a live countdown to the next refresh. Useful for testing 2FA implementations or recovering codes when your phone isn't available.
Developers building or testing two-factor authentication systems, security engineers verifying TOTP configuration, or anyone who needs to generate TOTP codes from a known secret key without installing an authenticator app.
No tutorials. No learning curve. Open it and get started.
No server uploads. Shows current, previous, and next codes simultaneously — useful for debugging time-sync issues in TOTP validation.
Completely free. No trial period. No premium tier for basic functionality. No account required. Use it as often as you need.
One job, done well. TOTP / 2FA Code Generator was built to solve a specific problem cleanly. No feature bloat, no ads, no distractions.
What is TOTP?
Time-based One-Time Password — generates a new 6 or 8 digit code every 30 seconds based on a shared secret key and the current time.
Where do I get the base32 secret?
From your application's 2FA setup page — usually shown as a QR code (which encodes a base32 secret) or as a manual entry code.
Why show previous and next codes?
Useful when debugging time-sync issues — systems typically accept codes from adjacent time windows.
Is this safe to use?
Client-side only — your secret key is never transmitted. However, treat your 2FA secret with the same care as a password.
Can I use this as a substitute for an authenticator app?
For development and testing yes. For personal account security, use a dedicated authenticator app with encrypted storage.
Free. Instant. No sign-in. Open it and get the job done.
Open TOTP / 2FA Code Generator on Doathingy.com →