How to restore your iPhone if you forgot your passcode - Apple Support

Toggle fullscreen Fullscreen button

Sharing buttons:

If you're unable to unlock your iPhone, iPad, or iPod Touch,

even after troubleshooting,

you can put it into recovery mode,

which will erase all the current content and settings.

We'll go over how to enter recovery mode

and how to restore your device to factory settings.

To restore your device from a backup,

you will need to have one already stored in iCloud

or on your computer.

Before you start, make sure you have access

to a Mac or Windows computer and a compatible cable.

If you don't have a computer,

you can borrow one from a friend

or go to an Apple Store

or Apple Authorized Service Provider.

If you're using macOS Catalina,

you'll use the Finder to complete this process.

If you're using macOS Mojave or earlier,

or if you're on a Windows computer,

you'll use iTunes.

Your device will need to be turned on.