How to generate a 2FA code from a secret key
Choose single or bulk mode, enter a Base32 secret key, then generate the code. Codes refresh automatically every 30 seconds.
Fast · Private · Free
Generate one or multiple TOTP codes from secret keys in your browser.
One per line: Name | Secret key. A secret by itself also works.
Secrets are processed on this device and never sent to the server.
Use Get2FA.dev to generate a current 6-digit TOTP code from a compatible Base32 secret key. The calculator supports a single account or up to 100 secrets in bulk, with code generation performed locally in your browser.
Choose single or bulk mode, enter a Base32 secret key, then generate the code. Codes refresh automatically every 30 seconds.
In bulk mode, enter one secret per line. Optionally add an account name before the secret and separate both values with a vertical bar.
Codes are generated locally with the Web Crypto API. Secrets and OTP codes are never sent to DeepL or any other API.
Two-factor authentication (2FA) asks for two different forms of proof before allowing access. A common login combines something you know, such as a password, with something you have, such as an authenticator capable of generating a temporary code.
Learn how 2FA works →OTP means one-time password: a verification value intended for a single login or short period. OTP is a broad category that includes codes delivered by SMS or email as well as codes created by an authenticator. TOTP is the time-based type generated by this tool.
Read the TOTP guide →A TOTP authenticator and the account provider share a private setup secret. Both combine that secret with the current time window to calculate the same short code. Standard codes commonly contain six digits and refresh every 30 seconds.
Enter the Base32 manual setup key supplied when you enable an authenticator app. It usually contains letters A–Z and digits 2–7. Do not enter your account password, an SMS code, or a recovery code.
How to find your 2FA setup key →Use single mode for one account. Choose bulk mode when you are authorized to manage several secrets and want all current codes in one view.
Paste the compatible Base32 secret exactly as issued. In bulk mode, place one secret on each line and optionally add an account name before a vertical bar.
Select Generate, then copy the six-digit result early in its countdown. Codes update automatically when the next time window begins.
An online TOTP calculator can help with authorized integration testing, temporary recovery workflows, verifying a manual setup key, or generating several current codes during system administration. It is not a permanent credential vault or a way to bypass account security.
A TOTP secret can generate future codes, so protect it like a password. Use a trusted device and browser, verify the website address, clear the form after use, and never share the key, QR code, password, live OTP, or recovery code with another person.
Read our privacy approach →This generator is designed for standard Base32 TOTP secrets using the common 6-digit, 30-second flow. A service using HOTP, custom algorithms, eight digits, a different period, push approval, SMS, email OTP, passkeys, or hardware keys may require another method.
Check the secret and make sure your device clock is synchronized correctly.
No. Data only exists in the current tab memory and disappears when the page is reloaded.
OTP is the general category of one-time passwords. TOTP is a specific OTP method that derives a changing code from a shared secret and the current time.
Look in the account provider’s Security or Two-factor authentication settings while adding an authenticator app. Choose the manual setup option beside the QR code.
Yes. Bulk mode accepts up to 100 authorized Base32 secrets, one per line, and refreshes their current TOTP codes together.
No. A TOTP code changes with time, while a backup or recovery code is issued separately by the account provider and is often valid only once.