TOTP Code Generator
Paste a Base32 2FA setup key or otpauth:// URI to inspect live TOTP codes and remaining seconds. Computed 100% locally in your browser—never sent or stored.
What is this tool for?
Ideal for developers testing RFC 6238 2FA flows, verifying a backed-up Base32 secret key, or checking device clock alignment.
Not meant for long-term storage
Nothing entered here is persisted once you close the tab. Store real accounts in the Authenticator mobile app or zero-network browser extension for AES-256-GCM vault protection.
Generator FAQ
Is my secret key sent to a server when using this generator?
Never. Codes are computed locally in your browser with the built-in Web Crypto API, and our HTTP Content-Security-Policy sets connect-src 'none' so the page cannot transmit data over the network. Nothing is saved to cookies or storage. For long-term storage of real accounts, always use the dedicated Authenticator app.
What secret formats and TOTP parameters are supported?
You can paste any standard Base32 secret (spaces and hyphens are ignored) or a full otpauth://totp/... URI. It supports 6 or 8 digits, 30s or 60s periods, and SHA-1, SHA-256, or SHA-512.
Why does a website reject my generated code?
Almost every mismatch is due to system clock drift. Enable automatic time sync on your device and confirm the digits (usually 6), period (usually 30s), and hash algorithm (usually SHA-1).
Ready for a dedicated encrypted vault?
Get Authenticator on iOS, Android, Apple Watch, and Chrome/Edge.