Skip to content
ToolsLeb ToolsLeb

TOTP Secret Key Generator

Generate a TOTP secret key and QR code for setting up two-factor authentication apps.

Shown under the entry in the authenticator app — typically your email or username.

Share on Social Media:

Generate a random TOTP (Time-based One-Time Password) secret key for a given account name and issuer, along with a scannable QR code and an otpauth:// setup URI. Scan the QR code with an authenticator app (such as Google Authenticator, Authy, or 1Password) to start generating 30-second one-time codes for two-factor authentication.

Frequently Asked Questions

Scan the QR code with an authenticator app, or manually enter the secret key and the account/issuer details, to link that app so it can generate matching 30-second one-time codes.

No — this tool generates a fresh, independent secret for testing or demonstration purposes. To secure a real account, you must use the secret and QR code provided directly by that account's own 2FA setup page.

Time-based One-Time Password — a code that changes automatically every 30 seconds, generated from a shared secret and the current time, used as a second authentication factor.

The short 30-second window limits how long a captured or leaked code remains useful to an attacker, which is central to why TOTP is more secure than a static password alone.