You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to recover my passcode from iPhone without erasing my data on my iPhone

Hi, I forgot my passcode on my iPhone because of how automatic I do it every time... this time I didn't know the exact code ://///... I don't want to erase my data on my iPhone because not everything is backed up on my iCloud... How can I open my iPhone and change the passcode without knowing it?? Can I do it from my iCloud account??

Thanks in advance for your help...

iPhone SE, iOS 16

Posted on Aug 30, 2023 5:28 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 30, 2023 5:31 AM

You will have to erase your phone.


I see you may have a disabled device or forgotten device passcode. If you see a waiting period you can try again after the timer ends. If you wish to proceed with resetting, or if it is disabled/security lockout/unavailable, refer to this support article for various methods that you can use to resolve this. --> If you see an iPhone or iPad unavailable message or Security Lockout screen - Apple Support Which one you can use depends upon your equipment configuration. If you can use the iOS15.2+ method you may not need a computer.


How to reset your device if you are running iOS 15.2 or later:

Advance step: If you're using an eSIM, contact your carrier before trying these steps and ask for a QR code to set up your eSIM again.

1. From your device's Lock Screen, try to enter your passcode five times until the "[Device] Unavailable" screen appears and your device asks you to try again later.

2. When you're able to, continue to enter your passcode until the "Security Lockout" screen appears and you get the Erase [Device] option in the bottom corner of the screen.
 3. Tap Erase [Device], then tap Erase [Device] again to confirm.

4. Enter your Apple ID password to sign out of your Apple ID on your device.

5. Tap Erase [Device] to permanently delete all of your data and settings.

6. When your device restarts, follow the onscreen instructions to set up your device again, restore your data and settings from a backup, and set a new passcode.


You can only reach the "Security Lockout" screen if you have an active cellular or Wi-Fi connection and previously enabled Find My ( Find My - Official Apple Support ) on your device. After you try to enter your password ten times, your device will either erase itself or show Security Lockout and the option to Erase [Device] without a timer, depending on how you previously set up your device. 


If you can't follow the above steps (e.g., you are using an older iOS version), you can use a computer to reset your device, as described in this article --> If you forgot your iPhone passcode - Apple Support .


Read the support article for full information. You can also watch the 5 min. 16 sec. Apple video "How to restore your iPhone if you forgot your passcode" at https://www.youtube.com/watch/7s8-zLG9ySQ


Whichever method you use will result in erasing the iPhone. You can, however, restore it from a backup as described in this support article --> Restore your iPhone, iPad, or iPod touch from a backup - Apple Support Some items will restore automatically once you make sure you are signed into iCloud (if you were using iCloud to sync these services).


Here are resources if you are prompted for your username and password and have forgotten them:

If you forgot your Apple ID email address or phone number - Apple Support Note that typically this is an email address you use.

If you forgot your Apple ID password - Apple Support


If you do not have a computer, use the link Find Locations to find an Apple service location, or ask a friend if you can use theirs. This could be either a Mac, or a PC with iTunes. If your computer doesn't recognize your iPhone, iPad, or iPod, read this support article --> If your computer doesn't recognize your iPhone or iPad - Apple Support




Similar questions

3 replies
Question marked as Top-ranking reply

Aug 30, 2023 5:31 AM in response to chloé195

You will have to erase your phone.


I see you may have a disabled device or forgotten device passcode. If you see a waiting period you can try again after the timer ends. If you wish to proceed with resetting, or if it is disabled/security lockout/unavailable, refer to this support article for various methods that you can use to resolve this. --> If you see an iPhone or iPad unavailable message or Security Lockout screen - Apple Support Which one you can use depends upon your equipment configuration. If you can use the iOS15.2+ method you may not need a computer.


How to reset your device if you are running iOS 15.2 or later:

Advance step: If you're using an eSIM, contact your carrier before trying these steps and ask for a QR code to set up your eSIM again.

1. From your device's Lock Screen, try to enter your passcode five times until the "[Device] Unavailable" screen appears and your device asks you to try again later.

2. When you're able to, continue to enter your passcode until the "Security Lockout" screen appears and you get the Erase [Device] option in the bottom corner of the screen.
 3. Tap Erase [Device], then tap Erase [Device] again to confirm.

4. Enter your Apple ID password to sign out of your Apple ID on your device.

5. Tap Erase [Device] to permanently delete all of your data and settings.

6. When your device restarts, follow the onscreen instructions to set up your device again, restore your data and settings from a backup, and set a new passcode.


You can only reach the "Security Lockout" screen if you have an active cellular or Wi-Fi connection and previously enabled Find My ( Find My - Official Apple Support ) on your device. After you try to enter your password ten times, your device will either erase itself or show Security Lockout and the option to Erase [Device] without a timer, depending on how you previously set up your device. 


If you can't follow the above steps (e.g., you are using an older iOS version), you can use a computer to reset your device, as described in this article --> If you forgot your iPhone passcode - Apple Support .


Read the support article for full information. You can also watch the 5 min. 16 sec. Apple video "How to restore your iPhone if you forgot your passcode" at https://www.youtube.com/watch/7s8-zLG9ySQ


Whichever method you use will result in erasing the iPhone. You can, however, restore it from a backup as described in this support article --> Restore your iPhone, iPad, or iPod touch from a backup - Apple Support Some items will restore automatically once you make sure you are signed into iCloud (if you were using iCloud to sync these services).


Here are resources if you are prompted for your username and password and have forgotten them:

If you forgot your Apple ID email address or phone number - Apple Support Note that typically this is an email address you use.

If you forgot your Apple ID password - Apple Support


If you do not have a computer, use the link Find Locations to find an Apple service location, or ask a friend if you can use theirs. This could be either a Mac, or a PC with iTunes. If your computer doesn't recognize your iPhone, iPad, or iPod, read this support article --> If your computer doesn't recognize your iPhone or iPad - Apple Support




How to recover my passcode from iPhone without erasing my data on my iPhone

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.