Milkglass
Get the app

MilkglassPhoto privacy guides

Repair a Mac Photos library that will not open

Quit Photos on your Mac, hold down the Option and Command (⌘) keys while opening Photos, and click Repair when prompted. Apple’s Photos Repair Library tool analyzes the library database and fixes inconsistencies, and Apple recommends backing up the library first. Apple Support on the Photos Repair Library tool

By Paul Bădărău, maker of Milkglass. Instructions checked on 30 November 2026.

Steps to run Photos Repair Library on a Mac

  1. Back up your Photos Library (by default in your Pictures folder) using Time Machine or by copying it to an external drive before running a repair. Apple’s guide to backing up a Photos library
  2. If Photos is open, choose Photos › Quit Photos.
  3. Press and hold Option + Command (⌘) on your keyboard, and click the Photos icon in your Dock or Applications folder.
  4. In the Repair Library dialog that appears, click Repair.
  5. Enter your Mac user account password if prompted, then wait for the repair to finish and reopen your library.

What repairing the library affects

The repair tool checks the library database and fixes inconsistencies. Once it finishes, Photos opens the library so you can check recent and older photos.

If you use iCloud Photos, Apple notes that iCloud automatically checks the repaired library afterward to make sure everything matches what is in iCloud. Repairing does not change who has access to your Mac library or recover files that were permanently deleted from disk. Apple Support on Photos Repair Library

When Photos still will not open after a repair

Common questions about repairing a Mac Photos library

Will repairing my Photos library delete my photos or albums?

No. The tool is designed to fix database inconsistencies while keeping your photos, videos, and albums intact. Backing up first protects you in case the underlying drive has hardware errors.

Why does Repair Library take a long time on a large library?

Apple says larger libraries can take a while, and if iCloud Photos is enabled, iCloud checks your library after the repair finishes.

Can I run Photos Repair Library on an iPhone?

No, the Option+Command repair tool is only on Mac. On an iPhone, orphaned files found outside the database appear in the Recovered album under Utilities.

Related Mac library guides

Before making big changes, learn how to back up your Mac Photos library, change your Mac System Photo Library, or consolidate referenced files inside a Mac library.