TOTP Generator
Enter your 2FA secret key to generate a time-based one-time password. Everything runs locally in your browser.
Paste your Base32 secret or otpauth:// URI. Your key stays in your browser.
What is TOTP?
TOTP (Time-based One-Time Password) is the standard algorithm (RFC 6238) behind most two-factor authentication apps including Google Authenticator, Authy, Microsoft Authenticator, and 1Password. It combines a shared secret key with the current time to generate a short-lived 6-digit verification code that changes every 30 seconds.
Is this tool safe?
Yes. Your secret key never leaves your browser. All TOTP code generation happens 100% client-side using JavaScript. No data is sent to any server. You can verify this by checking the network tab in your browser developer tools. The source code is open on GitHub.
How to use this 2FA code generator
- Copy your 2FA secret key (Base32 string) from the service you want to authenticate with.
- Paste it in the input field above, or scan the QR code using the Upload QR or Scan QR options.
- Click "Generate Code" to get your current 6-digit verification code.
- Click "Copy" and paste it into the login form. The next code is also shown for convenience.
Compatible authenticator services
This TOTP generator works with any service that supports standard TOTP two-factor authentication, including: Google, GitHub, AWS, Cloudflare, Discord, Dropbox, Facebook, Instagram, Twitter/X, Microsoft, Binance, Coinbase, and thousands more. It's a free online alternative to Google Authenticator, Authy, and other authenticator apps.
Works offline as a PWA
Install 2FAA on your phone or desktop as a Progressive Web App (PWA) for instant access. Once installed, it works completely offline — no internet connection required to generate your 2FA codes.