An iPhone passcode is a string of numeric or alphanumeric characters that is used to lock your iPhone, keeping it locked until your passcode (or Touch ID or Face ID) is used to unlock the device.