Get2FA

Get your 2FA code from a secret key

Paste a 2FA secret, an otpauth:// link or a QR code and get the same 6-digit code your authenticator app shows. Fast, free and computed only on your device.

Your key never leaves this deviceMany keys at onceWorks offline
Tip: paste or drop a screenshot of a QR code anywhere on the page.
Advanced settings

How to get your 2FA code

  1. 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.
  2. Paste it abovePaste the key, the otpauth:// link, or an image of the QR code. Spaces and lowercase letters are fine.
  3. 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

Get2FATypical 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
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.

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.