TOTP Generator

Generate Time-based One-Time Passwords

Secret Key

Enter or generate a Base32 secret

TOTP Code

Current one-time password

------
Refreshes in 30s

About TOTP

TOTP (Time-based One-Time Password, RFC 6238) generates short-lived codes from a shared secret and current time. Codes change every 30 seconds and are widely used for two-factor authentication (2FA).

Generate TOTP codes for two-factor authentication testing. Enter a Base32 secret key and see the current 6-digit code with a countdown timer. Useful for debugging 2FA implementations.

Key Features

  • Base32 secret key input
  • Real-time 6-digit code generation
  • 30-second countdown timer
  • Random secret generator
  • Visual progress bar

How to TOTP Generator — 2FA Code Generator

  1. 1

    Enter or generate secret

    Paste a Base32 secret or generate a random one.

  2. 2

    View TOTP code

    The current 6-digit code updates every 30 seconds.

  3. 3

    Copy code

    Copy the current code to use it.

Common Use Cases

  • Testing 2FA implementations
  • Verifying authenticator app setup
  • Debugging TOTP authentication issues
  • Generating backup codes during development

Frequently Asked Questions

What is TOTP?
TOTP (RFC 6238) generates time-based codes from a shared secret. Codes change every 30 seconds and are used by Google Authenticator, Authy, and similar apps.

Related Developer Tools