Get2FA

← All guides

Where to find your 2FA secret key

The secret key is the text version of the QR code you scan when you turn on two-factor authentication. Save it once and you can rebuild your codes on any device.

Updated 2026-11-19

Have your secret key? Get your code nowOpen the 2FA generator

What is a 2FA secret key?

When you choose “authentication app” as your 2FA method, the site creates a random secret and shares it with your app. The app combines that secret with the current time to make a new 6-digit code every 30 seconds. This method is called TOTP (time-based one-time password).

The secret is usually shown in two ways: as a QR code and as a text key of 16 to 32 characters, made of letters A–Z and numbers 2–7, for example JBSW Y3DP EHPK 3PXP. Both contain exactly the same information.

Where each site shows the key

Most sites hide the text key behind a link under the QR code. Look for words like “Can't scan it?”, “Enter key manually”, “Copy key” or “Setup key”.

Google

Open your Google Account, go to Security → 2-Step Verification → Authenticator and choose to set up an authenticator app. Under the QR code, tap “Can't scan it?” to see the key.

Facebook

Go to Settings & privacy → Settings → Accounts Center → Password and security → Two-factor authentication, pick your account and choose Authentication app. The key appears with a Copy key button next to the QR code.

Instagram

In the app, open your profile, tap the menu, then Accounts Center → Password and security → Two-factor authentication, select your account and choose Authentication app. Tap Copy key. Instagram only lets you turn on the authentication app method from the Android or iPhone app.

Microsoft

When adding an authenticator app, choose to use a different app and then “Can't scan the image?”. Microsoft shows the secret code on that page.

Other sites (Discord, X, Amazon, GitHub…)

The flow is almost always the same: choose the authenticator app option, then look for the link that lets you enter the key manually.

Already set up 2FA without saving the key?

Most sites never show the key again. If you need it, turn the authenticator method off and on again (or use “add another device”), and this time save the new key. Remember to update your authenticator app too, because the old key stops working.

How to store the key safely

Have your secret key? Get your code nowOpen the 2FA generator

Guides