TOTP Generator
Generate live TOTP two-factor codes from a Base32 secret or otpauth URI with a countdown, like Google Authenticator. Supports 8 digits and SHA-256. Private.
Runs in your browser. Nothing is uploaded.
About TOTP Generator
TOTP Generator computes time-based one-time passwords (RFC 6238), the 6-digit codes shown by Google Authenticator, Authy and 1Password. Paste the Base32 secret a service shows under "can't scan the QR code?", or a full otpauth:// URI, and the current code appears with a countdown to the next one.
Digits, period and algorithm can be changed for services that use 8-digit codes, 60-second steps or SHA-256. The previous and next codes are shown too, which helps when testing a server that allows clock drift.
Codes are computed with the Web Crypto API in this tab, and the secret isn't stored. It is ideal for developers testing 2FA; for your real accounts, an authenticator app on a separate device is safer.
How to use TOTP Generator
- Open the tool above and add your file or text.
- Adjust the options to suit.
- Download or copy the result. Nothing is uploaded at any point.
Frequently asked questions
My code is rejected. Why?
TOTP depends on the clock. Make sure your device time is set automatically. Also check the digits, period and algorithm match the service.
Is this a replacement for my authenticator app?
It works the same way, but keeping your 2FA secret in a browser tab defeats the purpose of a second factor. Use it for testing and recovery, not daily logins.
Is TOTP Generator free and private?
Yes. TOTP Generator is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.