Tool4SaaS

OTP Generator (TOTP 2FA)

Generate time-based one-time passwords (TOTP) for 2FA setup testing. Enter a Base32 secret to get rotating 30-second codes with countdown, fully offline.

Base32 (A–Z, 2–7). 30s step, 6 digits, HMAC-SHA1.

Current code — 30s left

------

Provisioning URI

More Developer Tools

About the author

Written and maintained by the Tool4SaaS team. Every tool runs locally in your browser and is tested in-house for accuracy. Last updated: .

Frequently asked questions

Use test secrets only; never enter production secrets on shared devices.

Yes, HMAC-SHA1 TOTP runs locally via WebCrypto.

Yes, it is free, works offline in your browser, and your data never leaves your device.

How to use OTP Generator (TOTP 2FA)

  1. Enter secret: Paste Base32 secret.
  2. Watch code: See live 6-digit code and countdown.
  3. Copy: Copy code or provisioning URI.