Disk Detector
Windows 10 & 11 Buy license · $29.95
USB and SD cards

Corrupted SD Card: How to Fix It on Windows and Save Your Photos

Corrupted SD card fix for Windows: stop using the card, copy what you can, check it for errors and decide whether to reformat it or replace it for good.

Updated 5 minute read The Disk Detector team

To fix a corrupted SD card on Windows, first stop using it so nothing overwrites your photos, then copy off every file you can still reach. Once your files are safe, run chkdsk X: /f to repair minor file system errors, and if the card is still unreadable, reformat it, preferably in the camera or device that uses it. If the card gets corrupted again after a format, or shows errors on a second reader, the card itself is failing and should be replaced.

The order matters. Repairs and formats change what is on the card, so they come after you have saved what you can. The steps below walk through it.

Signs your SD card is corrupted

  • Windows says You need to format the disk in drive X: before you can use it.
  • The card shows as RAW or with 0 bytes in Disk Management or File Explorer.
  • Photos open as gray or half-gray images, or fail to open at all.
  • The camera shows Card error or asks you to format it.
  • Folders have garbled names or contain strange files.
  • Windows reports that the file or directory is corrupted and unreadable.

Why SD cards get corrupted

CauseHow to prevent it
Removing the card while the camera or PC is writingWait for the write light to go out; eject in Windows before unplugging
Camera battery dying mid-shotSwap batteries before they run flat
Using the same card in several devices without reformattingFormat the card in each device before using it there
Deleting or editing photos on the card from a PCCopy photos off, then format in the camera
Worn-out flash after years of use, especially in dashcamsUse high-endurance cards for constant recording, and replace them regularly
Fake or counterfeit cardTest the real capacity of new cards

Step 1: Stop using the card

Do not take more photos on it, do not let the camera format it, and do not click Format disk if Windows asks. Every new write can land on top of files you still want back. If Windows pops up a format prompt, click Cancel.

Step 2: Try another reader and port

Built-in laptop card readers and cheap USB readers fail more often than you might think, and some older readers cannot handle large SDXC cards. Before deciding the card is corrupted:

  1. Try a different USB card reader, plugged into a rear port on a desktop.
  2. Check the lock switch on the side of the card. If it is in the locked position, the card is read-only.
  3. If the card shows up fine on another reader, the problem was the reader.

If the card does not show up at all, our guide to an SD card not showing up in Windows covers drivers, drive letters and reader compatibility.

Step 3: Copy off everything you can

If File Explorer can open the card, copy the whole DCIM folder (and any video folders) to your PC before anything else. If some files fail, skip them and copy the rest. Many cameras can also transfer photos over USB or Wi-Fi, which is worth trying if the PC struggles to read the card.

If the card shows as RAW or asks to be formatted, File Explorer cannot read it. A file recovery program can scan the card and copy photos to another drive without writing to the card. Do this before any repair. Our guide to fixing a RAW drive without formatting explains why recovery comes first.

Step 4: Repair the file system with chkdsk

Once your files are safe, or if you have nothing to lose, try a repair. chkdsk can fix minor FAT32 and exFAT errors, which is what most corrupted cards have.

  1. Note the card's drive letter in File Explorer, for example F:.
  2. Right-click Start and choose Terminal (Admin).
  3. Type chkdsk F: /f, replacing F: with the card's letter, and press Enter.
  4. When it finishes, open the card in File Explorer and check your files.

Use /f, not /r, on SD cards. The /r switch scans for bad sectors, which takes much longer and tells you little on flash memory, where the card's controller manages bad blocks itself. If chkdsk says it cannot run on a RAW file system, the card needs recovery and then a format. Repaired fragments sometimes end up in a FOUND.000 folder as .CHK files.

chkdsk repairs the file system, not individual photos. It can delete entries it cannot make sense of, which is why copying files first is so important.

Step 5: Reformat the card

If chkdsk cannot fix the card, or keeps finding errors, reformat it once your photos are safe.

  • In the camera (best): use the camera's format option. It sets up the card exactly the way that camera expects.
  • In Windows: right-click the card in File Explorer and choose Format. Use FAT32 for cards of 32 GB or less (SDHC) and exFAT for 64 GB and larger (SDXC). Untick Quick Format for a full format, which checks every sector as it goes.

If the card appears but the format fails, or Windows says the disk is write-protected, see how to remove write protection. Cards that lock themselves read-only have often reached the end of their life.

Step 6: Decide whether to keep the card

Corruption from an obvious mistake, such as pulling the card mid-copy, does not mean the card is bad. Corruption with no clear cause, especially more than once, usually does. Before you trust the card again:

  • Check its real capacity. Fake cards report more space than they have and corrupt files once you pass the real limit. Our guide on how to check if a flash drive is fake applies to SD cards too.
  • Check its speed. A card that has slowed down badly is often wearing out.
  • Check for read errors. A full read of the card shows whether any areas can no longer be read.

Disk Detector checks SD cards the moment you plug them in. It tells you why a card is not recognized, whether it is write-protected or failing, and whether its real capacity matches the label, and its speed test shows whether the card still performs as it should. If a card fails any of those checks, replace it. Cards are cheap compared with the photos on them.

Keep your cards healthy

  • Format the card in the camera after you have copied photos off, rather than deleting files on a PC.
  • Eject the card in Windows before removing it from the reader.
  • Use several smaller cards on a trip rather than one large one, so a single failure does not take everything.
  • Copy photos off every day while traveling, and keep a second copy.
  • Test every new card's real capacity with Disk Detector before you rely on it.

Frequently asked questions

Can a corrupted SD card be fixed without formatting?

Sometimes. chkdsk can repair minor file system errors, but copy any photos you can reach first.

Why do SD cards get corrupted?

Removing the card while writing, low camera battery, using one card across devices without formatting and worn-out or fake cards are common causes.

Should I keep using an SD card after it was corrupted?

If it was corrupted once by a clear mistake, a format in the camera is fine. If it happens again, replace the card.

Get three guides like this every month, plus software update notices.Subscribe →