Generate Time-based One-Time Password (TOTP) codes instantly. Works with Google Authenticator, Authy, Microsoft Authenticator, and more.
Our free 2FA Code Calculator allows you to generate Time-based One-Time Password (TOTP) codes directly in your browser. This tool is perfect for recovering 2FA access, testing authentication setups, or as a backup when you don't have access to your authenticator app.
Two-Factor Authentication (2FA) adds an extra layer of security to your online accounts. Instead of just a password, you also need a temporary code from an authenticator app. TOTP (Time-based One-Time Password) is the most common 2FA method, generating codes that change every 30 seconds.
A base32 secret key is a string of letters and numbers (A-Z, 2-7) used by authenticator apps to generate TOTP codes. You usually get this key when setting up 2FA for a service. It's case-insensitive and may include = padding characters.
Yes! All calculations happen locally in your browser. We never send your secret key to any server. Your secret key stays on your device and is never transmitted over the internet.
This tool can serve as an emergency backup if you lose access to your authenticator app. However, for regular use, we recommend dedicated authenticator apps like Google Authenticator, Authy, or Microsoft Authenticator.
Common issues include: incorrect secret key, time synchronization problems, or using the wrong algorithm. Make sure your device's clock is accurate (within 30 seconds) and that you're using the correct secret key from your 2FA setup.
Most major services support TOTP 2FA including Google, Facebook, GitHub, Dropbox, Microsoft, Amazon AWS, and many more. Look for "authenticator app" or "TOTP" options in your account security settings.
When setting up 2FA on a website, you'll usually see a QR code and a text-based secret key. You can copy this secret key and use it here. Always store backup codes in a secure place.