Gmail App Passwords: How to Make Apps Work
In this article
To make an app work with Gmail, you need to generate a 16-character App Password from your Google Account and enter it in place of your regular password in that app. App Passwords only work if 2-Step Verification is turned on for your Google Account, and Google has removed them for accounts that only use personal Google sign-in without 2-Step Verification. The steps below cover the official method on a computer browser, because the option does not appear in the Gmail mobile app.
What You'll Need
- A Google Account with 2-Step Verification already enabled. If it is not on, you cannot create App Passwords.
- A computer with a web browser. The App Passwords page is not available in the Gmail app on iPhone or Android, so do this step on desktop.
- The app that needs access, installed and ready to sign in. It must support standard username-and-password sign-in; apps that only offer "Sign in with Google" do not need an App Password.
- Your Google Account password, in case you are asked to re-enter it during setup.
Step-by-Step
- Turn on 2-Step Verification first. Go to your Google Account page at myaccount.google.com, open the Security section, and check that 2-Step Verification is on. If it is off, set it up and finish the prompts. App Passwords are hidden until this is done.
- Open the App Passwords page. In the same Security section, find the "How you sign in to Google" area and select App Passwords. You may be asked to enter your Google Account password again. Menu labels can differ slightly by account type and region, so look for the App Passwords entry under Security rather than searching the whole site.
- Name the password. Type a label that tells you where it will be used, for example "Mail on Windows" or "Printer scan-to-email". The name is only for your reference and does not affect how the password works.
- Generate it. Select Create (or Generate). Google shows a 16-character password in a yellow box, often grouped in four blocks of four letters. Copy it exactly, including any spaces if the app accepts them, or remove the spaces if the app rejects them.
- Paste it into the app. Open the app's account settings, choose the option to add a mail account manually, and enter your full Gmail address as the username. In the password field, paste the 16-character App Password instead of your normal Google password.
- Use the correct server settings if the app asks. For incoming mail, the IMAP server is imap.gmail.com on port 993 with SSL/TLS. For outgoing mail, the SMTP server is smtp.gmail.com on port 465 with SSL/TLS, or port 587 with STARTTLS. The username is your full Gmail address and the password is the App Password.
- Save and test. Save the account, then send a test email to yourself and check that new mail arrives. If the app has a "test connection" button, use it before closing settings.
- Store the password safely. The App Password is shown only once. If you lose it, you cannot look it up again; you must revoke it and create a new one. Keep it in a password manager rather than a plain text note.
Common Mistakes
- Using the normal Google password. Apps that need an App Password will reject your regular password with an authentication error. The 16-character code is a separate credential.
- Trying to create one without 2-Step Verification. The App Passwords option simply will not appear. Turn on 2-Step Verification first, then return to the Security page.
- Looking for the option in the Gmail app. App Passwords are managed in a web browser through your Google Account, not inside the Gmail mobile app.
- Mistyping the code. The password is case-sensitive. Copy and paste it rather than retyping, and watch for autocorrect adding a space or capital letter.
- Revoking the wrong entry. Each App Password is tied to one app. If you revoke one, only that app stops working; other apps keep their own passwords.
- Assuming every app needs one. Apps that offer "Sign in with Google" use OAuth and should not be given an App Password. Use the Google sign-in button where it exists.
Tips
- Create a separate App Password for each app or device. That way, if one device is lost or retired, you revoke only that password and leave the rest working.
- Name passwords clearly with the device and purpose, so the list stays readable months later.
- If an app accepts only 16 characters and no spaces, paste the code and delete the spaces. If it accepts spaces, either form usually works.
- Keep 2-Step Verification on. Turning it off removes App Passwords and can lock out every app that relied on them.
- Review the App Passwords list occasionally and revoke entries for devices you no longer use.
Troubleshooting
If the app still says the username or password is incorrect, first confirm you pasted the App Password and not your Google password. Then check that the username is the full Gmail address, including @gmail.com. Remove any spaces if the app rejects the code.
If the App Passwords page is missing, 2-Step Verification is probably off, or your account type does not offer App Passwords. Turn on 2-Step Verification and reload the Security page. If the option still does not appear, your account may be managed by an organization that has disabled it; in that case, contact your administrator.
If mail arrives but sending fails, the outgoing server settings are usually the cause. Set SMTP to smtp.gmail.com, port 465 with SSL/TLS, or port 587 with STARTTLS, and use the App Password as the SMTP password.
If the app worked before and stopped, the App Password may have been revoked, or 2-Step Verification may have been turned off. Sign in to your Google Account, check the App Passwords list, and create a new password if needed.
If you see repeated sign-in prompts, sign out of the app completely, then sign in again with the App Password. Restart the app or device before trying more drastic steps. As a last resort, reinstall the app from the official store; this removes its local settings, so note any account details first.
Frequently Asked Questions
Do I need 2-Step Verification to use App Passwords?
Yes. App Passwords are only available when 2-Step Verification is turned on for your Google Account.
Can I create an App Password in the Gmail app?
No. App Passwords are created on the Google Account website in a browser. The Gmail mobile app does not offer this option.
What if I lose an App Password?
You cannot view it again. Revoke it in the App Passwords list and generate a new one, then update the app.
Does revoking one App Password affect my other apps?
No. Each App Password is separate, so revoking one only stops the app or device using that specific password.
Why does my app reject the App Password?
Check for typos, extra spaces, or a wrong username. Also confirm the app is using the correct server and port settings for Gmail.
Should I use an App Password for apps with "Sign in with Google"?
No. Use the Google sign-in option where the app offers it. App Passwords are for apps that only accept a username and password.