How to fix a corrupted SD card on a Mac (and keep your photos)
THE SHORT ANSWER
Get the photos off first, then repair the card. Most fixes for a corrupted SD card, like formatting it or letting First Aid rewrite a damaged file system, put the photos on it at risk. So scan the card with a read-only recovery tool, save what you need to another drive, and only then run First Aid or reformat the card in your camera. If it keeps failing after that, replace it.
What “corrupted” means for an SD card
An SD card keeps your photos in one place and a small index, the file system, in another. The index says which photos exist and where each one starts. When people say a card is corrupted, it’s usually that index that’s damaged: a write was cut short, the card was pulled out too early, or a camera battery died mid-shot.
That’s good news for your photos. The photo data is often still on the card. Only the map to it is broken. It’s also why the order of the steps below matters. Repairing the card means rewriting that map, and a rewrite can lose the entries that still point to your photos.
Physical failure is different. A card that’s cracked, bent, or failing inside can throw read errors no matter what you do. The steps below still apply, but go gently: read the card as few times as possible.
Signs your SD card is corrupted
Any of these suggests the file system or the card is in trouble:
- Your Mac says “The disk you attached was not readable by this computer” and offers Initialize, Ignore or Eject.
- The camera shows a card error, asks you to format the card, or can’t read it.
- The card shows up in Disk Utility but not in Finder, or mounts with no files on it.
- Photos open as grey blocks, half images or garbled colour bands.
- Folders contain files with strange names, odd dates or a size of zero bytes.
- Copying stops partway with an error, or Finder freezes while reading the card.
If the card doesn’t appear anywhere at all, not even in Disk Utility, start with SD card not showing up on Mac. That’s a connection problem to solve before anything here can help. If you’re looking at the “not readable” message right now, click Ignore, not Initialize. Our guide to the “disk not readable” message explains why.
Stop using the card. Don’t take more photos on it, don’t copy anything onto it, and don’t format it yet. Every write can land on top of the photos you want back.
Step 1: Recover the photos first
Do this before any repair. A read-only recovery tool reads the card sector by sector and rebuilds photos and videos from the data itself. It never trusts the damaged index, and it never writes to the card.
Here’s how it works with Shotback, our app for photo and video recovery on Mac:
- Connect the card with a reader your Mac can see. If Finder won’t mount it, that’s fine: as long as the card appears as a device, Shotback can read it.
- Open Shotback and choose the card. If it has been throwing read errors, create a disk image first. Shotback copies the card once to a file on another drive, then scans the copy, so a failing card is read as few times as possible.
- Scan, then preview what it finds. The scan and preview are free. Previews are reduced and watermarked until you buy.
- Save the photos and videos you want to a different drive. Shotback refuses to save onto the card you’re recovering from.
Be clear on what it does and doesn’t do. Shotback recovers photos and videos only: JPEG, HEIC, PNG, TIFF, RAW files from the major camera makers, and MP4 and MOV video. It doesn’t recover documents or other files, and it doesn’t repair the card or fix broken video files. A photo that was partly overwritten comes back partial, and it’s marked as partial. The original file names lived in the damaged index, so recovered files are named from the date and camera stored inside each one.
Prefer something free? PhotoRec does the same kind of read-only carving from Terminal. See PhotoRec for Mac for the steps, or free SD card recovery on Mac for every free option.
Step 2: Repair the card
With your photos safe on another drive, you can work on the card. Go in this order and stop as soon as the card behaves.
Run First Aid in Disk Utility
According to Apple’s Disk Utility guide, First Aid checks for and fixes errors in a disk’s formatting and directory structure. It doesn’t erase the card.
- Open Disk Utility (Applications › Utilities).
- Choose View › Show All Devices.
- Select the card’s volume in the sidebar, click First Aid, then Run.
- Repeat for the card itself, the top-level device above the volume.
If First Aid reports the card is repaired, eject it, reinsert it and check that the photos open. If it fails or the errors come back, move on to formatting.
Reformat it in the camera, not on the Mac
A camera formats a card the way that camera expects: the right file system, the right folder layout, the right cluster size. That makes an in-camera format the cleanest reset for a card you’ll keep shooting on. Use your camera’s Format menu item. Skip any “low-level” or “full” option unless you want the old data gone for good.
If the camera can’t format the card, or it’s a card for something without a format option, use the SD Association’s free SD Memory Card Formatter, which has a Mac version. The SD Association recommends it over the formatting tools built into operating systems. Disk Utility’s Erase works too: choose MS-DOS (FAT) for cards of 32 GB or less and exFAT for bigger ones.
Formatting is the step that makes the card look empty. A quick format usually leaves the old photo data in place until new shots overwrite it, which is why recovering photos after a format often works. Recover first anyway, so you never depend on that.
Know when to replace it
Cards are cheap compared with the photos on them. Replace the card if:
- errors come back after a fresh in-camera format;
- it’s physically damaged: cracked, bent, or with scratched or burnt contacts;
- it’s stuck read-only even with the lock switch in the unlocked position;
- it reports a capacity that doesn’t match the label, a common sign of a counterfeit card.
“SD card repair” tools: what they can and can’t do
Search for “SD card repair” and you’ll find a lot of software. It helps to know what kind of job each tool actually does:
- File system repair (First Aid on a Mac,
chkdskon Windows) rewrites the card’s index so it’s consistent again. It can bring a card back to life. It can also drop entries it can’t make sense of, so it isn’t a way to recover photos. - Formatters (your camera, the SD Memory Card Formatter, Disk Utility’s Erase) build a new, empty file system. They fix corruption by starting over. They don’t recover anything.
- Recovery tools (Shotback, PhotoRec, and general data recovery apps) read the card and copy what they find to another drive. They get your photos back but don’t repair the card.
- Video repair tools try to fix individual broken video files after you’ve recovered them. That’s a separate job, and not something Shotback does.
No software can fix a card that’s physically failing, and no software can bring back data that has been overwritten. Be wary of any tool that promises to “repair” a corrupted card and keep every file. In practice, that means a recovery step followed by a format. You can do both yourself, in the right order.
Keep it from happening again
- Eject the card in Finder before you pull it out, and wait for the camera’s write light to go off before you open the card door.
- Swap batteries before they run flat, especially when shooting video.
- Format each card in the camera you’re about to use it in, rather than on the Mac.
- Copy photos off regularly and keep a second copy. A card is a place to shoot, not to store.
- Buy cards from a reputable seller. Counterfeit cards fail in exactly this way.
Frequently asked questions
Can a corrupted SD card be fixed?
Often, yes. Most corruption is in the card's file system (the index that says where each photo is), not in the memory chips. First Aid in Disk Utility can sometimes repair it, and formatting the card in your camera rebuilds it from scratch. Formatting clears the index, though, so get the photos off before you format. If errors come back after a fresh format, replace the card.
Can I recover photos from a corrupted SD card?
Usually, as long as your Mac can see the card as a device and the photos have not been overwritten. A read-only recovery tool reads the card sector by sector and rebuilds photos and videos from the data itself, without relying on the damaged index. Recovered files get new names, because the original names lived in that index.
Will formatting fix a corrupted SD card?
It usually fixes the corruption, because a format writes a fresh, empty file system. It also makes the card look empty. A quick format leaves the photo data in place until new shots overwrite it, but don't rely on that: recover the photos first, then format.
Is it safe to run First Aid on a corrupted SD card?
First Aid doesn't erase the card, but it does rewrite the file system's bookkeeping. If it can't make sense of a damaged entry it may drop it, and the photo behind that entry disappears from view. If the photos matter, make a read-only copy or recover them first, then run First Aid.
What is the best SD card repair software for Mac?
For the card itself, the tools you need are free: First Aid in Disk Utility, your camera's Format command, and the SD Association's SD Memory Card Formatter. None of them recover photos. For the photos, use a read-only recovery tool before you repair anything. Be wary of anything sold as "SD card repair" that promises to fix the card and keep every file.
Why does my SD card keep getting corrupted?
Common causes are removing the card while the camera or Mac is still writing, a battery dying mid-shot, a worn or counterfeit card, and swapping one card between devices without reformatting it in the camera. If a card keeps failing after a fresh in-camera format, it's time to replace it.