Well, it is very rare that someone would forget the password of their iPhone but sometimes this situation arises and if someone will forget the password of their iPhone it of a great deal and not even possible to recover it so easily.
So Don’t get worried I will help you with step by step guide which gonna help you to get out of this situation.
But before we start, please keep in mind that all the data in your iPhone will get erased but if you backed it up then you can restore it anytime you want.
If you never backed up your data before the passcode mishap took place, say goodbye to your data.
So, let’s begin.
Step 1. If you haven’t downloaded iTunes in your MAC/Windows PC then download it first.
Step 2. Now connect your device with your PC.
Step 3. You need to force restart your device.
Step 4. To force restart iPhone 8 or later, or iPhone X or later you need to press and immediately release the volume button. Press and immediately release the volume down button. Now you need to press and hold the side button until you see the recovery mode screen.
Step 5. But if you have iPhone 7 or iPhone 7 plus you need to press and hold both the side and volume down button at the same time and keep holding until you see recovery mode screen.
Step 6. If you have iPhone 6 or earlier you need to press and hold the home button and the top/side buttons at the same time and keep holding until you see recovery mode screen.
Step 7. Now you will see the options to “Restore” or “update”.
Step 8. Choose the “Restore” option.
Step 9. iTunes now will download software for your iPhone.
Step 10. It will take more than 15 minutes to download the software and after downloading iPhone will automatically exit the recovery mode.
Step 11. If that happens you need to reconnect your iPhone with PC again and force restart it.
Step 12. So this is how you can recover forgotten passcode of your device though it is slightly complex but it will work.
NOTE: Keep your iPhone backed up routinely whether you forget or don’t forget the passcode