a11y.skipToMainContent
1

TOTP Generator

Generate TOTP (Time-based One-Time Password) codes from a Base32 secret. Compatible with Google Authenticator, Authy, and other 2FA apps.

Was this tool helpful?
Send output to:
Advertisement

How to use OTP Generator (TOTP)

  1. Enter your Base32 secret key (from your 2FA setup).
  2. Click Generate to compute the current TOTP code.
  3. Use the code within 30 seconds before it rotates.

What is OTP Generator (TOTP)?

TOTP (Time-based One-Time Password) is defined in RFC 6238 and is the standard algorithm behind two-factor authentication apps like Google Authenticator, Authy, and Microsoft Authenticator. It generates a 6-digit code that changes every 30 seconds.

This tool lets you generate TOTP codes from a Base32-encoded secret key, the same way your authenticator app does. Use it for testing 2FA integrations, verifying backup codes, or understanding how TOTP works.

Advertisement

FAQ

What is the secret key?
The secret key is the Base32-encoded string shown when you set up 2FA (often in the QR code URI). It's shared between you and the service.
Why does the code change?
TOTP codes are time-based — they change every 30 seconds. Both your device and the server compute the same code using the shared secret and current time.
Is my secret key safe?
Yes. All computation happens in your browser. The secret key is never sent to any server.

Related tools

Author

NK
Prof. Noah Klein"The Privacy Guardian"

Cybersecurity Researcher & Privacy Advocate

Professor Klein holds a PhD in Information Security and has testified before EU parliamentary committees on data privacy legislation. He builds encryption tools for journalists, audits web applications for security flaws, and believes that privacy is not a feature but a fundamental right. His research has been cited in Wired, Nature, and The Guardian, and he advises nonprofits on responsible data stewardship.

Advertisement