OTP Generator
Generate time-based one-time passwords (TOTP).
How to Use
- Enter your TOTP secret key in base32 format (e.g. JBSWY3DPEHPK3PXP) — this is the same key you would scan as a QR code in an authenticator app.
- View the current 6-digit OTP code for the active 30-second time window along with the remaining validity countdown.
- Copy the OTP to test your authenticator integration or verify TOTP implementation logic.
Frequently Asked Questions
- What is TOTP?
- TOTP (Time-based One-Time Password) is a standard algorithm (RFC 6238) that generates a short-lived code from a shared secret and the current time. It is used by apps like Google Authenticator and Authy.
- How long is an OTP valid?
- Each OTP is valid for 30 seconds. After the window expires a new code is generated from the next time step.
- How do I generate a base32 secret key?
- Most authentication libraries and services generate the base32 secret for you. For testing, you can use any valid base32 string — the key must match exactly on both sides.