TOTP (RFC 6238)
Time-Based One-Time Password algorithm; an IETF standard that computes a one-time passcode from a shared secret key and the current Unix time.
Generate secure Time-based One-Time Passwords directly in your browser.
TOTP / 2FA Generator is a free, browser-based tool from UseToolSuite's Generator Tools collection. All processing happens locally on your device — your data is never uploaded to any server. Use the tool below, then scroll down for detailed documentation, frequently asked questions, and related resources.
Enter master password to decrypt 2FA secrets.
Unlock your vault to view or add 2FA codes.
Provide the foundational Base32 encoded secret seed string supplied by the authentication provider.
The Web Crypto API computes the HMAC-SHA1 signature combining the secret seed and the current Unix epoch time-step.
Extract the resulting 6-digit dynamic authentication token before the 30-second temporal window expires.
Click to rate
Sorry it didn't meet your expectations. We're always looking to make these tools better. What was missing or broken?
Open GitHub IssueEssential terms and definitions related to TOTP / 2FA Generator.
Time-Based One-Time Password algorithm; an IETF standard that computes a one-time passcode from a shared secret key and the current Unix time.
A specific type of message authentication code (MAC) involving a cryptographic hash function and a secret cryptographic key, utilized as the core validation engine for TOTP tokens.
A numeral system utilizing 32 characters (A-Z, 2-7) to represent binary data in a human-readable format, heavily utilized in 2FA shared secrets to eliminate visually ambiguous characters.
No. To maintain absolute zero network footprint, the generator strictly derives the temporal window from your local hardware clock. If your device clock drifts significantly from true UTC, generated tokens will be systematically rejected by the target server.
The secret is evaluated ephemerally in RAM using the Web Crypto API. It is never transmitted over the network and is deliberately excluded from LocalStorage or IndexedDB to prevent unauthorized extraction.
Standard TOTP algorithms (RFC 6238) strictly require a Base32 encoded secret key (comprising A-Z and 2-7). Characters like 1, 8, 9, or zero are inherently invalid within the Base32 matrix and will trigger a padding or decoding fault.
Common errors developers encounter and how to resolve them.
Tokens Constantly Rejected by Target Authentication Server This is universally caused by local time drift. The TOTP algorithm requires the client and server clocks to match within a ~30-second tolerance. Sync your operating system clock with an authoritative NTP server.
Base32 Decoding Exception (Invalid Character) The provided secret string contains invalid characters or improper padding boundaries. Ensure you have not accidentally copied trailing whitespace or confused an "O" (letter) with a "0" (number).
In-depth articles covering the concepts behind TOTP / 2FA Generator.