Open Settings on your iPhone, iPad, or Mac
Tap your name at the top
Select Sign-In & Security or Password & Security
Tap Change Password
Enter your device passcode or Apple ID password
Enter a new password
Confirm the new password
Tap Change or Done
Sign in again on other Apple devices if prompted
