You can recover deleted photos from a DSLR camera as long as the memory card hasn't been overwritten with new data. Stop using the card immediately, remove it from the camera, connect it to a computer using a card reader, and run photo recovery software such as Stellar Photo Recovery to scan and restore the images. Success rates are highest when you act within minutes of noticing the loss, not days later.
This guide covers every recovery method that actually works for DSLR cameras, including RAW file recovery, free tools, camera-specific error fixes, and how to stop this from happening again.
Why Deleted Photos Are Still Recoverable
When you delete a photo on a DSLR, whether through the camera's delete button, a format command, or by accident during file transfer, the image data doesn't vanish immediately. The camera only removes the file's entry from the memory card's index (its file allocation table). The actual pixel data stays in place on the card until the card writes new photos or video over that same physical space.
This is why speed matters more than any single piece of software. A card that still holds the original data is recoverable. A card that has been shot on repeatedly after the loss usually isn't, at least not completely.
Two things determine how recoverable your photos are:
- How much new data has been written to the card since deletion. Every new shot increases the risk of overwriting.
- The file format. JPEGs are small and often sit in one continuous block, so they're easier to reconstruct. RAW files (CR2, CR3, NEF, ARW, ORF, RW2, DNG) are large, sometimes 25 to 50 MB each, and frequently get split across multiple, non-adjacent sectors on the card. That fragmentation is the main reason RAW recovery fails more often than JPEG recovery.
Before You Do Anything Else: 4 Critical First Steps
Do these in order before opening any software.
- Stop shooting immediately. Turn the camera off rather than continuing to review or delete images. Every new frame risks overwriting the ones you're trying to recover.
- Remove the memory card correctly. Power the camera off first, then eject the card. Never pull a card while the camera is writing to it.
- Enable the write-protect lock if your card has one. Most SD cards have a small physical switch on the side that blocks new writes. Flip it before you do anything else.
- Don't format or reformat the card, even if the camera prompts you to with a "card error" or "not readable" message. Formatting rewrites the card's index and can make recovery harder, though it usually doesn't erase the underlying data outright. Connect the card to a computer instead of trusting the camera's own repair prompts.
Once the card is safe, move to recovery.
Quick Ways to Recover Deleted Photos from DSLR Cameras
Method 1: Recover DSLR Photos with Photo Recovery Software (Most Reliable)
This is the method that works for the vast majority of accidental deletions, formatted cards, and corrupted memory cards. Here's the general process, followed by a walkthrough using Stellar’s software dedicated for Photo Recovery, which handles native camera RAW formats well and is a safe starting point for beginners and professionals alike.
Step-by-step process
- Connect the SD or CF card to your computer using a card reader rather than a camera-to-USB cable. A direct card reader gives the recovery software more reliable low-level access to the card.
- Install the recovery software on your computer's main drive, not on the memory card you're trying to recover. Installing onto the same card risks overwriting the very files you're rescuing.
- Open the software and select the memory card as the scan target.
- Run a deep or "all-around" scan, not just a quick scan. Quick scans only catch recently deleted files with intact file-table entries. A deep scan reads the raw sectors and rebuilds files by signature, which is what you need after formatting or corruption.
- Preview the results. Good recovery tools let you preview JPEGs and many RAW formats before recovering them, so you're not guessing which files are intact.
- Recover to a different drive, never back onto the same memory card. Save recovered files to your computer's hard drive or a separate external drive.
- Open a sample of recovered RAW files in Lightroom, Capture One, or your camera manufacturer's software to confirm they're not just recoverable by name and size but actually intact. A corrupted header can produce a file that "recovers" successfully but won't open.
Using Stellar Photo Recovery specifically
Stellar Photo Recovery is worth calling out because it's built specifically around image and video recovery rather than general file recovery, which matters for DSLR RAW formats:
- Supports native RAW formats including CR2, CR3, NEF, NRW, ARW, SRF, ORF, RAF, RW2, DNG, and more, covering Canon, Nikon, Sony, Fujifilm, Olympus, Panasonic, and Pentax cameras.
- Offers a free edition that lets you scan, preview, and recover a limited number of files at no cost, useful for testing whether your photos are actually recoverable before paying for anything.
- Includes deep scan mode for formatted or corrupted cards where the file system itself is damaged.
- Works on both Windows and Mac.
The workflow is: download and install on your computer, launch the software, select the memory card, choose the file types you want (or scan for everything), run the scan, preview results, and recover to a separate folder on your hard drive.
Method 2: Check Cloud Sync and Companion Apps First
Before you scan anything, check whether the photos already exist somewhere else. Many photographers unknowingly have a second copy:
- Canon Camera Connect, Nikon SnapBridge, Sony Imaging Edge Mobile, and Fujifilm's companion apps often auto-transfer JPEGs (and sometimes RAW files) to a paired phone as you shoot.
- Cloud backup tools like Google Drive, Dropbox, OneDrive, or iCloud may have synced photos automatically if you had backup enabled during import, and most keep a trash or version history for 30 days or more after deletion.
- Editing software with cloud sync, such as Lightroom CC, may hold a copy even if the originals are gone from the card.
This step takes two minutes and sometimes eliminates the need for recovery software entirely.
Method 3: Free and Open-Source Recovery Tools
If you're comfortable with a steeper learning curve or want a completely free option, these tools are worth knowing:
- PhotoRec is a free, open-source, cross-platform tool. Despite the name, it recovers all file types, not just photos, and works by scanning for file signatures rather than relying on the file system. It has no graphical preview and runs from the command line, so expect to sort through results afterward. Filter by your camera's RAW extension (CR2, NEF, ARW, DNG) to cut through the noise on a formatted card.
- TestDisk (from the same developer as PhotoRec) is better suited to fixing partition tables and recovering lost partitions than individual photo recovery, but it's a useful companion tool if your card shows up as "RAW" or unformatted in Windows.
- Recuva is Windows-only, free for unlimited recovery, and fine for straightforward recently-deleted JPEGs on a healthy card. It struggles with RAW files and with cards that have been formatted or show file system corruption, so treat it as a first-pass tool rather than your only option.
Free tools are a reasonable first attempt for simple deletions. For formatted cards, corrupted file systems, or RAW-heavy losses, dedicated photo recovery software with signature-based deep scanning generally performs better.
Method 4: The Manual attrib Command (Windows, Limited Use Cases)
If your card shows files as missing but the card itself reports normal storage usage, hidden or system-attribute files may be the cause rather than actual deletion. On Windows, you can try:
- Connect the card and note its drive letter (for example, G:).
- Open Command Prompt as Administrator.
- Type attrib -h -r -s /s /d G:\*.*, replacing G with your card's actual drive letter.
- Press Enter and check the card for previously hidden files.
This only helps in a narrow set of cases, typically virus-related attribute changes, and does nothing for genuinely deleted or overwritten files. Don't rely on it as a general recovery method.
Recovering RAW Files: What Makes It Different
RAW recovery deserves its own section because it's where most DIY recovery attempts run into trouble.
Why RAW files are harder to recover:
- Size and fragmentation. A 30 to 50 MB RAW file rarely sits in one continuous block on a memory card, especially on cards that have been used for many shoots. Recovery software has to correctly reassemble scattered fragments, and generic tools sometimes get the order wrong, producing a file that opens with visible corruption or won't open at all.
- Proprietary structures. Each manufacturer's RAW format has its own internal structure. Software with format-specific, vendor-aware recovery algorithms for Canon, Nikon, Sony, and other RAW formats tends to reconstruct these files more completely than tools using only generic file-carving methods.
- Partial overwrites. If only part of a RAW file's data has been overwritten, some tools will still "recover" it, but the result opens with corrupted sections, color banding, or won't open in your RAW editor at all.
Practical tips for RAW recovery:
- Prioritize software that explicitly lists your camera's RAW extension as supported, rather than assuming generic "RAW support" covers it.
- After recovery, open several files from each format in your actual RAW editor (Lightroom, Capture One, or your manufacturer's software), not just a generic image viewer, since some viewers render a corrupted file's embedded JPEG preview and make it look fine when the RAW data underneath is damaged.
- If a first scan misses files or returns damaged RAW files, a byte-for-byte disk image of the card followed by a scan of the image file (rather than the live card) can sometimes recover data a direct scan missed, particularly on cards with early signs of failure.
Comparing the Best Photo Recovery Software
| Software | RAW Format Support | Free Tier | Best For | Platform |
|---|---|---|---|---|
| Stellar Photo Recovery | Extensive (CR2, CR3, NEF, ARW, ORF, RAF, RW2, DNG, and more) | Yes, limited free recovery | Beginners and professionals who want dedicated photo/video recovery with a simple workflow | Windows, Mac |
| Disk Drill | Strong, plus fragmented video reconstruction | Yes, limited free recovery | General-purpose recovery with a polished interface | Windows, Mac |
| PhotoRec | Good via signature scanning, no format-specific reconstruction | Fully free | Budget recovery, comfortable with command-line tools | Windows, Mac, Linux |
| Recuva | Weak on RAW, strong on JPEG | Fully free, unlimited | Simple, recent deletions on a healthy card | Windows only |
| EaseUS Data Recovery Wizard | Good, broad format support | Limited free recovery | Users who also need document and video recovery | Windows, Mac |
| R-Studio | Strong, technical/forensic-grade | Limited free preview | Advanced users, RAID or severely damaged file systems | Windows, Mac, Linux |
How to choose:
- Recently deleted, card still healthy: A free tool like Recuva or the free tier of Stellar Photo Recovery will likely handle it.
- Formatted card or "RAW" drive error: Choose software with deep scan and signature-based recovery, such as Stellar Photo Recovery or Disk Drill.
- Mostly RAW files from a professional shoot: Prioritize format-specific RAW reconstruction over a tool that simply lists RAW as "supported."
- Card won't mount at all, or shows physical damage: Skip software entirely and go to Method 5 below.
Method 5: Professional Data Recovery Services
If the card doesn't mount, makes clicking or unusual sounds (rare for flash memory but possible with card readers or controllers), shows visible physical damage, or software scans return nothing, a professional recovery lab is the safer option. These services can read the memory chips directly and reconstruct data at a level consumer software can't reach.
This route costs more and takes longer, but it's the right call when:
- The card isn't recognized by any computer or card reader.
- You've already run one recovery scan that failed and don't want to risk further data loss with additional attempts.
- The photos are irreplaceable (a wedding, a one-time event) and the cost of professional recovery is justified by what's at stake.
Common DSLR Memory Card Errors and What They Mean
| Error Message | Likely Cause | What To Do |
|---|---|---|
| "No memory card" / card not detected | Card contacts dirty, card reader fault, or card failure | Clean contacts gently, try a different reader, try a different USB port |
| "Card error" (Canon-style) | File system corruption or incompatible card | Do not format in-camera; scan on a computer first |
| Card shows as "RAW" in Windows | File system table is damaged, not the same as camera RAW image files | Use recovery software before attempting any format or repair |
| Files show 0 KB or won't open | Partial write, power loss mid-write, or overwritten data | Deep scan for intact copies; check backups first |
| Card physically won't insert or is cracked | Physical damage | Stop attempting insertion; go straight to a recovery lab |
Common Mistakes That Make Recovery Harder
- Continuing to shoot after noticing missing photos. This is the single most common cause of permanent, unrecoverable loss.
- Formatting the card to "fix" an error message before attempting recovery.
- Installing recovery software directly onto the memory card instead of the computer's main drive.
- Recovering files back onto the same card they were lost from.
- Trusting only a quick scan on a formatted or corrupted card, when a deep scan is what's actually needed.
- Assuming a recovered file is intact just because it previewed or has the right file size. RAW files in particular need to be opened in real editing software to confirm they're usable.
How to Prevent This From Happening Again
- Import after every shoot, not at the end of a trip or project. The longer photos sit only on the card, the bigger the risk window.
- Follow a 3-2-1 backup habit where practical: the original card, a copy on your computer, and a copy on external storage or cloud backup.
- Retire memory cards after 2 to 3 years of regular use, or sooner if you notice slow writes, errors, or files that won't open. Card failure rates climb with age and write cycles.
- Always format the card in-camera, not on a computer, once you've confirmed a successful backup. In-camera formatting keeps the file system optimized for that specific camera.
- Buy memory cards from authorized retailers. Counterfeit cards are a real and common cause of "impossible" data loss and often report false capacity.
- Use two cards in cameras with dual card slots and shoot RAW to one and JPEG (or a RAW backup) to the other for important shoots.
Frequently Asked Questions
Can I recover deleted photos from a DSLR without a computer?
Not reliably for anything beyond very recent deletions using the camera's own limited undo options, if your model even has one. For real recovery, you need to connect the card to a computer and run recovery software.
Is it safe to use free photo recovery software?
Yes, if you choose an established, reputable tool. Avoid obscure free software from unfamiliar sites, since some bundle unwanted software or lack real recovery capability. Stick to well-known names with verifiable track records.
How long do deleted photos stay recoverable on a memory card?
There's no fixed time limit. What matters is how much new data has been written to the card since deletion, not how many hours or days have passed. A card left untouched for months can still be recoverable, while a card used heavily for even an hour can already have overwritten data.
Can formatted memory cards be recovered?
In most cases, yes. A standard format (as opposed to a low-level or secure erase) typically clears the file table rather than wiping the underlying data, so deep-scan recovery software can usually rebuild the files by signature.
Why do some recovered RAW files show corruption or won't open?
This usually means the file was partially overwritten before recovery, or the fragments were reassembled incorrectly by software without format-specific RAW support. Trying a tool with dedicated support for your camera's RAW format sometimes recovers a cleaner copy.
Do I need different software for different camera brands?
Not necessarily different software, but you do need software that explicitly lists your camera's RAW format (CR2/CR3, NEF, ARW, and so on) as supported, since generic recovery engines handle some formats better than others.
A Note on Limitations
No recovery method guarantees 100% success. Once data has been physically overwritten, no software or lab can bring it back. Photo recovery from DSLR camara depend on how much the card was used after deletion, the card's condition, and the file format involved. Treat any recovery attempt as a best effort rather than a certainty, and build a backup habit so you're not relying on recovery in the first place.
Sign in to leave a comment.