Back to Utilities

TOTP Generator

Generate and verify time-based one-time passwords for two-factor authentication

------
30s

QR Code for Authenticator Apps

Scan with Google Authenticator, Authy, or any TOTP app

otpauth://totp/...

Enter TOTP Code to Verify

Note: Verification allows a window of ±1 period to account for clock drift between devices.
Supported URI Format:
otpauth://totp/Issuer:account?secret=BASE32SECRET&issuer=Issuer&digits=6&period=30&algorithm=SHA1

Privacy & Security

About TOTP Generator

Time-based One-Time Password (TOTP) is a widely used algorithm for two-factor authentication. It generates temporary codes that change every 30 seconds (by default), providing an additional layer of security beyond passwords. This tool allows you to generate TOTP secrets, create QR codes for authenticator apps, and verify TOTP codes.

How TOTP Works

TOTP combines a shared secret key with the current time to generate a unique code. The algorithm uses HMAC (Hash-based Message Authentication Code) with the time counter as input. Both the server and authenticator app share the same secret and algorithm, so they generate identical codes at any given time.

Key Components

Compatible Apps

Security Best Practices