If your SD card photos show up in the preview but won’t open, the file data is likely corrupted or the card’s file system has errors. This guide explains why it happens and gives you step-by-step fixes to recover and open your images.
Why Preview Works But the File Won’t Open
When you see a thumbnail or preview of a photo but can’t open it, the image header (the part that tells software how to decode the picture) is damaged or missing. The preview is often a small embedded copy stored separately in the file, so it can survive while the main image data is unreadable. Other common causes include:
- File system corruption – improper ejection, power loss, or a card reader error can break the directory structure.
- Partial write – if the card was removed while a photo was being saved, the file may be incomplete.
- Bad sectors – physical damage to the card’s memory cells can make parts of the file unreadable.
- Card reader issues – a faulty reader or a dirty contact can cause read errors that only affect larger data blocks.
Immediate Steps to Protect Your Data
Before you try any repair, stop using the card. Continued writing can overwrite the very data you’re trying to recover. Follow these steps:
- Remove the SD card from the device and set it aside.
- Do not format the card, even if the device prompts you to.
- Use a different card reader (preferably a direct USB one, not a built-in slot) to rule out reader problems.
- Copy the preview files (the ones you can see) to your computer’s hard drive as a backup.
Method 1: Use Photo Recovery Software
Dedicated recovery tools can often rebuild the file structure and extract the image data even when the header is damaged. These programs scan the raw sectors of the card and look for known image signatures (like JPEG’s FF D8 FF). Here’s the general process:
- Download a reputable photo recovery program – many offer a free trial that lets you see what’s recoverable before you pay.
- Install the software on your computer, not on the SD card.
- Connect the SD card via a card reader and select the card as the drive to scan.
- Run a deep scan – this can take 30 minutes to a few hours depending on card size.
- Preview the found files – if the software can show a thumbnail, it’s a good sign the image data is intact.
- Save the recovered files to your computer’s hard drive, not back to the SD card.
If the software’s preview also fails, the image data itself may be beyond repair, but you can still try the next method.
Method 2: Repair the File Header Manually
If you’re comfortable with a hex editor, you can sometimes fix a corrupted JPEG header yourself. JPEG files start with the bytes FF D8 FF E0 (or FF D8 FF E1 for EXIF). If those bytes are missing or altered, the file won’t open. You can:
- Open the corrupted file in a hex editor (like HxD – free for personal use).
- Check the first bytes – if they don’t match the JPEG signature, replace them.
- Also verify the file ends with
FF D9(the JPEG end marker). If it’s missing, the file may be truncated – you can try adding it. - Save a copy and try opening it.
This works only for simple header corruption, not for physical damage or severe data loss. For most users, recovery software is safer and easier.
When to Try Command-Line Tools
On Windows, you can use chkdsk to fix file system errors that might be preventing files from opening. Run it as administrator:
- Open Command Prompt as administrator.
- Type
chkdsk X: /f(replace X with your SD card’s drive letter). - Press Enter and let it scan – it will attempt to repair logical errors.
On macOS, you can use Disk Utility’s First Aid. This can fix directory issues but won’t recover deleted or overwritten data. Always back up what you can before running these tools.
How to Prevent This in the Future
Once you’ve recovered your photos (or if you haven’t, learn from the experience), adopt these habits:
- Always eject the SD card properly using the operating system’s “Safely Remove Hardware” option.
- Format the card in the camera (not the computer) every few uses – this refreshes the file system.
- Use a high-quality card from a known brand – cheap cards fail more often.
- Back up your photos regularly to a computer or cloud service.
- Don’t fill the card to 100% – leave a little free space for the file system to work.
Frequently Asked Questions
Can I recover photos from a corrupted SD card for free?
Yes, several free tools exist, such as Recuva (Windows) and PhotoRec (cross-platform). They may not recover everything, but they’re worth trying before paying for a commercial product. Just be aware that free versions often have limitations on file size or the number of files you can recover.
Why does my camera show the photos but my computer won’t open them?
The camera may use a different decoding method or may be showing a cached preview. The file itself could still be corrupted – the camera’s preview is often a small embedded thumbnail that doesn’t require the full image data to display.
Is it safe to use a card after a corruption issue?
It’s risky. The corruption could be a sign of a failing card. If you must reuse it, format it completely and test it with a few shots. But for important data, it’s better to replace the card.
What if the recovery software finds the photo but it’s still blurry or pixelated?
That usually means part of the image data is permanently lost. The software may reassemble the file, but missing data results in a lower-quality image. You can try a different recovery tool, but there’s no guarantee of a perfect restore.
Can I recover photos from an SD card that’s not recognized at all?
If the card isn’t recognized, try a different reader, clean the contacts, or test it on another device. If it still fails, the card’s controller may be damaged – professional data recovery services might be able to help, but they’re expensive. For most people, the data is lost.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Google Assistant IFTTT Recipes: 7 Useful Automations
- OLED TVs in Dark Rooms: Why They Look Better and When They Don’t
- Philips DST7060/20 7000 Series Iron: Specs & Fit
- Coal Fueled Jet Aircraft: Could It Work?675 L
- Remote Desktop on Raspberry Pi: How to Enable It
- Word Select Last Line in Paragraph?