OTP Code Generator (TOTP)

Generate Time-based One-Time Passwords (TOTP) using a shared secret key.

Configuration

About TOTP (Time-based One-Time Password)

TOTP is an algorithm that computes a one-time password from a shared secret key and the current time. It is commonly used as a second factor in authentication (2FA/MFA). The secret key must be shared between the server and the client (e.g., your authenticator app or this tool).

  • Secret Key: Typically provided in Base32 format when setting up 2FA.
  • Digits: The length of the generated OTP, usually 6 or 8.
  • Period: The time interval (in seconds) for which an OTP is valid, commonly 30 seconds.
  • Algorithm: The hashing algorithm used, typically SHA1, SHA256, or SHA512.

This tool generates TOTP codes locally in your browser. Ensure your device's time is accurately synchronized for correct OTP generation.