TOTP Generator
Generate Time-based One-Time Passwords (RFC 6238) locally — a developer tool for testing 2FA implementations. Nothing leaves your browser.
Base32 Secret Key
Enter a Base32-encoded secret key above to generate codes.
How it works
1
Enter your Base32 secret
Paste the secret key from the 2FA setup QR code (shown as text like
Paste the secret key from the 2FA setup QR code (shown as text like
JBSWY3DPEHPK3PXP).
2
RFC 6238 TOTP algorithm
The counter is
The counter is
floor(unix_time / 30). HMAC-SHA1 is computed using the Web Crypto API, then dynamic truncation yields a 6-digit code.
3
Auto-refresh every 30 seconds
The circular countdown shows time remaining. The code refreshes automatically and previous/next codes are shown for clock-skew tolerance.
The circular countdown shows time remaining. The code refreshes automatically and previous/next codes are shown for clock-skew tolerance.
4
100% local & private
All computation uses the browser's SubtleCrypto API. Your secret key never leaves your device.
All computation uses the browser's SubtleCrypto API. Your secret key never leaves your device.