This free OTP generator creates time-based one-time passwords from authenticator setup keys. It is useful for testing a TOTP setup, entering a manual 2FA key, or managing temporary MFA codes in the browser.
FAQ
What is TOTP?
TOTP means time-based one-time password. An authenticator app and a service share a Base32 secret, then use the current time to create a short code that usually changes every 30 seconds.
Is this 2FA tool local?
The TOTP calculation runs in your browser with Web Crypto. No account is required, and the secret is not submitted to a backend API for code generation. For URL shortcuts, prefer the #secret= fragment format.
Does this 2FA generator upload or store my setup key?
The generator does not upload the setup key to a backend API for TOTP calculation or save it in an account database. Typed keys remain in the current page state; avoid path or query secret URLs and use a trusted authenticator app for long-term storage.
How to use multiple generators?
The page starts with one generator. Click Add generator for each extra 2FA or MFA secret, optionally rename it, paste a Base32 secret or otpauth URI, then copy the code you need.
Can I open a URL with a 2FA setup code?
Yes. The recommended format is https://2fa.chatgpt.org.uk/#secret=YOUR_BASE32_SECRET. Path shortcuts and ?secret= query URLs also work.
Can this generate a ChatGPT authenticator app code?
Only when your ChatGPT account's own security settings provide a standard TOTP setup key or otpauth URI. Enable or manage MFA in the official account settings first. This independent tool cannot access the account, recover a missing secret, or approve a push request.
What does a 2FA token generator produce?
For TOTP-based accounts, it produces the current time-limited authenticator code from an existing shared setup key. It does not create SMS codes, recovery codes, push approvals, or a new account secret.
What TOTP parameters are supported?
The generator supports SHA-1, SHA-256, and SHA-512 algorithms, 6 or 8 digit codes, and a period from 10 to 120 seconds. otpauth links can set these options automatically.
Does this tool create a new 2FA secret key?
No. It converts an existing authenticator setup key into the current TOTP code. The 2FA secret is created by the website or app where you enable two-factor authentication.
Should I save my 2FA setup key?
Yes, store important setup keys carefully in a trusted authenticator app or password manager. Without the setup key or recovery codes, this tool cannot recreate access to an account.
Why is my 2FA code not accepted?
The most common causes are a mistyped Base32 secret, wrong device time, or mismatched TOTP options. Confirm the algorithm, digit count, and period shown by the service that provided the 2FA setup key.
Can I generate Google Authenticator or Microsoft Authenticator codes online?
Yes, when the account uses a standard TOTP setup key or otpauth://totp/ link. Paste the Base32 secret or otpauth URI and match the algorithm, digit count, and period shown by the account setup page.
Can this tool read an authenticator QR code image?
Yes in browsers that support local QR image detection. Choose a QR code screenshot or image, and the page reads the otpauth URI in the browser without uploading the image to a server.
What should I do before using this with a real account?
Confirm that you control the setup key, keep recovery codes in a safe place, and avoid sharing real secrets in URLs. For long-term storage, use a trusted authenticator app or password manager.
Is this OTP generator free?
Yes. The browser tool is free to use and does not require an account for TOTP code generation.
Can it generate any OTP code?
No. It generates TOTP authenticator codes from a shared setup secret. Other OTP delivery methods, such as SMS and email, are outside this tool.
Feature notes
- TOTP calculation uses Web Crypto in the page; the generator does not submit your setup key to a backend API or save it in an account database.
- The secret field keeps pasted text visible as entered, while the generator internally accepts spaces, hyphens, and padding.
- Each generator has its own 30-second TOTP countdown, optional name, paste, clear, delete, and one-click copy controls.
- The page starts with one generator by default; add more only when you manage multiple accounts, 2FA secrets, or MFA tokens.
- Supported inputs include otpauth:// URIs, Base32 secrets, URL fragments, path shortcuts, and query parameters.
URL secret shortcuts
The fragment format is recommended because content after # is not sent with HTTP requests. Path and query formats are also supported, and those pages are marked noindex to avoid indexing secret-bearing URLs.
https://2fa.chatgpt.org.uk/#secret=YOUR_BASE32_SECREThttps://2fa.chatgpt.org.uk/#YOUR_BASE32_SECREThttps://2fa.chatgpt.org.uk/YOUR_BASE32_SECREThttps://2fa.chatgpt.org.uk/?secret=YOUR_BASE32_SECRET
Do not share real 2FA secrets with other people. For temporary shortcuts, prefer the #secret= fragment URL.