TOTP Code Generator (Google Authenticator)
Generate the current 6-digit TOTP code from a base32 secret. Same algorithm as Google Authenticator. Live countdown. Local-only.
Your secret never leaves your browser. Paste any base32-encoded secret from Authy / Google Authenticator setup screens.
About TOTP Code Generator (Google Authenticator)
The TOTP Code Generator produces the current six-digit two-factor code from a base32 secret. Paste the secret shown when you set up an account, often the text behind a QR code, and the tool computes the code using the same time-based algorithm as Google Authenticator and similar apps. A live countdown shows how many seconds remain before the code rotates.
The secret stays in your browser and is never uploaded. The tool is useful for testing a 2FA setup or recovering access when your phone is unavailable, though for everyday use a dedicated authenticator app keeps the secret stored more securely.
Frequently asked questions
- What secret format is needed?
- A base32-encoded secret, the same string an authenticator app reads from a setup QR code.
- Why does the code change every 30 seconds?
- TOTP codes are derived from the current time in 30-second windows, so a new code appears as each window passes.
- Is it safe to enter my 2FA secret?
- The calculation runs locally and nothing is sent out, but treat the secret as sensitive and avoid using shared computers.