TOTP / 2FA Authenticator Simulator
Generate time-based one-time password (TOTP) 2FA verification codes from secrets or QR codes
This free online totp / 2fa authenticator simulator runs in your browser and is part of our Cryptography collection.
TOTP / 2FA Authenticator Simulator
Generate and test RFC 6238 Time-based One-Time Password (TOTP) codes for two-factor authentication from Base32 secret keys.
Secret Key Configuration
Verify Code / Clock Window
How RFC 6238 TOTP Works
- Time-step counter:
T = floor(current_unix_time / 30). - HMAC calculation: Computes
HMAC-SHA1(Secret, T). - Dynamic Truncation: Extracts an offset index from the last nibble of the hash to extract a 31-bit integer, then formats modulo 10^digits.
- Compatible with Google Authenticator, Authy, 1Password, and Bitwarden.
How to Use the Online TOTP / 2FA Authenticator Simulator
Paste the Base32 secret key provided by your service (e.g. Google, GitHub, AWS, Cloudflare), or click "🎲 Random" to test.
Choose SHA-1 (standard for Google Authenticator), SHA-256, or SHA-512, and select 6-digit or 8-digit output.
Observe the current 6-digit passcode and watch the animated 30-second countdown timer bar.
Click "📋 Copy" to paste the active 2FA code into your login screen before the 30-second period expires.
Frequently Asked Questions
Common questions about using this free online totp / 2fa authenticator simulator.
How does a TOTP code stay synchronized without an internet connection? ▾
Why are most 2FA codes 6 digits and valid for 30 seconds? ▾
What causes a TOTP code to be rejected during login? ▾
Can I use this simulator as a backup 2FA authenticator? ▾
More Cryptography
Explore related tools in the same category to solve adjacent tasks faster.