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
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”.
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.
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.
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
- Keep it in a password manager (Bitwarden, 1Password, etc.) in the same entry as the account.
- Never send it by email or chat, and never post a screenshot of the QR code.
- Anyone with the key can generate your codes, so treat it like a password.
Guides
- How to turn on Instagram 2FA with an authentication app
- How to set up Facebook 2FA with an authenticator app
- How to transfer Google Authenticator to a new phone
- 2FA code not working? Here's how to fix it
- Lost your phone with the authenticator app? What to do
- How to set up Amazon Two-Step Verification with an authenticator app
- How to turn on PayPal 2-step verification with an authenticator app
- How to set up Coinbase 2FA with an authenticator app
- How to enable Discord 2FA with an authenticator app
- How to set up X (Twitter) 2FA with an authentication app