How to Recover Deleted Photos From a Memory Card

To recover deleted photos from a memory card, stop using the card at once, take it out of the camera, and copy the whole card to an image file on your computer before you try anything else. Then run recovery software on that copy and save what it finds to a different drive. Deleting or quick formatting only removes the index, so the pictures are usually still there until something is written over them.

This page is about the day after something went wrong with your own card or drive. Prevention is covered in how to back up your photos and card choice in choosing the right memory card. Here you get what those pages leave out: what deleting and formatting really do, a safe step-by-step procedure, how the different kinds of recovery tool work, why some files come back broken, and when to stop and hand the card to a specialist.

Stop writing to the card: why deleted photos are usually still there

A memory card stores two things: the picture data itself, and a file system that records each file’s name, size, date and the list of storage blocks (clusters) that hold it. Cards up to 32 GB normally use the FAT32 file system and larger cards use exFAT.

When you delete a picture, the camera does not erase the picture data. It marks the file’s entry in the index as deleted and marks its clusters as free, which is why deleting is so much faster than saving. The data stays where it was until the camera needs that space for something else.

That sets the one rule that matters: every write to the card after the loss can destroy a recoverable photo.

  • Do not take another picture. One more frame may land on top of the frame you want back.
  • Do not review or delete more images in the camera. Cameras can write to the card when they rebuild their image database.
  • Do not format the card “to fix it”, and do not accept a computer’s offer to format or repair it.
  • Take the card out. On a full-size SD card, slide the lock switch to the locked position. The switch is only a signal that the reader or camera chooses to respect, so treat it as an extra, not a guarantee. MicroSD and CFexpress cards have no switch.

Once data has been overwritten, it is gone. No software and no lab can bring it back.

A lone figure seen from behind on a grassy rise, holding up a camera toward a tall observation tower against a hazy orange sky at dusk
Photo: Lonely Photographer by Duncan Rawlinson. 55mm, f/5.6, 1/80, ISO 100. Until the card is copied to a computer, every frame from an outing like this exists in exactly one place.

Deleted, formatted, corrupted or dead: four different problems

What happened What changed on the card Chance of recovery First move
Deleted one or many pictures, nothing shot since Index entries marked deleted, data untouched Very good Image the card, then try an undelete scan
Deleted, then kept shooting Some of the freed space has been reused Partial: whatever was not overwritten Stop now, image the card, run a signature scan
Quick format in the camera or computer A fresh, empty index was written, data area mostly untouched Good, usually without file names Image the card, run a signature scan
Full or low-level format, or a secure erase Every block was erased or overwritten None Look for other copies instead
“Card error”, “cannot read card”, or the computer asks to format it The index is damaged, the data is often intact Good Decline the format, image the card, scan the image
Card does not show up at all, shows the wrong capacity, or is physically broken The controller or the memory chip has failed Software cannot help Stop and consider a recovery lab

Two details need care. The format option in most cameras is a quick format, but some cameras offer a second option, often called a full or low-level format, that erases the entire card. And some cameras tell certain card types to discard their contents during a normal format, which is more common with the fast cards built on solid-state drive technology than with ordinary SD cards. You cannot tell from the outside which happened, so always try: imaging and scanning cost nothing but time.

What causes a card to corrupt

Corruption almost always means the index was left half-written. The usual causes are removing the card while the camera’s write light is on, a battery dying mid-write, pulling the card from a computer without ejecting it, and moving a card between cameras without formatting it in each. Counterfeit cards that report more capacity than they have are another: once the real capacity is used up, later pictures are simply not stored.

Check the easy places before you scan anything

Recovery software is the last resort. Spend ten minutes ruling out copies you may already have:

  • The second card slot. If your camera was writing to two cards, the other card may hold everything.
  • The computer’s trash or recycle bin. Files deleted from a card in a card reader sometimes go to a hidden trash folder on the card itself. Files deleted in the camera never do.
  • A phone’s “recently deleted” album. Phones and cloud photo services keep deleted pictures for a limited period, often about 30 days.
  • Your import folder. A half-finished import may have copied more than you think. Sort by date and look.
  • Your backups. A dated backup of the drive, or a second copy made under a sound file management routine, is the only kind of recovery that is certain.

Make an image of the card first

A card image is a single file that contains an exact copy of every block on the card, including the parts the file system says are empty. Those “empty” parts are where your deleted pictures live, which is why dragging the visible files to your desktop is not the same thing. With an image, the card is read once and put away, and you can try several tools on a copy that cannot be made worse.

  1. Free up space. The image is as big as the card, not as big as the pictures on it. A 64 GB card needs 64 GB free, plus room for the recovered files.
  2. Use a card reader, not the camera. Most cameras connected by cable present only a list of pictures, not the raw blocks of the card, so recovery tools cannot see deleted data through them.
  3. Insert the card and decline every prompt to format, initialise or repair it.
  4. Create the image. Many recovery programs have a “create image” or “clone” command, and every desktop operating system includes a disk tool or a command that can copy a whole device to a file. Choose the whole card, not a partition or volume on it.
  5. Let it finish. At 80 megabytes per second a 64 GB card takes roughly 13 minutes; in a slow reader at 20 megabytes per second it takes close to an hour.
  6. Put the card away. From here on, point every tool at the image file.

If the copy reports read errors or keeps stalling, the card is failing physically. Use an imaging tool designed for damaged media: these copy the easy areas first, skip the unreadable spots and return to them later, so one bad patch does not cost you the rest.

A warm-toned home office with a desktop computer on a glass table, wooden chairs around it and a person working at a second desk in the background
Photo: Working from home by Duncan Rawlinson. 19mm, f/4, 1/13, ISO 400. Recovery is slow, careful desk work: the card goes into a reader here, and everything it gives back is saved to a drive in the computer, never to the card.

How recovery software finds photos: undelete versus signature scan

File-table undelete

An undelete scan reads the file system index and looks for entries marked as deleted. Each entry still holds the file name, the date, the size and the starting cluster, so the tool can hand the file back with its original name and folder. It is fast, often a minute or two, and works best right after a simple delete. It fails after a format, because the old index has been replaced by a blank one, and it struggles on a corrupted card where the index itself is the damaged part.

Signature scanning

A signature scan, also called file carving or a deep scan, ignores the index completely. It reads the card from the first block to the last, looking for the byte patterns that mark the start of known file types. Every JPEG begins with the same few bytes and ends with a standard marker, and each raw format, video format and HEIF file has a recognisable header too. When the tool finds a header, it copies data from that point until it reaches the end of the file.

Signature scanning is slower, and it has two side effects. File names and folders are lost, since those lived in the index, so files come back with generated names. And the tool assumes each file sits in one unbroken run of blocks. Capture dates survive: they are stored inside each file as metadata, so you can sort and rename the results by date taken.

Run the undelete scan first if you only deleted files, and a signature scan after a format, after corruption, or when the undelete results are incomplete. Always set the output folder to a drive that is not the card.

Why some photos come back broken

A recovered file that opens is not always a whole picture. Check every important one at full size, not just as a thumbnail.

What you see Likely cause What to try
Top of the picture is fine, the rest is grey or shifted bands of colour The file was fragmented or partly overwritten, so the tool copied the wrong blocks after a certain point A different tool or scan mode; otherwise keep the usable part or the embedded preview
Hundreds of tiny JPEGs, many of them duplicates Thumbnails and previews embedded inside raw files and larger JPEGs were found as separate files Sort by file size and ignore the small ones once the full files are confirmed
Video file has the right size but will not play The index that players need was never written or was not recovered with the rest A video repair tool that rebuilds the index using a good clip from the same camera

Fragmentation is the main enemy

On a freshly formatted card a camera writes each picture into the next free space, so every file sits in one continuous run. Signature scanning recovers those almost perfectly. Trouble starts when you delete individual frames in the camera and keep shooting. The camera fills the gaps, and a file that does not fit a gap is split into pieces, so a carved copy starts correctly and then runs into another file’s data. This is the practical reason not to delete pictures in the camera: do your culling on the computer after the card is safely copied.

Raw files and video

Most raw files are built on the same container structure as TIFF and carry one or more JPEG previews inside them. Good recovery tools recognise the common raw formats and return them whole. Weaker ones return only the embedded previews, or mislabel raw files as TIFFs. If yours come back as small JPEGs, try a tool that lists your camera’s raw format among its supported types. If a raw file is damaged beyond use, its embedded preview is often close to full resolution and worth keeping. (For how the two formats differ in normal use, see RAW vs JPEG.)

Video is harder. Clips are large, so they are more likely to be fragmented, and common video containers keep a separate index describing where every frame sits. Many cameras write that index only when recording stops. If the battery died or the card was pulled mid-recording, the data may be on the card with no index, and ordinary players refuse it. Video repair tools can rebuild the index by studying a healthy clip from the same camera and settings, so keep one. Card and slot choices for recording are covered in camera settings for video.

Hard drives, SSDs and TRIM

Hard drives (spinning disks) behave like memory cards. A deleted file’s data stays in place until the space is reused. If the lost pictures were on the drive your operating system runs from, shut the computer down, because a running system writes temporary files constantly. Then scan that drive from another computer or from a separate startup drive.

Solid-state drives are different because of a command called TRIM. An SSD cannot overwrite a used block directly: the block has to be erased first, and erasing is slow. To keep the drive fast, the operating system uses TRIM to tell the drive which blocks belong to deleted files, and the drive then erases them in the background, ready for reuse. From that moment the drive typically returns zeros for those blocks. On an internal SSD with TRIM active, which is normal, a file emptied from the trash can become unrecoverable within seconds or minutes, and no software changes that. Formatting an SSD usually trims the whole drive.

There are gaps in TRIM that sometimes save you. External SSDs connected by USB do not always receive TRIM, depending on the enclosure and the operating system. Corruption is not deletion: if the file system is damaged but nothing was deleted, no TRIM was sent and the data is still there. And ordinary SD cards used through a card reader are generally not trimmed when you delete a file on a computer. So an SSD is still worth scanning. Just expect less, and do not delay.

When the card is not recognised at all

Work through these in order, and stop as soon as the card appears.

  1. Try a different reader, cable and port. Readers, built-in laptop slots and microSD adapters fail more often than cards do.
  2. Try a different computer, and wipe visibly dirty contacts gently with a dry, lint-free cloth.
  3. Open the operating system’s disk utility and look for the device itself, not a drive letter or a volume name. This is the key test.

If the device is listed with the correct capacity but no readable volume, the problem is logical: the file system is damaged and the memory is fine. Image it and run a signature scan on the image. If the device is missing, shows a capacity of zero or a few megabytes, or connects and disconnects repeatedly, the card’s controller or memory has failed and software has nothing to read.

Resist the built-in “repair” or “check disk” function until you have an image. Those tools are designed to make a file system consistent again, not to rescue files, and they do it by rewriting the index: cutting short files whose records look wrong and setting aside fragments they cannot place. On the original card that can make things worse. On a copy of the image, it is a reasonable thing to try.

If a card got wet, let it dry completely before putting it in anything: cards are sealed and often survive water. A cracked or bent card should not be inserted at all.

When a recovery lab is worth it

A data recovery lab can do things software cannot: read the memory chip directly when the controller has died, repair broken connections, and reassemble the raw contents into files. That is the only route for a card that is not detected, is physically broken, or reports the wrong capacity.

A lab cannot recover overwritten data, trimmed SSD blocks or a card that was fully erased, and an honest one will say so. Before you send anything, ask how the evaluation works, whether there is a charge if nothing is recovered, and how your files are kept private. The work is skilled and priced accordingly, so the decision comes down to what the pictures are worth to you or to a client. If the shoot was paid work, check your contract and any photography insurance you hold, and ask the insurer or a professional what applies to you. Whatever you decide, stop experimenting first: every failed attempt on a dying card lowers the odds for the lab.

After the recovery: verify, back up, then reuse the card

  • Open the files, do not just count them. View important frames at 100 percent and play video clips to the end.
  • Rename by capture date to restore shooting order.
  • Back up the recovered set to a second drive before you do anything to the card.
  • Keep the image file until you are sure nothing is missing.
  • Format the card in the camera before using it again. If the card failed without an obvious cause such as a pulled battery, retire it.

Then close the gaps that let it happen. Record to both slots if the camera has two (see parts of a camera). Copy the card to two places before formatting it. Format in the camera at the start of each shoot instead of deleting files one by one. Wait for the write light to go out before opening the card door. Number your cards and rotate them, so a full card can sit untouched until its contents are confirmed safe. On the road, follow the routine in backing up photos when travelling.

Common mistakes

  • Carrying on shooting on the same card. Each frame can overwrite a deleted one. Fix: swap to another card the moment you notice, and put the affected card in a case.
  • Saving recovered files back to the card. The files being saved overwrite the files still waiting to be found. Fix: always choose an output folder on a different drive.
  • Clicking “format” when the computer offers. A format replaces the index and, on some devices, discards the data. Fix: cancel, image the card, and work on the image.
  • Running a disk repair tool on the original card. It rewrites the index and can cut files short. Fix: image first, and repair only a copy.
  • Installing recovery software on the drive that lost the files. The installation itself writes over free space. Fix: install and run it from another drive or another computer.
  • Trusting thumbnails. A file can show a perfect thumbnail and be grey from a third of the way down. Fix: open at full size before declaring success.

Try this

Rehearse a recovery when nothing is at stake, so the real one is calm. Take a spare card with nothing important on it and format it in the camera. Shoot twenty frames of anything, copy them to your computer as usual, then delete ten of them in the camera and format the card with the normal format option. Now follow the procedure: card out, card reader, image the whole card to a file, run an undelete scan and then a signature scan on the image, and save the results to a folder on your computer. Compare what came back with the twenty originals: how long the imaging took, whether the names survived, and how many extra small JPEGs appeared. In about twenty minutes you learn exactly what your camera’s format does and which tool you would reach for.

Frequently asked questions

Can you recover photos from a formatted SD card?

Usually yes, if it was a normal quick format and you have not shot on the card since. The format writes an empty index and leaves the picture data in place, so a signature scan can find it, although file names are lost. A full or low-level format that erases the whole card leaves nothing to recover.

Why does my computer say the card needs to be formatted?

The computer can see the card but cannot make sense of its file system, usually because the index was left half-written. The pictures are often intact. Cancel the prompt, make an image of the card, and run a signature scan on the image.

Can deleted photos be recovered from a phone?

Check the “recently deleted” album and any cloud backup first, because that is where almost all successful phone recoveries come from. After those are emptied, the phone’s encrypted internal storage discards the data and desktop tools cannot retrieve it. A removable microSD card is the exception and can be scanned like a camera card.

Is it safe to keep using a card after it corrupted once?

If there was a clear cause, such as removing it mid-write, a format in the camera normally makes it reliable again. If it corrupted for no obvious reason, or it happens twice, retire it.

Related guides