Generate TOTP 2FA codes — supports Google Authenticator and more
Enter a secret key to generate 2FA codes
Free online 2FA code generator. Generate TOTP two-factor authentication codes compatible with Google Authenticator, Authy, Microsoft Authenticator, and all TOTP-based apps. Enter your secret key to get live 6-digit codes that refresh every 30 seconds. Also generate new secret keys and OTP Auth URLs. 100% client-side — your secret key never leaves your browser.
Two-factor authentication (2FA) adds a second layer of security to your accounts. Even if someone knows your password, they can't log in without the time-based code from your authenticator app. TOTP (Time-based One-Time Password) is the most common 2FA method, used by Google, Facebook, GitHub, and thousands of other services. This tool generates TOTP codes from your secret key — useful when you've lost access to your authenticator app or need to generate codes on a different device.
TOTP (Time-based One-Time Password) generates a 6-digit code by combining your secret key with the current time (in 30-second intervals) using HMAC-SHA1. The same algorithm runs on your authenticator app and the server, so they generate the same code at the same time. The code changes every 30 seconds, making it impossible to reuse. This tool implements RFC 6238 — the same standard used by Google Authenticator.
Yes, this tool uses the same TOTP algorithm (RFC 6238) as Google Authenticator, Authy, and other authenticator apps.
Yes, all processing happens in your browser. Your secret key is never sent to any server.
TOTP codes are time-based, so your device clock must be accurate. If the code fails, check that your system time is synced correctly. Also ensure you're using the correct secret key.
A TOTP secret key is a Base32-encoded string provided by the service when you set up 2FA. It's usually shown as a QR code or a text string you can copy manually.
Yes. If you have the secret key saved, you can use this tool to generate codes whenever you don't have access to your phone. Always store your secret keys securely.
Chúng tôi không chỉ thiết kế website, mà còn giúp doanh nghiệp xây dựng thương hiệu số mạnh mẽ. Cung cấp dịch vụ thiết kế website trọn gói từ thiết kế đến tối ưu SEO. Hãy liên hệ ngay với Tấn Phát Digital để cùng tạo nên những giải pháp công nghệ đột phá, hiệu quả và bền vững cho doanh nghiệp của bạn tại Hồ Chí Minh.