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
- 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
- If Photos is open, choose Photos › Quit Photos.
- Press and hold Option + Command (⌘) on your keyboard, and click the Photos icon in your Dock or Applications folder.
- In the Repair Library dialog that appears, click Repair.
- 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
- Your library sits on a disconnected or incompatible external drive. Make sure the external SSD is plugged in and formatted as APFS or Mac OS Extended (Journaled). See moving a Mac Photos library to an external drive.
- You opened a different or blank library. Hold only the Option key while opening Photos to see the library picker and confirm you selected the right file. Apple’s Mac Photos library overview
- The library package is damaged on disk. If the repair tool fails, keep your backup untouched and restore an earlier working version using Time Machine.
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.