TOTP / 2FA Code Generator
Generate time-based one-time passwords (RFC 6238) from a secret key. Compatible with Google Authenticator, Authy, and all standard TOTP apps.
Current Code
------
Expires in --s
How TOTP Works
TOTP (Time-Based One-Time Password, RFC 6238) generates a new 6-digit code every 30 seconds by combining your secret key with the current time using HMAC-SHA1. The server and your authenticator app share the same secret — they independently compute the same code at each time step.
Security Note
This tool runs entirely in your browser. Your secret key is never sent to any server. However, for production 2FA secrets, use your authenticator app — this tool is for testing and development purposes.