To change the password (passcode) on an iPhone, follow these steps:
- Open the Settings app on your iPhone.
- Scroll down and tap on "Face ID & Passcode" (iPhones with Face ID) or "Touch ID & Passcode" (iPhones with Touch ID).
- Enter your current passcode to access the settings.
- Scroll down and tap on "Change Passcode."
- Enter your current passcode again when prompted.
- Enter a new passcode, then confirm it by entering it again.
This will update the passcode you use to unlock your iPhone. You can choose different passcode options like a 4-digit, 6-digit, custom numeric, or alphanumeric passcode for added security. If you want to change your Apple ID password (which is different from the device passcode), go to Settings, tap your name at the top, select "Sign-In & Security," then "Change Password," and follow the prompts. These steps work for iPhones running iOS 14 or later and give you control over both the device unlock passcode and your Apple ID password.