You cannot retrieve a password you've forgotten, but you can reset it or find where it's stored

If you've forgotten your iPhone password — whether it's your Apple ID password, Wi-Fi password, or screen lock code — the path forward depends on which password you need. Apple does not store your passwords in a way you can look up. Instead, you'll either reset the password through Apple's account recovery system, find it in a saved location on your device, or use a backup you created earlier. The fastest route depends on which type of password you're missing and whether you still have access to your iPhone.

The three most common passwords people forget are the screen lock code (the six-digit or Face ID code), the Apple ID password (used for the App Store and iCloud), and Wi-Fi passwords. Each one has a different recovery path, and some require tools or information you may not have on hand. This guide walks through each scenario so you know exactly what to do.

Key Takeaways

  • Your iPhone screen lock code cannot be retrieved — you must reset it through recovery mode or by erasing the device, which requires your Apple ID password.
  • Apple ID passwords are reset through iforgot.apple.com or the Find My iPhone website, and you'll need access to your recovery email or phone number.
  • Wi-Fi passwords saved on your iPhone can be viewed in Settings if you're already logged in, but only for networks you've previously connected to.
  • App passwords and credit card information stored in Safari or iCloud Keychain require your screen lock code or Face ID to view.
  • If you're locked out of your Apple ID entirely, you may need to contact Apple Support with proof of purchase or identity documents.

Finding a Wi-Fi password you've already connected to

If you're already on your iPhone and logged in, you can see Wi-Fi passwords for networks you've used before. Open Settings, tap Wi-Fi, then find the network name in the list. Tap the information icon (a small circle with an "i") next to the network name. Your iPhone will show the password in the Password field — you may need to authenticate with Face ID or your screen lock code first.

This method only works if you're already unlocked and logged into your iPhone. If you've forgotten your screen lock code and cannot unlock the device, you cannot view saved Wi-Fi passwords this way. You would need to reset your screen lock first through recovery mode. If the network you need the password for is not in your Wi-Fi list, your iPhone has never connected to it, and you'll need to ask the network owner or administrator for the password directly.

Resetting your Apple ID password through iforgot.apple.com

Your Apple ID password controls access to your iCloud account, App Store purchases, and many iPhone settings. If you've forgotten it, go to iforgot.apple.com from any computer or phone. Enter your Apple ID (usually your email address), then choose how you want to verify your identity: through a recovery email address or a phone number associated with your account.

Apple will send a verification code to whichever method you choose. Enter that code, then create a new password. Your new password must be at least eight characters and include uppercase letters, lowercase letters, numbers, and a symbol. Once you've reset it, you can sign back into your iPhone with the new password in Settings > [Your Name] > Password & Security.

If you don't remember which email or phone number is linked to your Apple ID, or if you no longer have access to them, you'll need to contact Apple Support. They can verify your identity through other means, such as asking about your purchase history or the devices registered to your account. Keep your device serial number handy — you can find it in Settings > General > About.

Resetting your screen lock code through recovery mode

If you've forgotten the code you use to unlock your iPhone screen, you cannot retrieve it — you must erase the device and set it up again. This process requires your Apple ID password, which is why Apple requires it: to prevent someone else from erasing your phone and using it. Before you start, make sure you know your Apple ID password, or reset it through iforgot.apple.com first.

Connect your iPhone to a computer with iTunes or Finder installed. Force restart your iPhone by pressing and releasing the Volume Up button, then the Volume Down button, then holding the Side button until you see the recovery mode screen. Choose Restore to erase the device. After the erase completes, you'll set up your iPhone again and create a new screen lock code. You'll need your Apple ID password to reactivate the device and restore from a backup if you have one.

Finding passwords stored in iCloud Keychain

iCloud Keychain stores passwords for websites, apps, and Wi-Fi networks across your Apple devices. To view them, open Settings, tap your name at the top, then iCloud. Scroll down and tap Keychain, then toggle it on if it's off. You can then view saved passwords by going to Settings > Passwords (or Settings > Passwords & Account on older iOS versions).

Tap the account or website you want to see, and your iPhone will ask you to authenticate with Face ID, Touch ID, or your screen lock code. Once authenticated, the password appears on screen. You can copy it to paste elsewhere, or view it as plain text by tapping the eye icon. This feature only works if Keychain is turned on and syncing across your devices. If you've turned off Keychain or never set it up, passwords won't be stored there.

Recovering your account if you're locked out completely

If you've forgotten both your screen lock code and your Apple ID password, and you don't have access to your recovery email or phone number, you'll need to contact Apple Support directly. Have your device serial number ready — you can find it in Settings > General > About. Apple may ask for proof of purchase, such as a receipt or credit card statement, or they may ask security questions about your account history.

The recovery process can take several days. During this time, your iPhone remains locked. Once Apple verifies your identity, they can help you regain access to your Apple ID, after which you can reset your screen lock code through recovery mode. You can reach Apple Support through their website, by phone, or by visiting an Apple Store in person with your device and proof of purchase.

Using a backup to recover saved passwords

If you have an iCloud backup or a computer backup made before you forgot your password, you may be able to restore from it. Connect your iPhone to a computer with Finder or iTunes, or go to Settings > [Your Name] > iCloud > Backup on another iPhone. Choose Restore from Backup and select the backup from before you forgot the password.

This restores your entire device to that point in time, including all saved passwords in Keychain. However, you'll still need your Apple ID password to complete the restore and reactivate your device. If you've forgotten that too, reset it through iforgot.apple.com first. Restoring from backup does not recover a forgotten screen lock code — you'll still need to go through recovery mode to reset that.

Frequently Asked Questions

Can I see my password if I'm already logged into a website on Safari?

Yes. Open Settings, tap Passwords, find the website in the list, and tap it. Authenticate with Face ID or your screen lock code, then tap the eye icon to view the password in plain text. You can also long-press the password field on a website and choose "Use Strong Password" to see what Safari has saved.

What if I forgot my screen lock code but remember my Apple ID password?

Use recovery mode to erase your iPhone and set it up again. You'll need your Apple ID password to reactivate it after the erase. This is the fastest path if you remember your Apple ID credentials.

Can Apple tell me what my password is?

No. Apple does not store passwords in a readable format and cannot retrieve them for you. They can only help you reset your Apple ID password through identity verification, or help you regain access to your account if you're locked out.

Will resetting my password delete my photos or data?

Resetting your Apple ID password does not delete anything. Resetting your screen lock code through recovery mode does erase your device, but you can restore from a backup afterward to get your data back.

How long does it take to reset an Apple ID password?

If you have access to your recovery email or phone number, you can reset your Apple ID password in minutes. If you need Apple Support to verify your identity, the process can take several days.