On this page
Google calls its two-factor system 2-Step Verification, and one of the second steps it accepts is a code from an authenticator app. When you add that method, Google can show a text key behind its Can't scan it? link. The generator above turns that key into the same 6-digit code Google Authenticator would display.
Your Google account usually unlocks Gmail, YouTube, Drive and Android, so losing access hurts. Using this page lets you read a code on a laptop when your phone is elsewhere, while the key stays in your browser and is never transmitted. Pair it with backup codes and a second sign-in method so one lost device never locks you out.
How to find your Google secret key
- Go to your Google Account (myaccount.google.com) and open Security. Find How you sign in to Google and select 2-Step Verification.
- If 2-Step Verification is not on yet, Google may ask you to add a phone number or passkey first. Follow those prompts.
- Open the Authenticator (or Authenticator app) option and choose to set up or change it.
- When the QR code appears, select Can't scan it? to reveal the text key. Exact labels may change as Google updates the page.
- Copy that key and save it in a private place before pressing Next.
How to log in to Google with the code
- Paste the Google key into the generator above.
- Copy the 6-digit code it produces.
- Type the code into Google's verification box and select Verify. When Google later asks for a code from your authenticator, open this page and generate a new one.
Google 2FA tips
- From the 2-Step Verification page, generate a set of backup codes and print them. They are single-use and work even if your authenticator key is lost.
- Older mail clients or devices that cannot handle 2-Step Verification may need an app password instead of your normal password. Create these in your Google Account security settings.
- Setting up a new authenticator from the same page replaces the old key. If codes suddenly stop working, check whether someone re-registered the authenticator recently.
Your Google key is processed only in this browser and is never uploaded. Keep a copy in an authenticator app or password manager as well.
Google 2FA FAQ
Is this compatible with Google Authenticator?
Yes. Google Authenticator and this generator both use the open TOTP standard with 6 digits and a 30-second window. Given the same key, they show the same code at the same time, so you can use either, or both, for your Google account.
Can I get my existing Google Authenticator key back?
Google does not show the key again after setup. You can export accounts from the Google Authenticator app to another phone, or set up the authenticator again from your Google Account security page, which issues a new key. Save the new key this time.
Does this work for Google Workspace accounts?
Usually, yes. Workspace users enable 2-Step Verification the same way, but an administrator may restrict which methods are allowed, for example requiring security keys. If the authenticator option is missing, ask your admin about your organization's policy.
Is Gmail 2FA the same as Google 2FA?
Yes. Gmail does not have separate two-factor settings; it uses your Google Account's 2-Step Verification. One authenticator key protects Gmail along with every other Google service tied to that account.