Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Clean Corrupted Media Files on iPhone

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Corrupted photos and videos on your iPhone can appear as gray thumbnails, fail to open, or crash the Photos app. This guide walks you through practical methods to clean up these files, free up storage, and prevent future corruption. You'll need your iPhone with the latest iOS update installed, and optionally a computer with iTunes or Finder for backup purposes.

What You'll Need

  • Your iPhone (with iOS 15 or later recommended)
  • iCloud storage (if you use iCloud Photos)
  • A computer with Finder (macOS Catalina or later) or iTunes (Windows or older macOS) for backup
  • A USB cable (if you plan to back up to a computer)

Step-by-Step

  1. Identify the corrupted files. Open the Photos app and look for thumbnails that are gray, pixelated, or show a question mark. Tap on them to see if they open. If they don't, they are likely corrupted.
  2. Force-quit the Photos app. Swipe up from the bottom of the screen and pause, then swipe the Photos app card away. This clears temporary glitches that might make files appear corrupted when they aren't.
  3. Restart your iPhone. Press and hold the side button and either volume button until the power off slider appears. Drag the slider, wait 30 seconds, then turn your iPhone back on. This often fixes minor file system errors.
  4. Check storage space. Go to Settings > General > iPhone Storage. If storage is nearly full, free up space by deleting other large files or apps. Low storage can cause media files to save incompletely, leading to corruption.
  5. Delete the corrupted files directly. In the Photos app, tap Select, choose the corrupted thumbnails, then tap the trash icon. Confirm deletion. If the file is locked, you may need to unlock it first by tapping the lock icon on the photo.
  6. If deletion fails, use a third-party file manager. Apps like Documents by Readdle (free) can access your photo library. Connect your iPhone to a computer, open the file manager, navigate to DCIM folder, and delete the corrupted files there. This bypasses Photos app restrictions.
  7. Recover from iCloud (if you have a backup). If the corrupted files are important, check if you have an iCloud backup from before the corruption. This will replace your entire phone data with the backup, so use it only if you have a recent backup and are willing to lose recent changes.
  8. Repair the photo library. If many files are corrupted, your photo library might be damaged. Connect your iPhone to a computer, open Finder (or iTunes), select your device, and click "Restore iPhone." This reinstalls iOS and may repair the library, but it will erase all data unless you have a backup.
  9. Prevent future corruption. Keep your iPhone updated (Settings > General > Software Update), avoid force-quitting the camera app while saving, and ensure you have enough free storage (at least 10% of total capacity).

Common Mistakes

  • Deleting files from iCloud.com. If you delete a corrupted file from iCloud.com, it will also delete it from all your devices. Only do this if you're sure you don't need it.
  • Assuming all gray thumbnails are corrupted. Sometimes a photo is still loading from iCloud. Wait a few seconds or check your internet connection before deleting.
  • Using third-party "repair" apps. Many apps claim to fix corrupted photos but often just delete them or require payment. Stick to built-in methods.
  • Ignoring the "Recently Deleted" folder. Deleted photos stay there for 30 days. If you accidentally delete a good file, you can recover it from there.

Tips

  • Export and re-import. If you have a corrupted video that won't play, try exporting it to a computer via AirDrop or cable, then re-import it. This can sometimes repair the file structure.
  • Use a third-party converter. On a computer, try converting the corrupted video to a different format (e.g., MP4 to MOV) using free software like HandBrake. This can sometimes salvage playable parts.
  • Check the file extension. If you see a file with a weird extension (like .tmp or .dat) in your DCIM folder, it's likely a corrupted file that should be deleted.
  • Keep a backup. Regularly back up your iPhone to iCloud or a computer so you can restore from a clean state if corruption spreads.

Troubleshooting

If the corrupted files won't delete: Force-quit Photos, restart your iPhone, then try again. If still stuck, connect to a computer and delete via the DCIM folder. If that fails, you may need to erase all content and settings (Settings > General > Transfer or Reset iPhone > Erase All Content and Settings) and restore from a backup.

If the Photos app keeps crashing: This often indicates a severely corrupted library. Try offloading the Photos app (Settings > General > iPhone Storage > Photos > Offload App) which frees up space but keeps documents. Then reinstall it. If that doesn't work, restore your iPhone from a backup.

If you can't see the DCIM folder on a computer: Make sure your iPhone is unlocked and you've tapped "Trust" on the computer prompt. On Windows, you may need to install Apple's Windows support software. Also, check that your cable supports data transfer (not just charging).

If iCloud backup is not available: Check that you have enough iCloud storage and that backups are enabled. If you never had a backup, you cannot recover corrupted files from iCloud—only from a local computer backup if you made one.

If the problem persists after all steps: Consider a full factory reset (Settings > General > Transfer or Reset iPhone > Erase All Content and Settings). This will erase everything, so only do it if you have a backup. After reset, set up as new iPhone and test if the corruption is gone. If it still occurs, it might be a hardware issue with your storage chip—contact Apple Support.

Frequently Asked Questions

Can I repair a corrupted photo instead of deleting it?

Sometimes. Try exporting the file to a computer and opening it in a photo editor like Photoshop or GIMP. If the file opens, you can resave it as a new file. If it doesn't open, the data is likely beyond repair.

Why do my photos become corrupted in the first place?

Common causes include interrupted saving (e.g., force-closing the camera app), low storage space, iOS bugs, or syncing errors with iCloud. Physical damage to the phone's storage chip can also cause corruption.

Will deleting corrupted files free up a lot of space?

It depends on the file size. Videos are usually larger than photos, so deleting a few corrupted videos can free up hundreds of megabytes. Check the file size in the Photos app by tapping the info icon.

Can I recover a corrupted video from iCloud?

If the corrupted version is what's stored in iCloud, then no. But if you have an older backup (from before the corruption), you can restore that backup to get the original file. Note that restoring a backup replaces your entire phone data.

Is there a way to prevent corruption during transfer?

Yes. Always use the original Apple cable or a certified third-party cable. Avoid unplugging during transfer. Use AirDrop for wireless transfers, which is generally more reliable than cables.

What if I can't afford to lose the corrupted files?

Do not delete them. Instead, back up your entire iPhone to a computer using Finder/iTunes. Then try to repair the files on the computer using recovery software like Disk Drill or PhotoRec. These tools can sometimes extract partial data.