I've forgotten my iPhone passcode! Is there any way to hack into the device?

You're not alone. Passcodes get forgotten more often that you might think, and we are frequently asked how to bypass them and hack into an iPad or iPhone. Bypassing passcodes, generally speaking, is on what we'd call the "black hat" (or legally questionable) side of tech support, but there are legitimate instances where people have forgotten the passcode. In these instances, you'll need to get around the passcode to use your own iPad or iPhone. Nothing dodgy about that.

(If you're reading this page because you just pinched an iPhone and then discovered it was locked, the police have already been notified and are on their way as we speak.) 

In this tutorial, we'll take a look at your options for hacking an iPad (or iPhone) passcode. You'll have to restore your device, but it's worth it to get the iPad up and running again. If you have a bit more confidence - and a legitimate reason to want to recover an iPad's passcode - then there is software that can help you. We'll also remind you the basics in removing the passcode once you've managed to access your iOS device.

Also see: Understanding iOS passcode security | How to set up Touch ID fingerprint scanner on iPhone 5s | How to fix 'iPhone is disabled. Connect to iTunes' error messages

How to remove passcode on iPhone: Restore your iPad using Recovery Mode

Restoring an iPad and starting again is the best way to recover an iPad if you haven't got the passcode. It removes your personal information from the iPad, but if you have a backup you can restore it and it'll be as good as new (but without the passcode).

Trying to Restore the iPad from iTunes requires a passcode, but you can restore the iPad from Recovery Mode. This wipes the iPad completely and installs the latest version of iOS from scratch.

Note: You will need the Apple ID and password that was used to originally set up the device.

How to bypass a forgotten iPad or iPhone passcode: iTunes Detected iPad in Recovery Mode alert

Follow these steps to restore an iPad or iPhone from Recovery Mode:

  • Charge the iPad up to at least 20 per cent. 
  • Ensure that the iPad to a Mac or PC is not connected to the Mac or PC. 
  • Open iTunes on your Mac (or PC). 
  • Hold down the Sleep/Wake button and use the Slide To Power Off to turn off the iPhone. 
  • Hold down the Home Button. 
  • With the Home button held down, attach the Lightning cable to the iPad.

The iPad should power up in Recover Mode. The screen should display a blue iTunes logo and a white Lightning cable. iTunes should display a message saying 'iTunes has detected an iPad in recovery mode. You must restore this iPad before it can be used with iTunes'.

How to bypass a forgotten iPad or iPhone passcode: iPad Screen in Recovery Mode

Now do the following:

  • Click OK and Restore and Update. 
  • Click Restore iPad and let iTunes wipe the software and restore the iPad. 
  • Enter the Apple ID and Password that was used to set up the iPad. 
  • Click Continue. 
  • Choose Restore From This Backup to restore the iPad to its earlier state Or you can set up the iPad as a fresh model by choosing Set Up As New iPad.
  • Click Continue.

Your iPad will now be up and running as before but without a passcode - you may be prompted to enter your Apple ID, depending on the version of iOS you're running. 

How to bypass a forgotten iPad or iPhone passcode: iTunes restoring an iPad in Recovery Mode

If you do set a passcode and you're looking to remove it completely, after having access to your iOS device, then simply go into Settings > Touch ID (if your device has it) & Passcode, and look for the option to turn off the passcode entirely.

Also seeHow to recover a forgotten iCloud password | What to do if you forget your Mac password

How to remove passcode on iPhone: Use forensics software

Every so often someone discovers a technique to bypass the Apple Passcode. This is sometimes a finger-tapping trick that enables the person to access something on the locked phone: typically either Contacts or Messages. This isn't hacking the passcode, it's merely bypassing it.

See also: iPhone iOS 6.1 security flaw lets attackers bypass passcode lock

Forget the finger tricks you'll see in YouTube videos. It is possible to hack the iPad passcode, but you need serious software to do so. This is known as forensics software because law enforcement agencies use them when analysing a mobile phone. We tested Elcomsoft iOS Forensic Toolkit and found it a reliable means of cracking an iPad's passcode. The software is not available to the general public and you will need to apply for a license (and show your credentials). Here are three of the Mac forensic tools available on the market:

Elcomsoft iOS Forensic Toolkit | Blacklight | Lantern 5

How to bypass a forgotten iPad or iPhone passcode: iOS Forensics Software

Software tools like this can enable you to extract a passcode from an iOS device. You'll need to be good with computers (at least capable of handling yourself using the Command Line in Terminal). Read this review of Elcomsoft iOS Forensic Toolkit to find out more information about how forensics software works.

How to remove passcode on iPhone: How did the FBI do it?

iPhone passcodes hit the headlines in March 2016, with the news that the FBI had obtained an iPhone 5c used by one of the shooters in the San Bernardino terrorist attack (but owned by his employer), but couldn't get past the passcode security. The Feds managed to get a court order instructing Apple to assist them and break into the phone. Apple refused.

As the case progressed, public opinion (which was initially sympathetic to them) started to turn against the law enforcement officials, and the day before the Department of Justice was due to present its arguments, it was announced that actually, they didn't need Apple's help after all, and that a third party had agreed to do the hacking for them. A week later the case was dissolved, and the FBI announced it had opened up the phone without Apple's help.

Apple has asked the FBI to tell it how this was done - on the principle that, if a security vulnerability was exploited, then this represents a danger to other iPhone owners and needs to be patched. But the FBI has so far refused. It's believed that an Israeli firm, Cellebrite, performed the hack, but this hasn't been confirmed either.

All of which is comforting for iPhone owners on the one hand - because Apple is so determined to protect their privacy that it will stare down the might of the US government - but worrying, because someone out there has evidently worked out how to bypass the security. However, there are significant reasons to believe that the method, whatever it was, would not work on later models of the iPhone. The iPhone 5s and later have superior security features and Apple has claimed that it wouldn't be able to break into them itself, even if wanted to.

We discuss these matters in far more depth in another article: Is your iPhone private, and how to protect your data privacy.

Finally, read more about security on the iPad and iPhone here: How secure is the iPhone, iPad, and iOS?