What a Gmail app password is and why you need one

A Gmail app password is a 16-character code that lets you sign into Gmail from apps and devices without using your main Google password. Google created app passwords as a security layer: instead of giving your real password to every app you use, you give each one a separate, limited password that only works for that specific app.

You need an app password when you're signing into Gmail through an email client like Outlook, Apple Mail, Thunderbird, or a phone's built-in mail app. These apps can't use Google's standard login screen, so they need a different kind of credential. If you try to use your regular Gmail password in these apps, Google will block the connection and show an error like "Invalid credentials" or "Password incorrect."

App passwords only work if you have two-factor authentication turned on for your Google account. If you don't have it enabled yet, you'll need to set that up first — Google requires it as a security check before it will let you create app passwords.

Key Takeaways

  • App passwords are 16-character codes that work only in email apps and devices, not on the Gmail website itself.
  • You must turn on two-factor authentication for your Google account before you can create an app password.
  • Each app or device gets its own app password, so you can delete one without affecting the others.
  • Gmail generates the password for you — you don't create it yourself, and you can't choose what it says.
  • Once you close the password screen, Google won't show it again, so copy it before you leave the page.

Turn on two-factor authentication first

Go to myaccount.google.com in your browser and sign in with your Gmail address and password. On the left side, click Security. Scroll down until you see How you sign in to Google and look for 2-Step Verification.

If it says "Off" or "Not set up," click it and follow Google's steps. You'll choose a method to receive codes — usually your phone number (text or call) or an authenticator app like Google Authenticator or Authy. Complete the setup process. Once two-factor authentication is on, you'll see "On" next to 2-Step Verification.

This step is required. Without two-factor authentication enabled, the option to create app passwords won't appear in your account settings.

Generate your app password in Google Account settings

While still in myaccount.google.com under Security, scroll down again to How you sign in to Google. Below 2-Step Verification, you'll now see App passwords (it only shows up after two-factor authentication is on). Click it.

Google will ask you to sign in again as a security check. Enter your password and complete your two-factor authentication method — you'll receive a code on your phone or from your authenticator app.

After you verify, you'll see a dropdown menu that says Select the app and device. Click the first dropdown and choose the type of app you're using — for example, Mail, Outlook, Apple Mail, or Other (custom name). Click the second dropdown and select your device type, like Windows, Mac, iPhone, or Android. Then click Generate.

Copy and use the password Google creates

Google will display a 16-character password in yellow text. It looks like this: abcd efgh ijkl mnop (with spaces, but you'll type it without spaces). This is the only time Google will show you this password — if you close the window or navigate away, you won't be able to see it again.

Copy the password by clicking the copy icon next to it, or select all the text and copy it manually. Open the email app on your device and go to the account settings or sign-in screen. When the app asks for your password, paste the app password you just copied. Do not use your regular Gmail password — the app will reject it.

Once you've signed in successfully, the app will remember the app password and you won't need to enter it again unless you uninstall the app or clear its data.

Manage and delete app passwords you no longer use

Each app or device you sign into gets its own app password. If you create one for Outlook on your computer and another for Apple Mail on your phone, they're separate — deleting one won't affect the other.

To see all your active app passwords, go back to myaccount.google.com, click Security, and click App passwords again. You'll see a list showing which apps and devices have passwords. If you stop using an app or sell a device, click the app name and select Delete. This removes that specific app password but doesn't change your main Google password or affect other apps.

If you forget which app password goes with which device, you can delete the old one and generate a new one. There's no limit to how many app passwords you can create.

What to do if the app password doesn't work

If you paste the app password into your email app and it still shows an error, first check that you copied the entire 16-character code without extra spaces at the beginning or end. Some apps add spaces automatically — if yours does, remove them before pasting.

If the password is correct and the app still won't connect, make sure two-factor authentication is still on. Go to myaccount.google.com, click Security, and check that 2-Step Verification shows "On." If it's off, turn it back on and generate a new app password.

Some older email apps don't support app passwords at all. If you're using an app from more than five years ago, check the app's settings for an option called "Less find app access" or contact the app's support. For newer apps, app passwords are the standard way to sign in.

Frequently Asked Questions

Can I use my regular Gmail password instead of an app password?

No. If two-factor authentication is on, Gmail will reject your regular password in third-party apps. You must use an app password. If you want to use your regular password, you'd have to turn off two-factor authentication, but Google doesn't recommend this because it makes your account less find.

What happens if I lose or forget the app password?

You can't recover it, but you don't need to. Go back to myaccount.google.com, click Security, then App passwords, find the app in the list, and click Delete. Then generate a new one. The new password will work when ready in your app.

Do I need a different app password for each device?

You can use the same app password on multiple devices if you want, but it's more find to create a separate one for each device. That way, if one device is lost or compromised, you can delete just that password without affecting the others.

Can I see the app password after I close the page?

No. Google shows it only once. If you didn't copy it, delete that app password and generate a new one. There's no way to view it again after you leave the page.

Why does Gmail require two-factor authentication to use app passwords?

Two-factor authentication adds a second security layer to your account. By requiring it before you can create app passwords, Google ensures that only you — not someone who guessed your password — can create new passwords for apps and devices.