Loading...

OTP Generator Tool

Generate and verify Time-based (TOTP) and HMAC-based (HOTP) One-Time Passwords.

The secret key used to generate the OTP.

Generated OTP Code

Previous ------
Next ------

------

30 seconds remaining

Authenticator QR Code

Scan this QR Code with Google Authenticator or Authy to add this account.

QR Code

Enter a valid Secret Key to generate QR Code
100% Client-Side Security Guarantee

This tool runs entirely within your browser. We explicitly commit that:

  • Your Secret Key and generated OTP codes are NEVER transmitted to our servers.
  • QR Codes are generated locally and NEVER sent to third-party APIs.
  • We do NOT collect, store, or track any information you enter here.

About OTP Generator

Generate and verify Time-based (TOTP) and HMAC-based (HOTP) One-Time Passwords

Generate time-based or counter-based one-time passwords from a Base32 secret and create an authenticator-compatible enrollment QR code.

Key features

  • Security task Generate time-based or counter-based one-time passwords from a Base32 secret and create an authenticator-compatible enrollment QR code.
  • Required material Enter or scan an otpauth secret, optionally including issuer and account name for the QR code.
  • Parameters that must match Choose TOTP or HOTP, HMAC algorithm, digit count, time period, or counter so they exactly match the verifying service.
  • Result and verification The page shows current, previous, and next codes where applicable, a countdown, and a local QR enrollment payload.

How to use OTP Generator

Follow this workflow to work with TOTP and HOTP codes safely and accurately.

  1. Provide the required material Enter or scan an otpauth secret, optionally including issuer and account name for the QR code.
  2. Match security parameters Choose TOTP or HOTP, HMAC algorithm, digit count, time period, or counter so they exactly match the verifying service.
  3. Run the operation Run the operation locally, keep sensitive TOTP and HOTP codes out of logs and screenshots, and never assume a successful transformation proves secure deployment.
  4. Verify before use The page shows current, previous, and next codes where applicable, a countdown, and a local QR enrollment payload.

Usage tips

  • Treat the secret and enrollment QR code like a password; anyone who obtains either can generate future codes.
  • Synchronize device time for TOTP and increment the counter consistently for HOTP.
  • Confirm algorithm, digits, and period because many services use SHA-1, six digits, and 30 seconds but not all do.

Frequently asked questions

Generate time-based or counter-based one-time passwords from a Base32 secret and create an authenticator-compatible enrollment QR code.
Enter or scan an otpauth secret, optionally including issuer and account name for the QR code.
Choose TOTP or HOTP, HMAC algorithm, digit count, time period, or counter so they exactly match the verifying service.
This is a diagnostic and enrollment aid, not a replacement for a protected authenticator. Avoid using a production secret on shared devices or in screenshots.