Skip to main content
1

TOTP Generator

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

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

Advertisement