Tools Guides
Security Free No signup

TOTP Code Generator (2FA)

Generate TOTP 2FA codes from a Base32 secret — no app needed.

Loading tool…

About this tool

TOTP Code Generator implements RFC 6238 Time-based One-Time Passwords entirely in the browser using the Web Crypto API. Enter the Base32 secret from any 2FA QR code, and the tool shows the current 6-digit code with a live countdown to the next 30-second window, plus the upcoming code so you're never caught off guard. Add multiple accounts — they're stored in localStorage so they persist between visits. An educational panel explains how TOTP works under the hood. This is a backup / recovery tool: always keep your primary 2FA method safe.

How to use

  1. 1 Enter a name for your account and paste the Base32 secret.
  2. 2 Click Add Account — the current 6-digit code appears immediately.
  3. 3 Watch the countdown ring; the next code is shown so you can switch seamlessly.
  4. 4 Add more accounts with the + button.
  5. 5 Click the trash icon to remove an account.

Frequently Asked Questions

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}