100% client-side · Free · No sign-up required

2FA Code Generator (Free)

Generate secure 2FA codes instantly using your Base32 secret key. A private, free, browser-based 2FA/TOTP generator compatible with Google Authenticator and Authy.

Use only A–Z and 2–7. Spaces are ignored.

Enter a secret to generate a 2FA code
Code refresh30s
Loading saved secrets...

Your secret stays in your browser—never uploaded or stored.

RFC 6238 · SHA-1 · 30-second interval · 6-digit authentication codes

About the 2FA Code Generator

About This Free 2FA & TOTP Generator

This free online 2FA (two-factor authentication) code generator uses the TOTP (Time-Based One-Time Password) standard. It works with Google Authenticator, Authy, Microsoft Authenticator, and all TOTP-based authentication systems.


Key Features

  • Fully client-side — no data sent to servers
  • RFC 6238 compliant TOTP algorithm
  • Automatic 30-second refresh
  • Visual countdown progress bar
  • One-tap copy to clipboard
  • Supports Base32 secret keys
  • Mobile-first, responsive layout

How It Works

Paste your Base32-encoded secret key from any service that uses 2FA. The generator creates a secure 6-digit TOTP code based on HMAC-SHA1 and the current Unix timestamp—just like standard authenticator apps.