Double-click a photo and Preview says it could not be opened. The full message: The file "name.jpg" could not be opened. It may be damaged or use a file format that Preview doesn't recognize. This means one of two things. The file is genuinely corrupted, or the extension is wrong and the data is something else entirely. Before you give up on the image, run these checks on your Mac to find out which problem you have.
Read the Exact Error and What it Tells You
Preview's wording is specific. When it says the file "may be damaged or use a file format that Preview doesn't recognize," it is not guessing. That message appears when the file's header does not match what the extension claims, or when the file is cut off mid-way. A real JPEG has a very specific signature. It starts with the bytes FF D8 FF and should end with the End Of Image marker FF D9. If either is missing, Preview refuses to open it.
Do not assume the file is a total loss. A mislabeled file (a PNG renamed to .jpg) will not open in Preview, but the original image data is intact. A truncated file, partially downloaded or copied, may have lost the ending marker. The beginning could still be salvageable.
Check the Real File Format on Your Mac
Use the File Command
macOS includes a command-line tool called file that reads the actual content, not just the extension. This is the fastest way to tell if you have a mislabeled JPEG or a genuinely damaged one.
- Open Terminal (Finder > Go > Utilities > Terminal).
- Type
file photo.jpg(replace photo.jpg with your actual file name). - Press Return.
If Terminal reports JPEG image data, JFIF standard, the file is genuinely a JPEG. If it reports PNG image data or TIFF image data, the file has the wrong extension. Rename it to the correct extension (photo.png, for example) and try opening it again. This fixes many cases where Preview does not recognize a jpg because the file was never a JPEG.
Inspect the Header and Footer Bytes
If the file command says it is a JPEG, check whether the file is complete. Look at the first and last bytes.
In Terminal, run these two commands:
xxd photo.jpg | head -1shows the first 16 bytes in hex. The first three should beff d8 ff.xxd photo.jpg | tail -1shows the last 16 bytes. The very last two bytes should beff d9.
Wrong first bytes? The file is not a JPEG at all. Correct first bytes but missing ff d9 at the end? The file is truncated. Image data is incomplete. You cannot repair it by changing the extension. Re-download the original or recover it from a backup. If the file is a valid JPEG but Preview still will not open it, the issue might be with Preview's cache or the file's internal structure.
Use Quick Look as a Second Test
Quick Look uses a different rendering path than Preview. Press the space bar in Finder on a selected file. This is a useful second test. Quick Look can sometimes open a file that Preview cannot, and vice versa.
Select the file in Finder and press the space bar. If Quick Look shows the image, the file is valid and the problem is isolated to Preview's file handling. If Quick Look shows a blank or grey window, the file is damaged. This test tells you whether the problem is the file or the app. Quick Look shows nothing and Preview also fails? The file is corrupted at the data level.
Verify Dimensions with Sips
macOS includes another built-in tool called sips (Scriptable Image Processing System). It reads image metadata without opening the file in a full application. Use it to check if the file's header is readable.
Run this command in Terminal:
sips -g all photo.jpg
If the header is intact, sips prints the pixel width, pixel height, and file format. If it prints an error or shows nothing, the header is unreadable. A readable header with unreadable content means the file is partially damaged but might be recoverable with a JPEG repair tool. A completely unreadable header means the file is beyond simple repair.
Check the File Size and ICloud Placeholders
Zero-Byte Files
Two common situations cause a JPEG to fail to open on a Mac, and both relate to file availability rather than corruption. First, check the file size in Finder. A file showing 0 bytes contains no image data at all. A zero-byte file cannot be repaired because there is nothing to repair. Your only option is to recover the original from a backup or from the original camera card.
ICloud Download Failures
Second, if you use iCloud Photos, the file on your Mac might be a placeholder. A file that has not finished downloading fails to open because the actual data is still in the cloud. Look for a small download icon (a cloud with a down arrow) next to the file name in Finder. Double-click the file to force a download, then try opening it again. This is a common cause of photos failing to open when the Mac is low on storage or the network connection is slow.
What to Do When the File is Genuinely Corrupt
You have confirmed the file is a real JPEG, has the correct header and footer, has a non-zero size, and is fully downloaded. Preview still will not open it. The file has internal damage. This can happen from an interrupted write to the memory card, a bad sector on a hard drive, or a failed transfer.
You have practical options. First, try opening the file in a different image editor. Some applications tolerate minor errors better than Preview. Second, if the file is important, look for a backup copy. Time Machine or a cloud service might have an older, intact version. Third, with no backup, attempt to repair the file using a dedicated JPEG repair utility. These tools can rebuild the file structure and recover image data even when the original will not open in any standard viewer.
For a free online option, jpeg.repair analyzes your uploaded file and attempts to reconstruct a readable JPEG from the remaining data. It is a last resort. It is better than losing the photo entirely.