How to Restore an iPhone Without a Passcodeby Avery Martin
You can use iTunes on your computer to restore your iPhone when you forget your passcode and are locked out of the phone. The process of restoring your iPhone erases all the data and returns it to factory condition. After you restore your iPhone, open a previous backup to recover your content or redownload your apps and media from iTunes. During the factory restore process, the passcode is removed. If you want a passcode, set up a new one using the Passcode option in the General screen of the Settings app.
Connect your iPhone to your computer using the provided USB connector cable.
Click the "iPhone" button and select "Restore iPhone..." in the iPhone section.
Click the "Restore" button and confirm that you want iTunes to check for the latest updates to your software. If you get a prompt that you have purchased items that have not been transferred, click "Continue" since you can't transfer your purchases without a passcode.
Click "Next" and "Agree." Wait for any available updates to download and for the restore process to complete.
Swipe the "Slide to Set Up" slider from left to right and follow the prompts to set up your iPhone.
- Information in this article applies to iOS 6. It may vary slightly or significantly with other versions or products.