TOTP / OTP Generator

Crypto & Security Tools

Current Code

------

How to use this OTP generator

  1. Paste the Base32 secret key shown when you set up 2FA (often shown as text next to a QR code).
  2. A 6-digit code generates instantly and refreshes every 30 seconds.
  3. Use it exactly like you would a code from Google Authenticator or similar apps.

How does TOTP work?

Time-based One-Time Password combines a shared secret key with the current time (rounded to a 30-second window) using HMAC-SHA1, producing a 6-digit code that both you and the server can compute independently without any network communication.

Is it safe to paste my 2FA secret into a website?

Everything here runs locally in your browser and the secret is never transmitted anywhere, but as a general habit, only paste 2FA secrets into tools you trust and understand, this one included.

Why doesn't the code match my authenticator app?

This usually means your device's clock is out of sync, TOTP relies on both sides having accurate time within a small tolerance window, so check your system clock if codes consistently mismatch.