How to get your 2FA code
- Find your secret keyWhen you turn on 2FA, the site shows a QR code and a text key (often under “Can't scan it?”). Save that key.
- Paste it abovePaste the key, the otpauth:// link, or an image of the QR code. Spaces and lowercase letters are fine.
- Copy the codeClick the code to copy it and enter it before the ring runs out. A new code appears every 30 seconds.
Why Get2FA
Private by designCodes are calculated with your browser's built-in Web Crypto. No key, code or account name is ever uploaded, logged or stored.
Bulk modePaste hundreds of keys or account lines such as login|password|SECRET. We find the key in each line and give you a ready-to-copy list.
Current and next codeSee how many seconds are left and the code that comes next, so you never type one that is about to expire.
QR codes and otpauth linksDrop or paste a QR screenshot, or paste an otpauth:// link. Issuer, account, digits and period are read automatically.
Fast links that stay privateBookmark get2fa.online/#YOURKEY. The part after # stays in your browser; it is never sent to our server.
Works everywherePhone or desktop, light or dark mode, and it keeps working offline once loaded. SHA-1, SHA-256, SHA-512, 6 or 8 digits.
How we compare
| Get2FA | Typical 2FA sites |
|---|
| Key processed only on your device | ✓ | Often unclear |
| Key kept out of the URL sent to the server | ✓ | Often in the path (/tok/KEY) |
| Many keys at once | ✓ | Sometimes |
| Shows next code and time left | ✓ | Rarely |
| QR image and otpauth:// support | ✓ | Rarely |
| SHA-256/512, 8 digits, 60 s | ✓ | Rarely |
| Reads Google Authenticator export QR | ✓ | No |
| Works offline | ✓ | No |
Is it safe to paste a 2FA key into a website?
A 2FA secret key is as sensitive as a password: anyone who has it can generate your codes. That's why Get2FA does all the math inside your browser with the standard algorithm (RFC 6238) and never sends the key anywhere. You can check it yourself: open your browser's developer tools, go to the Network tab and paste a key. No request contains it.
Still, a website is not a replacement for an authenticator app. For accounts you use every day, keep the key in an app such as Google Authenticator, Microsoft Authenticator, 2FAS, Aegis or a password manager, and use Get2FA when you're on another device, setting up a new phone, or managing many accounts.
Where to find your 2FA secret key
Google
Google Account → Security → 2-Step Verification → Authenticator → Set up → “Can't scan it?”.
Facebook
Accounts Center → Password and security → Two-factor authentication → Authentication app. The key is shown below the QR code.
Instagram
Settings → Accounts Center → Password and security → Two-factor authentication → Authentication app → “Copy key”.
Microsoft
Security → Advanced security options → Add a sign-in method → Authenticator app → “I want to use a different app” → “Can't scan the image?”.
Discord, X/Twitter, Amazon, GitHub
When you set up an authenticator app, look for “enter key manually” or “can't scan the code”. That text is your secret key.
2FA guides
What is 2FA (two-factor authentication)?What 2FA means, how two-factor authentication works, the different types (SMS, authenticator app, security key) and why it protects your accounts.Read guide →Where to find your 2FA secret keyLearn what a 2FA secret key is and exactly where to find it when you turn on two-factor authentication on Google, Facebook, Instagram, Microsoft and other sites.Read guide →How to turn on Instagram 2FA with an authentication appStep-by-step guide to turning on Instagram two-factor authentication with an authenticator app, copying the setup key and using it on more than one device.Read guide →How to set up Facebook 2FA with an authenticator appTurn on Facebook two-factor authentication with an authenticator app on a computer or phone, copy the key, and save the 10 recovery codes.Read guide →How to transfer Google Authenticator to a new phoneMove Google Authenticator codes to a new phone with cloud sync or the Export accounts QR code, and extract the secret keys from the export QR with Get2FA.Read guide →2FA code not working? Here's how to fix itYour authenticator code keeps being rejected? Learn the most common causes, from a wrong device clock to the wrong key, and how to fix each one.Read guide →Lost your phone with the authenticator app? What to doLost, stolen or reset phone with your 2FA codes? Here's how to get back into your accounts with saved keys, backup codes, cloud sync or account recovery.Read guide →“Enter a 6-digit login code generated by an authentication app”: what to doFacebook or Instagram asks for a 6-digit login code generated by an authentication app? Here's where that code comes from and how to get it, even without your old phone.Read guide →Fortnite 2FA: how to enable it at fortnite.com/2faHow to turn on two-factor authentication for Fortnite at fortnite.com/2fa, on PC, PlayStation, Xbox or Switch, and the rewards you get: the Boogie Down emote and Save the World items.Read guide →What is TOTP? (and TOTP vs HOTP)TOTP meaning explained: how time-based one-time passwords are generated from a secret key and the clock, TOTP vs HOTP, and how to generate a TOTP code.Read guide →Microsoft Authenticator not showing a code? Here's the fixMicrosoft Authenticator only shows approval requests or no 6-digit code? Here's where to find the one-time code and how to fix missing or wrong codes.Read guide →How to set up Amazon Two-Step Verification with an authenticator appTurn on Amazon Two-Step Verification (2SV) with an authenticator app instead of text messages, step by step, and keep a backup so you never get locked out.Read guide →How to turn on PayPal 2-step verification with an authenticator appSet up PayPal 2-step verification with Google Authenticator, Microsoft Authenticator or any TOTP app. Web browser steps, tips and what to do if you lose your phone.Read guide →How to set up Coinbase 2FA with an authenticator appAdd an authenticator app to Coinbase 2-step verification from a web browser, understand Coinbase's other 2FA methods, and keep a safe backup of your key.Read guide →How to enable Discord 2FA with an authenticator appTurn on Discord two-factor authentication on desktop or mobile, scan the QR code or enter the key manually, and save your backup codes so you never lose your account.Read guide →How to set up X (Twitter) 2FA with an authentication appProtect your X (Twitter) account with an authentication app instead of SMS. Step-by-step setup on web and mobile, plus backup codes and recovery tips.Read guide →How to set up TikTok 2-step verification with an authenticator appTurn on TikTok 2-step verification with an authenticator app in Settings and privacy, save the setup key and avoid getting locked out.Read guide →How to use any authenticator app with your Microsoft accountSet up two-step verification on a personal Microsoft account (Outlook, Xbox, OneDrive) with Google Authenticator or any TOTP app instead of Microsoft Authenticator.Read guide →How to set up GitHub 2FA with a TOTP appConfigure GitHub two-factor authentication with any TOTP app, find the setup key, save recovery codes and add the same key to more than one device.Read guide →How to enable Binance 2FA with an authenticator appTurn on Binance two-factor authentication with Google Authenticator or any TOTP app, save the setup key and fix codes that don't work.Read guide →
Frequently asked questions
Is Get2FA free?
Yes. It's free and needs no sign-up. The site is supported by ads, which never appear inside the generator.
Will the code be the same as in Google Authenticator?
Yes. Every app that follows the TOTP standard gives the same code for the same key at the same time, including Google Authenticator, Microsoft Authenticator, Authy and 2FAS.
Why is my code not accepted?
The most common reason is a wrong device clock. TOTP codes depend on the exact time, so turn on automatic date and time on your device. Also check that you copied the full key and that the site doesn't use 8 digits or a 60-second period (see Advanced settings).
Do you save my keys?
No. Keys exist only in this tab's memory and disappear when you close it. We don't use cookies or storage for keys; only your theme and auto-copy choice are remembered on your device.
Can I get codes for many accounts at once?
Yes. Paste one key per line, or full lines like login|password|SECRET. You'll get a code for each one plus a list in the format line|code that you can copy at once.
What is a 2FA secret key?
It's a random code, usually 16 to 32 letters A–Z and numbers 2–7 (Base32), that a website shares with your authenticator when you turn on two-factor authentication. The QR code is just this key in picture form.
I lost my phone. Can Get2FA recover my codes?
Only if you saved the secret key. Get2FA can't read keys from another device. If you don't have the key, use the backup codes the service gave you or its account recovery process.