Skip to main content
Calctrove Calctrove

TOTP Secret Generator

TOTP Secret Generator

Generate Base32 secrets and build matching otpauth URLs for authenticator app setup tests.

Settings

Flow
  • Generate cryptographically random Base32 characters.
  • Use issuer/account metadata with OTP options.
  • Build otpauth URL for QR or manual authenticator setup.
Example

Worked example: generate secret and URL

  1. 1 Choose secret length 32 and issuer/account values.
  2. 2 Generate secret string with Base32 characters.
  3. 3 Generate otpauth URL from current settings.

You get both a reusable secret and an authenticator-compatible otpauth URL.

How
  1. Set desired secret length and account metadata.
  2. Generate secret, then generate otpauth URL.
  3. Copy secret or URL into your test environment.
Cases
  • Provision test 2FA accounts in QA environments.
  • Seed integration tests with known OTP secret data.
  • Create otpauth links for internal onboarding demos.
Avoid
  • Using extremely short secrets that reduce entropy.
  • Forgetting issuer/account metadata when sharing test setup.
  • Pasting malformed secrets with unsupported characters.
FAQ
Can I choose secret length?

Yes, the generator supports configurable secret length within safe bounds.

Does this also generate otpauth links?

Yes, you can build otpauth URLs directly from generated secrets.

Is this safe for production accounts?

This tool is intended for dev/test workflows; avoid pasting production secrets into browser tools.

Switch
Switch12