You can unlock an iPhone passcode without a computer if your device runs iOS 15.2 or later. After entering the wrong passcode multiple times, the lock screen may show a “Erase iPhone” option. Alternatively, if Find My iPhone is enabled, you can erase the device remotely via iCloud. Both methods remove the passcode but will erase all data, so a backup is needed to restore your information.