How to recover deleted passwords and 2FA codes on iPhone, iPad, and Mac

Did you delete a password or passkey from iCloud Keychain by accident and need it back? Find out how to easily recover a deleted account, website, or app username, password, and two-factor authentication codes on your iPhone, iPad, and Mac.

Recover Recently Deleted iCloud Keychain Password on iPhone

iCloud Keychain is one of the best places for Apple users to store their login passwords. It encrypts your details and makes the changes available on all your iPhones, iPads, and Macs where you’ve signed in with your Apple ID. Additionally, you can also set up two-factor authentication keys in iCloud Keychain for websites like Facebook, Twitter, etc., thus eliminating the need to use apps like Google Authenticator or Microsoft Authenticator.

With iOS 16 and earlier, when you deleted a saved entry from iCloud Keychain, it was immediately gone from all your devices. But starting with iOS 17, iPadOS 17, and macOS Sonoma, you have a 30-day window to recover those deleted passwords.

Recover deleted login passwords and 2FA codes

On iPhone and iPad

  1. Open the Settings app on iOS 17 or iPadOS 17.
  2. Scroll down and tap Passwords.
  3. Once you’re inside, tap Recently Deleted.
  4. Tap Select.
  5. Choose the deleted passwords you want to get back and tap Recover.
  6. Alternatively, tap Delete if you want to remove them permanently, leaving no scope for recovery.
Recover recently deleted password on iPhone

On Mac

  1. Open System Settings on your computer running macOS 14 Sonoma.
  2. Select Passwords from the left sidebar and use Touch ID or your Mac’s password to get inside.
  3. Click Recently Deleted.
  4. Check the little boxes for deleted passwords and click Recover.
  5. Or, click Delete if you want to remove them permanently.
Recovering a deleted password on Mac from System Settings

In addition to using System Settings, you can go to Mac’s Safari Settings > Passwords > Recently Deleted and recover them from here.

Recently Deleted in Safari Passwords settings on Mac

What happens after recovering the deleted password

The deleted entry with email, username, password, and the two-factor authentication code is added back to the Passwords section on all your Apple devices where you’re using iCloud Keychain. It will appear as if you had never deleted them in the first place.

Don’t see the Recently Deleted section in iCloud Passwords?

You won’t see the Recently Deleted option if:

  • You have not deleted passwords in the last 30 days.
  • You have recovered all the deleted passwords on this device or one of your other Apple devices.
  • Your iPhone, iPad, or Mac is not updated to the latest available version of iOS 17, iPadOS 17, or macOS Sonoma.

Do more with saved passwords:

CDN CTB