BaseToolbox LogoBaseToolbox
Blog

© 2025 BaseToolbox. All rights reserved.

Privacy PolicyAboutContact Us
  1. Home
  2. /
  3. 2FA Code Generator

2FA Authenticator - TOTP Code Generator

Generate secure TOTP codes for two-factor authentication. Compatible with Google Authenticator, Microsoft Authenticator, and other 2FA apps.

Secret Key, otpauth URL, or QR Code
You can also paste a QR screenshot directly on this page.
Current Code
------
Time Remaining:
30s

How to Use

  1. Enter a Base32 key, paste an otpauth URL, or upload a QR image
  2. The 6-digit code will be generated automatically
  3. Code refreshes every 30 seconds

Features

  • Standard TOTP Algorithm (RFC 6238)
  • Compatible with all major authenticator apps
  • 100% client-side - your secret never leaves your device

What is 2FA?

Two-Factor Authentication (2FA) adds an extra layer of security to your accounts by requiring a time-based one-time password (TOTP) in addition to your regular password.

2FA and TOTP Generator FAQ

Quick answers for people using this online TOTP generator with Base32 secrets, otpauth URLs, QR code images, and authenticator apps.

Is this a Google Authenticator code generator?

Yes. This tool generates standard TOTP codes that work with Google Authenticator-style 2FA setups. Paste the Base32 secret, an otpauth:// URL, or import the QR code image to generate the same time-based code in your browser.

Can I generate a TOTP code from a Base32 secret?

Yes. Enter the Base32 secret key shown during 2FA setup, including keys with spaces or lowercase letters. The generator normalizes the secret and creates a 6-digit or 8-digit authentication code based on the TOTP settings.

What is an otpauth:// URL?

An otpauth:// URL stores the same information found in many 2FA QR codes: the secret, issuer, account name, digit length, algorithm, and refresh period. When you paste one here, the page parses those settings automatically.

Can I import a 2FA QR code image?

Yes. Upload a QR code image or paste a QR screenshot directly on the page. The QR decoder runs in your browser and extracts the otpauth URL locally, so your 2FA secret is not sent to a server.

Does this online TOTP generator upload my secret?

No. The 2FA secret, otpauth URL, and QR image are processed locally in your browser. BaseToolbox does not store the secret, sync it, or send it to an API.

Why does the 2FA code change every 30 seconds?

Most TOTP codes follow RFC 6238 and use a 30-second time window. The code is calculated from your shared secret and the current time, then refreshes when the next period starts.

Does it work with Microsoft Authenticator, Authy, 1Password, or Bitwarden?

Yes for standard TOTP accounts. If the service gives you a Base32 secret or an otpauth:// QR code, the generated code should match common authenticator apps such as Microsoft Authenticator, Authy, 1Password, Bitwarden, and Google Authenticator.

What should I do if the secret key is invalid?

Check that you copied the full Base32 secret or the complete otpauth:// URL. Some setup screens hide the manual key behind a link such as "can't scan the QR code". If the QR code belongs to a proprietary push-login flow instead of TOTP, it may not contain a usable secret.