Want to set up Gmail in your email program, and it does not work? You possibly need a special password. Find out here how to create a Gmail app password for your email program or service to access Gmail.

First, 856 Columns inside a Church within a Mosque

can be admired, of course, in Cordoba’s Mezquita. Look closer a bit at the forest, and you will find that, in the mosque’s older part, no two columns seem to be alike.

That is because most were not made for this building but reused from others—and made to fit more or less.

With Gmail using 2-step authentication, you cannot reuse passwords or make do more or less; every program or service connecting to Gmail through POP or IMAP gets its own custom-made app password:

How to Create a Gmail App Password

Time needed: 7 minutes.

To create a new application-specific password so you can access your Gmail account in an email program or service using POP or through IMAP:

  1. Open Gmail in a desktop browser.

  2. Click your avatar or name near the top right corner.

  3. Now click Google Account on the account sheet that has appeared.

  4. Go to the Security category on your Google Account page.

  5. Click App passwords under Signing in to Google.

  6. Type your Gmail password under Enter your password if prompted and click Next.

  7. Click Select app below the list of existing app passwords.

  8. Choose the application for which you create the app password followed by selecting a device under Select device or choose Other to name the email program or service freely.

    Note: Do create a different password for each application and make the name recognizable so it is easy to disable the password if necessary.

  9. Click GENERATE.

  10. Copy and paste the generated password immediately to the email program that uses it.

    Important: Do not save the password anywhere; if you lose it, create a new app-specific password.
    Hint: The password will have 16 characters.

  11. Click DONE.

How to Create a Gmail App Password: FAQ

Why do I need app passwords in the first place?

With 2-step authentication enabled, your Gmail password alone is not enough to log on to your account; a second means you identify you—typically, a code received through your phone—is necessary. This is true when you open the account in a browser, and it is true when an email program tries to log in.

Gmail offers two ways for your email program to still access mail:

  • OAuth: after you log in with Gmail (using 2-step authentication) and allow the email program or service access to your messages, Gmail hands the app or service a secret token (password) that lets it log in from then on.
  • Gmail app passwords: Gmail creates a random password which lets an email program or service log on with traditional, password-only authentication until you revoke the specific password.

Can I disable a Gmail app password?

Yes, you can delete a Gmail application-specific password at any time. That password will then no longer work, and any application or service that tries to log in with your Gmail address and the revoked application-specific password will not be able to access your account.

Do disable Gmail app passwords if you think an app or service might be insecure and either have given away or lost the Gmail application password.

Will disabling one app password affect other apps and passwords?


Other Gmail app passwords will still work like before—as will email service and programs using OAuth, of course, and logging in using 2-step authentication.

How many app-specific passwords can I create in Gmail?

You can create at least 15 application-specific passwords in Gmail—and possibly more.

(How to create a Gmail app password tested with Gmail in a desktop browser; updated October 2019)