Paste a secret, get the current code
Paste a Base32 secret key and this TOTP generator shows the current time-based one-time password with a live countdown to the next rotation. There is no account, no password and no storage: the code is computed in your browser with the WebCrypto API, and the secret is discarded the moment you reload or close the page.
A TOTP generator is a tool that turns a shared secret key into a short, time-based one-time password — the six- or eight-digit code your bank, email provider or VPN asks for after you type your password. The algorithm behind it is defined by RFC 6238 and is the same one used by Google Authenticator, Authy and every other authenticator app, so a code produced here is accepted wherever standard two-factor authentication is supported.
The difference is where the calculation happens. Instead of installing an app, you paste the secret key once, read the code off the screen and type it into the login prompt. Because the secret never leaves the page, this TOTP generator works on a borrowed laptop, a locked-down work machine or a phone you would rather not fill with apps.
Enter the Base32 secret from your 2FA setup screen — the string of letters and digits shown next to "manual entry", or the secret hidden inside the otpauth:// QR code. Spaces, dashes and lowercase letters are cleaned up automatically, so you can paste the key exactly as it appears. A valid secret produces the first code immediately.
Most services use 6 digits and a 30 second period, which are the defaults here. If your provider asks for 8 digits or a 60 second window, change the two selectors and the code updates instantly. The algorithm stays on SHA-1, which is what virtually every consumer service expects.
Click the digits or the Copy button to put the current code on your clipboard, then paste it into the login prompt before the countdown ring empties. When the ring reaches zero a fresh code is generated automatically and the old one stops working, so never reuse a code you copied more than a few seconds ago.
Every TOTP code is defined by three parameters, and they have to match what your provider expects. Get one wrong and the code looks perfectly valid, yet the server rejects it every time.
Any service that supports standard TOTP two-factor authentication accepts a code from this generator: GitHub, Google, Microsoft, Apple, AWS, Dropbox, Cloudflare, Slack, Discord, Steam and thousands more. If the setup screen shows a Base32 secret or an otpauth:// QR code, the codes are interchangeable with those from any other authenticator — the server has no way to tell where a code came from.
One exception is worth knowing. Services that rely on push notifications, SMS or a proprietary protocol — the default Google prompt, or a bank's own app — never expose a TOTP secret, so there is nothing to paste into a TOTP generator.
An authenticator app stores your secrets permanently and produces codes on demand; a TOTP generator keeps nothing and asks for the secret each time. That makes the generator the better choice for a one-off login on a machine you do not own, for testing a new 2FA setup, or for regaining access when your phone is lost, broken or out of battery.
The trade-off is convenience. Because this page stores nothing, it cannot remember your secrets between visits — you paste the secret again each time, or keep it somewhere safe. For everyday two-factor authentication, an encrypted vault that keeps the secrets on your own device is the safer and faster option.
The secret you paste is held in memory only. It is never written to the URL, to local storage or to a server, and it is discarded the instant you reload or close the tab. Code generation uses the WebCrypto API locally, so the secret is never transmitted and there is no copy to intercept in transit.
The honest caveat is attack surface. A web page is more exposed than a native app: a malicious browser extension or an injected third-party script could in principle read what is on the page. Keep your browser updated, keep extensions to a minimum, and prefer an offline vault for the secrets you rely on every day.