HEIC media corrupt after transfer to Windows 2025 - Many lost family photos

I have been transferring photos from my iPhone to PC for many years. Apple has made this far harder than it should be. I used to just drag and drop via USB, but that is no longer practical because of their insane folder structure. I have been using Windows photo viewer to import them - but that is unpredictable. Sometimes it will skip over images.


The upshot is I now have many HEIC files that will not open / appear to be corrupted. It feels pretty random. I will have 2 good pics, then a bad one, then a few good, then a bad... It is disappointing.


I doubt there is any support for this issue, so like a similar post, I hope this serves as a warning to people. Photos of your life events might look like they are saved safely offline - but you need to verify.


Here is a screenshot of graduation photos I took last year. Over half of them are not viewable.


Windows, Windows 10 (19045)

Posted on May 24, 2025 8:18 PM

Reply

Similar questions

2 replies

May 25, 2025 12:22 PM in response to Matti Haveri

The thumbnails that are broken are for the images that are broken. I cannot find anything that can read these thumbnails, including photoshop, online converters or 3rd party plugins. Windows does not natively support heic, but there is a plugin that allows it.


These images are over a year old, so they would have been iOS 17. However thank you for pointing out that ios 18 has HEIC changes. I will investigate that.


Deeper analysis of the photos shows data corruption. I spent a few hours trying to recreate / salvage these photos with help of AI bot. This is what we found:


Problems in the Broken File


  1. mdat appears as a 1-byte stub, and the real media data is in a misnamed box dat\0.
  2. HEIC parsers expect a proper mdat box — it stores image binary data.
  3. The HEIC format is sensitive to box names and order.


Repair Strategy (90% confidence it'll make the image open)


  1. Rename the dat\0 box to mdat.
  2. Remove the 1-byte dummy mdat.
  3. Recalculate box offsets and rebuild the structure.


Rebuilding the box did not succeed, nor did simply copying the header data from a working file to the other. After a few hours we ended up here:


Overall analysis is an export/transport problem:


Likely Cause: File Transfer Truncation or Misinterpretation on Windows


💡 Key Indicators:


  • All files have a valid ftyp and sometimes meta.
  • Most have a 1-byte mdat, which is nonsensical — mdat should contain all image data.
  • Real data exists in a misnamed box (dat\0 instead of mdat).
  • File sizes are normal (not 0–10KB), so data was not entirely lost.
  • Multiple files share the exact same corruption signature.


Hypothesis (Confidence: 90%):


The HEIC files were likely corrupted during transfer or unpacking from iOS/macOS to Windows, due to:


Transfer Tool Issue:

Software (e.g. iTunes, iCloud for Windows, Explorer import) misparsed or rewrote the HEIC box headers, renaming mdat → dat\0, or inserting a dummy mdat.

    • Tools that repackage photos might try to make them compatible with Windows, breaking spec-compliance.


Filesystem Interference:

If transferred via non-native or interrupted USB/SMB/MTP, metadata and chunk alignment might be off.

    • Some MTP drivers truncate or shift binary streams.


Misinterpretation of Container Format:

    1. Apple's HEIC implementation is stricter than many parsers.
    • If the HEIC was internally tiled, chunked, or encrypted, and then partially repacked for Windows, the structure may survive, but the offsets and identifiers will be invalid.


Supporting Evidence:

  • Multiple images have valid structure but incorrect linking.
  • The mdat box being exactly 1 byte in several cases is not coincidental — it's a placeholder.
  • Real data is immediately after the dummy mdat, suggesting reassembly was attempted incorrectly.


I want to focus on this:


If the HEIC was internally tiled, chunked, or encrypted, and then partially repacked for Windows, the structure may survive, but the offsets and identifiers will be invalid.


In the past some HEIC files that had been modified had a different naming structrure I think it was like IMG_E1230.heic . Perhaps the "E" stands for edited? There are reports of these photos failing to copy properly to windows. However, it usually wasn't a big deal because the original unedited photo would still be there. I am wondering if apple changed how this works - for example, keeping the edits stored with the photo in the meta data - which then breaks somehow when being transfered.


May 25, 2025 12:08 AM in response to unlisted account

So Windows does not display some thumbnails, can it also not open them? Does that happen in all new .heic or just in some of them and if the latter, is there some difference how they were shot? Can those .heic be opened in Windows 11 or in a Mac running newish macOS (Mojave or later)?


iOS 18 added some new features to .heic images and HEVC movies and Windows might need updates to support them. High Sierra was the first macOS to support .heic but even that no longer supports the new .heic flavor and you need Mojave or later for that.


As a workaround you could set the iPhone to shoot .jpg instead .heic.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

HEIC media corrupt after transfer to Windows 2025 - Many lost family photos

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.