You just deleted some irreplaceable photos taken at a family event and you are not sure what to do next. Don’t panic, as there is a good chance you can get your photos back safely. We have you covered with a guide to recovering deleted photos from any type of storage device. In some cases, the images are right there and you just need to know where to look. In other instances, you might need to use a software tool to restore your valuable photos.

Read This Before You Do Anything Else

Stop using the affected storage device as soon as you suspect that you have accidentally deleted photos.

This is the most important action that you can take to improve the chances of a successful recovery. Using the device risks potentially overwriting the storage locations containing your deleted files. Once they are overwritten they cannot ever be recovered. So stop using the device immediately. In the case of an SD card or other type of removable storage, take it out of the camera or mobile device until you can recover the lost data.

Recover Deleted Photos From an SD Card

SD cards are one of the most popular storage devices for photos and videos. They are widely used in digital cameras, smartphones, and other mobile devices to extend their storage capacity.

Here are the ways you can retrieve photos that were deleted from an SD card using either a Windows or Mac computer.

Clean the card of possible virus infection

Your SD card may be infected with a virus that needs to be removed before infecting other devices. Here are two possible methods you can use to clean an SD card.

Scan the card with an antivirus program.

  1. Insert the SD card into your computer’s card reader.
  2. Start the antivirus tool and direct it to scan the SD card.
  3. Remove any virus files that are detected.
  4. Examine the SD card and see if you can now access deleted photos.

Scan the card with an antivirus program

Use the command prompt on Windows systems.

  1. Click Start -> select Run -> type cmd -> hit Enter.
  2. Type this command in the command window: attrib -h -r -s /s /d E:\*.* and then Enter. Replace E with the drive letter assigned to the SD card.
  3. Windows will attempt to repair the card. When the command finishes, check the card for the deleted photos.

Use the command prompt on Windows systems


Check for SD card corruption

Make sure the SD card is not corrupted. To try to fix a corrupted drive, follow these steps.

  • Verify you are using a card reader that supports the type of card you are using.
  • Try using a different reader if you get error messages like “Please insert disk into drive E:”.
  • Attempt to scan the card with OS utilities and try a repair. On Windows systems, use the attrib command discussed in the previous section. Mac users need to use the First Aid function of Disk Utility.
  • Try to assign the SD card a name or drive letter.

Look in temporary storage

If you were using the SD card as a storage device for your computer, the deleted files may be in its temporary storage location. Here’s where you can look to see if that’s where your lost files can be found.

macOS and Mac OS X systems

Open the Terminal application and enter this command to view items in your Mac’s temp folder – open $TMPDIR.

Look in temporary storage mac

Windows systems

Open the Start menu and type %temp% in the Search field. Press Enter to open the folder and view its contents.

Look in temporary storage windows


Restore from a backup

If you have backed up your SD card before it experienced data loss, you can easily recover the deleted photos.

The most likely backup methodology would have you transfer the photos on the card to a folder on your computer and then back up the machine. You can use the built-in backup and restore tools that come with your operating system or opt for a third-party solution.

Let’s look at how to get back lost photos with Mac’s Time Machine or the Windows Backup and Restore tool.

Time Machine:

  1. Connect the disk containing Time Machine backups to your computer.
  2. Open the folder where the photos were last located.
  3. Open Time Machine by clicking the clock icon on the menu bar.
  4. Use the on-screen navigation to locate the files you want to recover.
  5. Press the Space Bar to preview the file.
  6. Click Restore to recover the item.

recover recently deleted photos

Windows Backup and Restore:

Based on the version of Windows you are running, you will either use File History (Windows 10) or Backup and Restore (earlier versions than Windows 10). Both tools offer intuitive help to guide you through the process.


Data Recovery Software

Use data recovery software to find deleted pictures on an SD card. Both paid and free data recovery software is available for Windows and Mac systems. In some cases, using a free solution like Recuva or PhotoRec may be all that you need for your situation. Other scenarios may demand more functionality and require a paid solution such as Stellar Data Recovery, Recoverit or Disk Drill. We are using Disk Drill for our demonstration since we feel it is a great option that allows Windows users to recover 500 MB of data for free.

Disk Drill data recovery software is a reliable and user-friendly application that can recover lost data from just about any disk-based storage device. We will go through the procedure for the Windows and Mac versions of the tool since they vary slightly.

Use the procedure for your type of system.

Windows systems:

  1. Download and install Disk Drill for Windows.
  2. Insert the SD card into the computer’s card reader and launch the application.
  3. Select the SD card from the list of disks the program displays.get deleted pictures back
  4. Click the Search for lost data button to scan for lost photos.recover deleted pictures
  5. Preview the found files and select the ones that you want to recover.restore deleted photos
  6. Click the Recover button and select a new location for the restored photos.
    Do not save them to the original SD card.retrieve deleted photos

Mac systems:

  1. Download and install Disk Drill for Mac.
  2. Insert the SD card into the computer’s card reader and start the program.
  3. Select the SD card from the program’s list of disks.
  4. Click the Recover button to scan for lost photos.access deleted photos Disk Drill
  5. Preview the found files and select the ones that you want to recover.recover deleted photos
  6. Select a new storage location that is not on the original SD card.recover deleted photos via disk drill
  7. Click the Recover button to restore your photos.retrieve deleted photos with disk drill mac

Recover Deleted Images From the Main Hard Drive

Let’s take a look at what you can do if the deleted photos were on your computer’s main hard drive. Some of the methods will essentially be the same as those used for SD cards.

Operating System resources

Both Windows and Mac users can take advantage of the facilities built into their operating systems that store recently deleted data.

To recover photos from the Windows Recycle Bin, follow these steps:

  1. Open the Recycle Bin by clicking on its icon.
  2. Find the files you wish to restore.
    Note their original location as this is where they will be restored.
  3. Click or tap on Restore to recover the photos.

recover photos from the Windows Recycle Bin

 Mac users can find recently deleted files in the Trash with these steps:

  1. Open the Trash by clicking on its icon.
  2. Identify the photo you want to recover.
  3. Right-click on the item to select it and click Put Back.
    The photo will be restored to its original location.

recover photos from the mac trash


Use your system’s search capabilities

You may just have misplaced the photos and saved them to an unknown location. Then, when you go to look for them, they are not there and you suspect they have been deleted. Try letting your OS search for them.

Windows users:

  • Use the search facility on the Start menu.
  • Use File Explorer and select the Search option from the menu bar.

 Mac users:

  • The Search box in Finder can be used to try to locate your photos.
  • Open Spotlight by clicking the magnifying glass icon in the top right of your screen and type in the name of the files you want to find.

Enable the display of hidden files

You might have a situation where the files are simply hidden and are not being displayed. You can ensure hidden files can be seen with these procedures.

Windows:

  1. Navigate to Folder options;
  2. Select Advanced settings, select Show hidden files, folders, and drives, and then choose OK.

Enable the display of hidden files windows

 Mac:

The keystroke combination of Cmd + Shift + . (dot) will show hidden files in the current folder.

Enable the display of hidden files in mac


Use the Command prompt

You may be able to recover deleted photos and other files by using the command line on your system.

Windows:

  1. Press the Windows + R keys together in a search box.
  2. Type CMD In Command Prompt window.
  3. Type chkdsk ‘drive letter’ /f and press Enter.
  4. Press Y until the command line reappears.
  5. Type the drive letter and hit Enter.
  6. Enter this command: drive letter: attrib -h -r -s /s /d E:\*.*

restore deleted photos via cmd

 Mac:

  1. Open the Terminal application.
  2. Type the command cd .Trash.
  3. Hit Return.
  4. Use this command with the filename you want to recover: mv Filename.
  5. Hit Enter and then Quit Terminal.
  6. Open Finder and search for the requested file.
  7. Drag the file to the location of your choice.

restore deleted photos via terminal


Use data recovery software

Use the appropriate procedure for the operating system you are using. These general steps will work with your choice of recovery application and with either Mac or Windows computers.

Windows and Mac systems:

  1. Download and install the recovery software. Use an external device like a flash drive for the download and installation to avoid overwriting data you may want to recover.
  2. Launch the application and select the drive from within the application.
  3. Use the app’s interface to scan for lost photos.
  4. Preview the found files and select the ones that you want to recover.
  5. Select a new location for the restored photos and recover them. Do not save them to the disk that suffered data loss to prevent file corruption.

Recover from a backup

We again refer you to the procedure for recovering from a backup used in the SD card section of the article. It works the same way for any files that you have previously backed up.
restore deleted photos via backup

Recover Deleted Images From External or USB Drives

Many people use thumb drives, flash drives, and other types of removable storage devices that attach a router through a USB port. Recovering from a pen drive is basically the same as recovering from an internal hard drive, with the exception that the device needs to be connected to the machine to enact the recovery. We will highlight any differences in the procedures below, and refer you to the previous section of the article for recovery methods.

Data Recovery Software

If you choose to use data recovery software, these are the general steps you should follow. They will work for Windows and Mac systems with the software solution of your choice.

Windows and Mac systems:

  1. Download and install the recovery software.
  2. Connect the USB drive to your computer and launch the application.
  3. Select the removable drive from the list of disks the program displays.
  4. Scan for lost photos using the software’s user interface.
  5. Preview the found files and select the ones that you want to recover.
  6. Choose a new location for the restored photos and perform the recovery. Do not save them to the USB drive to avoid file corruption.

Backups

It is good practice to backup important data that resides on external drives. You can use the same procedures outlined above to recover from a backup of your flash drive or external hard drive.

Recover Deleted Photos from a Digital Camera

Recovery from a digital camera such as those manufactured by Canon or Nikon can be done in two different ways. One method is used if the lost photos were on an SD card used to expand the camera’s capacity. If that’s your situation, remove the card from the device and use the SD card recovery procedures discussed earlier in this article.

You can also attempt a recovery directly from the camera. Most cameras have onboard navigation that allows you to look at the recently deleted folder contained in internal storage. This should be the first place you look, as it offers the quickest and simplest way to get your photos back.

You can also treat a camera recovery in the same way as that of an external hard drive using data recovery software. Attach the camera as you would a flash drive and allow the software to scan it for lost data. Recover found files to a new location and not to the camera’s internal storage.

Recover Deleted Photos from a Mobile Phone

The cameras on mobile phones are used to take and store a lot of photos. Just like any other storage device, photos can be accidentally deleted.

So let’s look at how to recover deleted photos on iPhones and Android devices.

Android phones

Android devices are extremely popular with the public. They are manufactured by many companies including Samsung, Motorola, Panasonic, and Sony. In many cases, an SD card is used to extend the phone’s storage capacity. If you have lost some photos from the SD card, refer to the first section of this article that describes how to recover deleted data from this type of device.

Here are other options for recovering lost photos from an Android phone.

  1. Open the Google Photo App on your Android device.
  2. Tap Menu in the top left and then Trash.
  3. Touch and hold the item you want to recover.
  4. Tap Restore at the bottom of the display to complete the recovery.
Recovery software can be used to recover deleted data from an Android. You can use the same procedures outlined earlier in this article regarding recovering from an external hard drive. The recovery software will scan the device’s internal memory and storage for deleted files and photos.
If you backup your Android photos to a third-party service or another device, you can recover them with the suitable procedures for your backup solution.

iPhones

Let’s look at ways to recover photos deleted from an iPhone camera roll. Depending on if and how you backup your phone’s data, you may have additional recovery options. Recovering from a backup will overwrite the data currently your iPhone, so use these methods with caution.

  1. Open the Photos App on your iPhone.
  2. Select the Recently Deleted folder.
  3. Tap the photo you want to restore and select Recover Photo to get the photo back.
  1. Launch the Mac’s Finder.
  2. Attach your iPhone to the computer.
  3. Select the iPhone from the location list in the left panel.
  4. Click the Restore iPhone button in the General tab.
  5. Click the Restore button to confirm the recovery.
  1. Log into your iCloud account from a web browser.
  2. Select Photos from the webpage.
  3. Click on the Recently Deleted album.
  4. Choose the photos you want to restore and click Recover.
  1. Open iTunes.
  2. Connect your iPhone to the computer with your Apple cable if it’s available.
  3. Select the Restore Backup option.
  4. Choose the backup you wish to use.
  5. Click Restore and wait for the process to complete.
Editors’ Choice: Recovery software
As with Android devices, connecting your iPhone to your computer will allow it to be scanned by data recovery software which may be able to get your photos back. Photos not in the recently deleted folder may be accessible through data recovery software.

Recover Deleted Images from Cloud Storage

Recovering lost photos from cloud storage providers is done the same way for both Windows and Mac users. You will be using the web browser of your choice to access the site. Here’s what you need to do with some of the most popular cloud storage vendors.

  1. Sign into your Dropbox account.
  2. Click Files in the left sidebar.
  3. Click Deleted files in the left sidebar.
  4. Check the boxes next to the items you want to recover.
  5. Click Restore to complete the procedure.
  1. Open your Google drive.
  2. Select Trash from the sidebar.
  3. Locate the file you want to recover.
  4. Right-click on the item and select Restore.
  1. Log in to MEGA.
  2. Navigate to the Rubbish Bin.
  3. View the deleted files and select the ones you want to recover.
  4. Use the Move button to move the selected items to the main cloud drive.
  1. Log in to your OneDrive account.
  2. Select the Recycle Bin from the navigation pane.
  3. Point to the items you want to recover and click the circle check box to select them.
  4. Click Restore.

Key Points for Successful Photo Recovery

There are some best practices and activities you can follow that make it more likely you can successfully recover lost photos. These recommendations apply to all types of files stored on your devices.

Backup your data

This is one of the first things that computer users are advised to do if they value their data. The inclusion of free methods to backup your Mac or Windows computer makes it inexcusable for this simple solution to be ignored. Large capacity external hard drives are relatively inexpensive and are an excellent place to store your backups.

Take care of the physical storage devices

Users with physically damaged devices may not be able to use any of the methods discussed to recover lost photos. In these cases, you may need to resort to sending your device to a data recovery center to try and get your data back. Physical damage that can contribute to data loss can be caused in many ways.

  • Shock from dropping a device;
  • Excessive heat or moisture;
  • Electrical surges;
  • Wear and tear indicated by clicking and grinding noise coming from the device.

Steer clear of viruses and malware

An infection with a virus or malware can result in unexpected data loss. To minimize the risk of infecting your storage devices, you should always have an updated antivirus program on your computer. Care needs to be taken with external storage devices and SD cards when sharing them or connecting them to unknown machines. You may inadvertently pick up a virus from an unprotected computer.

Be careful when deleting photos!

Human error is the leading cause of data loss, and accidentally deleting pictures is a common mistake. Make it a habit to think twice before hitting that delete button. Verify that you really want to delete those items before going ahead with the process. Those few extra seconds can save a lot of recovery time later.

You should now be well informed regarding the multitude of ways to recover lost photos from a digital storage device. One of the solutions above should be able to help you get your valuable photos back. Good luck, and keep taking those pictures!