I forgot my passcode to my iPhone 5s?

So today i forgot my passcode and i don't know what to do i know the numbers it uses but i can't figure out what order there in the numbers are 0213 if that helps i just don't want to erase my data

Have you tried numerical order?

If you have backed up to either icloud or itunes recently then you can just reset the phone and restore from your backup and it will be exactly how it was before.

I haven't actually backed it up but I'm connected to iCloud

There's no recovery for a lost passcode. It's not stored anywhere outside the phone, not even with Apple. If you can't remember the passcode, your only option is to reset it to factory defaults, which means that you'll lose everything on the phone.

  • What to do if i forgot my iphone 4s passcode? So i forgot my passcode, and i don't know what to do. I read that you could plug your phone into itunes and then reset it, but i really don't want to lose all my photos, text messages, contacts, etc. Is there a way to reset my password without losing all my iphone's data? Please answer quickly! Thank you so much! Btw, please don't suggest to go to the apple store/call verizon because i really don't want to do that, thanks.
  • I forgot the passcode to my iPhone? Apparently I have to restore my iPhone to get back on it. However, when I try to back up my files on iTunes it says I need to put in the passcode. Is there a way to get around this?
  • I forgot the passcode on my iphone, how do I unlock it? So i put a new passcode on my iphone but I forgot what it was. Is there anyway I can get into it without having to restore it?
  • I forgot my restrictions s passcode on my iPhone. Please I forgot my restrictions passcode on my iPhone 5 and now I can't acces my restrictions. I tried restoring it then backing it up but the code comes back! I called apple and they were no help. Does anyone have any solutions that aren't restore it and buying all of my apps and music all over again? Please help! P. S. I don't have a backup file where the code isn't there.