The fastest way to get back into your iCloud email
If you remember your Apple ID password but cannot access your iCloud email, the problem is usually that your email client (like Mail on Mac, Outlook, or Gmail's import tool) is using an app-specific password instead of your actual Apple ID password. Apple requires this for security reasons. You retrieve it by signing into your Apple ID account online, going to Security settings, and generating a new app-specific password — a 16-character code that Mail and other programs accept in place of your real password.
If you have forgotten your actual Apple ID password entirely, you will need to reset that first through Apple's account recovery process before you can generate an app-specific password. The steps below assume you know your Apple ID password but need the app-specific code for your email client.
Key Takeaways
- iCloud email in Mail and other programs requires a 16-character app-specific password, not your Apple ID password.
- You generate an app-specific password by signing into appleid.apple.com, clicking Security, and selecting "Generate password" under App Passwords.
- Each app-specific password works only for one program — if you use Mail on both Mac and iPhone, you need two separate passwords.
- If you have forgotten your Apple ID password, you must reset it through Apple's account recovery before you can generate an app-specific password.
Generate a new app-specific password on a computer
Open a web browser and go to appleid.apple.com. Sign in with your Apple ID (your email address) and your Apple ID password — the one you use to unlock your iPhone or Mac, not the password you are trying to retrieve.
Once you are signed in, click Security in the left sidebar. You will see a section called "App Passwords" with a plus sign next to it. Click the plus sign to open a dropdown menu. Select the app or device you need the password for — for example, "Mail" on Mac, or "Mail" on iPhone. Apple will generate a 16-character password with spaces in it (something like abcd-efgh-ijkl-mnop). Copy this entire code, including the spaces.
Go back to your email client (Mail, Outlook, or whichever program you use), find the password field for your iCloud account, and paste the app-specific password there. Do not type your Apple ID password — use only the 16-character code Apple just gave you.
Generate a password on iPhone or iPad
Open Settings and tap your name at the top. Tap Password & Security, then tap App Passwords. You will see a list of apps you have already generated passwords for, and a plus sign to create a new one.
Tap the plus sign. Select the app you need a password for from the dropdown — for example, "Mail" if you are setting up iCloud email in a third-party mail app. Apple generates a 16-character password. Tap and hold to select it, then tap Copy.
Open the email app where you need to enter the password. Paste the 16-character code into the password field. The app should connect to your iCloud email when ready.
What to do if you see "password incorrect" after entering the app-specific password
The most common cause is a typo or missing space. The app-specific password has spaces built into it — abcd-efgh-ijkl-mnop — and some email clients require you to include them exactly as Apple provided them. Copy and paste rather than typing it by hand.
If you are still seeing an error, sign back into appleid.apple.com, go to Security, and delete the app-specific password you just created (click the X next to it). Wait a few seconds, then generate a brand new one. Sometimes the old code takes a moment to stop working, and a fresh password clears the confusion.
If the error persists, check that you are signing in with your full iCloud email address (the one ending in @icloud.com or @me.com), not just your Apple ID. Some email clients ask for both the email address and the password separately, and entering the wrong email address will cause the password to be rejected.
Why your email client does not accept your Apple ID password
Apple requires app-specific passwords for any program that is not Apple's own Mail app on Mac or iOS. This includes Mail on older Macs, Outlook, Gmail's import tool, and most third-party email clients. The app-specific password is a security measure — it means that if one program is compromised, a hacker cannot use that password to access your entire Apple ID account, change your payment method, or lock you out of your devices.
Your actual Apple ID password still works for signing into appleid.apple.com, unlocking your Mac or iPhone, and using Apple's own apps. The app-specific password is only for email clients and a few other third-party programs.
Generating separate passwords for multiple devices
If you use Mail on both your Mac and your iPhone, you need two separate app-specific passwords — one for each device. Go through the generation process twice, selecting "Mail" on Mac the first time and "Mail" on iPhone the second time. Apple will give you two different 16-character codes.
Enter the Mac password into Mail on your Mac, and the iPhone password into Mail on your iPhone. This way, if you ever need to revoke access on one device, you can delete just that password without affecting the other.
The same rule applies if you use Mail in Outlook and also in Apple Mail — you generate one password for Outlook and a separate one for Apple Mail, even though both are on the same computer.
Revoking an app-specific password you no longer use
If you stop using a particular email client or device, go back to appleid.apple.com, click Security, find the app-specific password in the list, and click the X next to it. The password stops working when ready. This is useful if you sell a device or uninstall an app — it prevents anyone who finds the old device from using that password to access your email.
You can revoke and regenerate passwords as many times as you want. There is no limit to how many you can create, and creating a new one does not affect the old ones until you explicitly delete them.
Frequently Asked Questions
Can I use the same app-specific password on multiple devices?
Technically yes, but Apple recommends against it. If you use the same password on your Mac and iPhone, and then lose your iPhone, you would have to revoke the password and regenerate it on both devices. It is simpler to generate one password per device so you can revoke just the one you lost.
What if I forgot my Apple ID password and cannot sign into appleid.apple.com?
You will need to reset your Apple ID password first through Apple's account recovery process. Once you have reset it and can sign into appleid.apple.com again, follow the steps above to generate an app-specific password for your email client.
Does the app-specific password expire?
No. An app-specific password stays active until you manually revoke it by deleting it from your Security settings. You do not need to regenerate it periodically.
Why does Mail on my Mac keep asking for a password?
If you are using Mail on a recent Mac (Ventura or later), Apple's own Mail app should handle iCloud authentication automatically — you should not need an app-specific password at all. If Mail keeps prompting you, try signing out of the account in Mail settings and signing back in. If you are using an older version of Mail or a third-party client, make sure you are using the app-specific password, not your Apple ID password.