2FA / TOTP Authenticator Code Generator

Generate 6-digit Time-based One-Time Passwords (RFC 6238) from your secret keys locally in your browser with real-time countdown.

🔒 100% Private In-Browser TOTP: HMAC calculations run natively in your browser using the Web Crypto API. Secret keys are never transmitted or stored.
Current 2FA Auth Code30s remaining
--- ---
Active One-Time Password
------

Valid for the next 30 seconds (RFC 6238 SHA-1 6-digit OTP)

Paste the Base32 setup key provided by Google Authenticator, GitHub, Amazon, or your auth provider.

100% Private. Your data never leaves your device.
FreeToolsBox • Instant & Free

What is 2FA / TOTP Authenticator Code Generator?

The 2FA / TOTP Authenticator Generator computes standard 6-digit Time-based One-Time Password (TOTP) authentication codes from your Base32 secret key. Compatible with Google Authenticator, Authy, Microsoft Authenticator, and 1Password, it executes RFC 6238 cryptographic HMAC calculations directly in your browser with zero data storage.

Designed for accuracy, speed, and privacy, this tool runs entirely on your local device with zero network latency.

How to Use the 2FA / TOTP Authenticator Code Generator

  1. 1
    Enter your Base32 Secret Key (the alphanumeric setup key provided by your service during 2FA configuration).
  2. 2
    Optionally customize token parameters (standard default: 6 digits, 30-second time step, HMAC-SHA-1 algorithm).
  3. 3
    Watch the live 6-digit authentication token generate in real time alongside a synchronized countdown progress ring.
  4. 4
    Click the token to copy it instantly and paste into your two-factor login verification screen.

Formula & Calculation Logic

Implements the IETF RFC 6238 TOTP standard and RFC 4226 HOTP dynamic truncation algorithm to convert 30-second Unix time intervals and cryptographic shared secret keys into synchronized 6-digit tokens.

T = floor((Current_Epoch_Time - T0) / Time_Step) | TOTP = Truncate(HMAC-SHA-1(Secret, T)) mod 10^Digits

2FA / TOTP Authenticator Code Generator Frequently Asked Questions

Related Security & Auth

Explore more free tools in this category

View all in Security & Auth