free

TOTP Generatorfree

Generate Time-based One-Time Passwords (TOTP) for two-factor authentication.

Enter the base32 secret from your app's 2FA setup.

Privacy Notice

Your secret key never leaves your browser. All TOTP calculations are done locally using the Web Crypto API.

How to use TOTP Generator

1

Enter your Secret Key

Paste your Base32-encoded secret key into the 'Secret Key' input field. You can find this 32-character code in your authenticator app settings or account security page. Click the paste icon if copying from your clipboard.

2

Select Time Step and Digits

Choose your time step interval (default 30 seconds) and number of digits (typically 6). Most services like Google, GitHub, and Microsoft use 30-second intervals with 6-digit codes. Adjust these only if your service requires different settings.

3

Copy Your One-Time Password

View your generated 6-digit TOTP code in the output field. It automatically refreshes every 30 seconds. Click 'Copy Code' button to copy to clipboard, then paste it into your login verification prompt within the time remaining (shown in the countdown timer).

4

Complete Two-Factor Authentication

Enter the copied TOTP code in your service's 2FA verification field and click 'Verify' or 'Confirm'. The code will be valid for approximately 30 seconds before a new one generates. If the code expires, refresh and get a new one.

Frequently Asked Questions

Related Tools