TOTP Generator

TOTP Generator

Generate Time-based One-Time Passwords (RFC 6238) from a Base32 secret key.

Examples:
Typically found in authenticator app setup QR codes as the secret query parameter

Enter a Base32 secret key to generate codes

About TOTP

TOTP (Time-based One-Time Password) is an algorithm standardised in RFC 6238. It generates a short-lived code by computing HMAC of the current time window using a shared secret.

StandardRFC 6238
Default algorithmHMAC-SHA1
Default period30 seconds
Secret encodingBase32
Never share your real TOTP secrets with untrusted tools. Use test keys for demonstration purposes.

TOTP Generator

Generate Time-based One-Time Passwords (RFC 6238) from a Base32 secret key; shows current, previous, and next codes with a QR code and countdown timer; supports SHA-1, SHA-256, SHA-512 algorithms.

Common uses

  • Generate a TOTP code from a Base32 secret
  • Set up a QR code for an authenticator app
  • Create a new TOTP secret for user onboarding
  • Generate an HOTP code for a hardware token

Frequently asked questions

Can I use TOTP Generator to generate a TOTP code from a Base32 secret?

Yes. TOTP Generator can generate a TOTP code from a Base32 secret, directly in your browser.

Can I use TOTP Generator to set up a QR code for an authenticator app?

Yes. TOTP Generator can set up a QR code for an authenticator app, directly in your browser.

Can I use TOTP Generator to create a new TOTP secret for user onboarding?

Yes. TOTP Generator can create a new TOTP secret for user onboarding, directly in your browser.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.