A corrupted SD card shows up in a few familiar ways: Windows asks you to format the disk before you can use it, the camera displays "Card error", files open as grey thumbnails, or the card shows as RAW with 0 bytes. The good news is that most of these are file system problems, not physical damage, and a proper reformat usually brings the card back. The order matters, though. If you format first, you lose the chance to recover your files.

Step 1: Stop using the card

Do not take more photos, do not click "Format disk" in Windows, and do not run repair tools that write to the card. Every write can overwrite data you might still recover. Take the card out and put it somewhere safe.

Step 2: Rule out the simple causes

  • Lock switch: check that the slider on the card or adapter is not halfway or in the Lock position.
  • Reader: try a different USB card reader or another computer. Laptop slots and cheap adapters cause more "corrupted card" reports than you would think.
  • Adapter: for microSD cards, try a different microSD-to-SD adapter.
  • Contacts: look at the gold contacts. Clean dust off gently with a dry, lint-free cloth.

If the card reads fine in another reader, the card was never the problem.

Step 3: Copy what you can

If the card opens, copy everything to your computer straight away, even files that look damaged. If the card does not open but your computer detects it with the right capacity, a recovery program can often scan it and save photos and videos. Run recovery before you format, and save the recovered files to your computer, never back to the same card.

If the files are irreplaceable and the card is not detected at all, contact a professional data recovery service. Do not try repeated formats.

Step 4: Check the card on Windows (optional)

If the card mounts with a drive letter, Windows can try to repair the file system. Open Command Prompt as administrator and run chkdsk E: /f, replacing E with your card's letter. This sometimes makes files reachable again. If chkdsk says the type of file system is RAW, skip to formatting.

Step 5: Reformat with SD Memory Card Formatter

Once your files are safe, use the official formatter instead of the Windows "Format" dialog. It rebuilds the card to the SD standard, which fixes partition and file system errors that other tools leave behind, such as a card that only shows a few hundred megabytes after being used in a Raspberry Pi.

  1. Open SD Memory Card Formatter and select the card. Double-check the drive letter.
  2. Choose Overwrite format. It is slower, but it writes every area of the card once and confirms the card can still accept data.
  3. Click Format and let it finish. Do not unplug the card part-way.

Not installed yet? Our download article explains how to get the official installer.

Step 6: Test before you trust it again

Copy a few large files to the card, eject it, put it back in, and check they open. If you use the card in a camera, format it in the camera too and shoot some test shots. If errors come back within days, the card is failing, and you should replace it.

When a card cannot be fixed

  • The formatter reports an error part-way through an overwrite format.
  • The card shows a wrong capacity (for example a "1 TB" card that shows 32 GB). This usually means a counterfeit card.
  • The card is permanently read-only even with the lock switch off. Many cards lock themselves when their flash memory wears out.
  • The card gets hot, is cracked, or is not detected in any reader.

In those cases, recover what you can and replace the card. Cards are cheap compared to lost footage.

Preventing it next time

Always eject the card before removing it, avoid pulling it out while a device is writing, replace batteries before they run flat, and format in the device rather than deleting files one by one on a computer. Our quick fixes and best practices on the homepage cover more ways to keep cards healthy.