TOTP Generator
Generate Time-Based One-Time Password codes from a Base32 secret key
Enter your Base32 secret key to generate a TOTP code.
What is TOTP Generator?
TOTP (Time-Based One-Time Password) Generator creates 6-digit codes that change every 30 seconds, following the RFC 6238 standard used by Google Authenticator, Authy, and other 2FA apps. Enter your Base32 secret key to generate the current code. All computation happens in your browser using the Web Crypto API — your secret never leaves your device.
How to Use TOTP Generator
- Enter your Base32 secret key (from your 2FA setup QR code or manual entry)
- The 6-digit TOTP code appears instantly
- The code refreshes automatically every 30 seconds
- Click Copy to use the code for login
Features
- RFC 6238 compliant TOTP generation
- HMAC-SHA1 algorithm (standard for most 2FA apps)
- 30-second countdown timer with auto-refresh
- One-click copy to clipboard
- 100% client-side — secret never sent to any server
Frequently Asked Questions
Where do I find my Base32 secret?
When setting up 2FA on a website, look for a "manual entry" or "can't scan QR code" option. The secret key shown there is your Base32 secret (e.g. JBSWY3DPEHPK3PXP).
Is this compatible with Google Authenticator?
Yes. This tool uses the same RFC 6238 TOTP algorithm as Google Authenticator, Authy, and most other 2FA apps. The codes will match as long as your device clock is accurate.
Is my secret key safe?
Yes. All computation uses the browser's built-in Web Crypto API. Your secret key is never transmitted to any server and exists only in your browser session.