๐Ÿ” TOTP Secret Key Generator

Generates a Base32 secret key (RFC 4648) from 20 bytes of cryptographic randomness.

Generating...

Generate a random Base32-encoded secret key for setting up two-factor authentication (2FA) with a TOTP authenticator app like Google Authenticator. Also generates an otpauth:// URI in the format used to feed the secret into an authenticator app.

How to use

  1. Enter a service name (issuer) and account name (optional).
  2. The generated secret key and otpauth:// URI are shown automatically.
  3. Click "Regenerate" to generate a new secret key.

FAQ

Is the generated secret key secure?

Yes. It's generated using the browser's Web Crypto API (a cryptographically secure random number generator), producing 20 random bytes (160 bits) that are then Base32-encoded.

What is the otpauth:// URI?

It's a standard URI format that bundles TOTP/HOTP setup details โ€” secret key, issuer name, account name โ€” into a single string. It's used to feed into authenticator apps, often via a QR code.

Is anything generated here sent anywhere?

No. All processing happens entirely in your browser โ€” the generated secret key is never sent to a server.