Drive Restorer
Windows 10 & 11 Buy license · $29.95
Drives and devices

How to Recover Data From a Formatted Hard Drive on Windows

Formatted the wrong drive? After a quick format your files are usually still there. Learn how to recover data from a formatted hard drive on Windows.

Updated 5 minute read The Drive Restorer team

You can usually recover data from a formatted hard drive if it was a quick format and little has been written to the drive since. A quick format only writes a new, empty file system; your files stay on the disk until they are overwritten. Stop using the drive, do not install Windows or copy files onto it, and run a deep scan with recovery software, restoring everything to a different drive. If the drive had a full format in Windows Vista or later, it was overwritten with zeros and the data is very unlikely to be recoverable.

Below: how to tell which format happened, what to do in the first few minutes, the recovery steps, and what to expect.

What formatting actually does to your files

Formatting prepares a partition with a file system such as NTFS, exFAT or FAT32. How much it erases depends on the type of format:

Type of formatWhat is writtenCan files be recovered?
Quick format (Windows default)A new, empty file system at the start of the partitionUsually yes, with a deep scan
Full format, Windows Vista and laterA new file system plus zeros to every sectorVery unlikely
Format during Windows SetupA quick format of the selected partitionPartly, but Windows then installs over it
Quick format of an SSDNew file system, then TRIM tells the SSD the whole partition is freeUsually very low

For the full explanation, see quick format vs full format. The short version: on a hard drive, a quick format is very recoverable; a full format is not.

First steps after formatting the wrong drive

  1. Stop writing to the drive. Do not copy files to it, create folders on it or point backup software at it.
  2. Do not reinstall Windows or run Windows Setup on that drive. An installation writes tens of gigabytes and will overwrite a share of your old files.
  3. Do not format it again to "undo" the first one. There is no undo for a format, and a second format, especially a full one, makes things worse.
  4. If it was your system drive, the safest option is to remove it and connect it to another PC as a second drive, or with a USB adapter, then scan it from there.

How to recover data from a formatted hard drive

These steps use Drive Restorer, which reads the old file system where it survives and otherwise scans the raw data to rebuild files.

  1. Connect the formatted drive as a secondary drive, either internally or by USB, and make sure you have another drive with enough free space for the results.
  2. Select the formatted drive or partition in the drive list.
  3. Run a quick scan. After a format it may find little, but it is fast and sometimes picks up remnants of the old file system.
  4. Run a deep scan. This is the main tool after a format. It reads every sector and recognizes hundreds of file types by their content, including photos, camera RAW files, videos, documents, archives and email files.
  5. Save the scan if you need to. Deep scans of large hard drives can take hours. You can save the scan and resume it later instead of starting again.
  6. Filter and preview. Filter by type, size and date, open the preview for important files, and check each file's recovery chance rating.
  7. Restore to a different drive. Drive Restorer always restores to a drive other than the one being scanned.

Will my file names and folders come back?

It depends on what survived the format.

  • If the old file system records are still readable, for example because the drive was reformatted with a different file system or the new one was written over only a small area, files can come back with names and folders.
  • If they are gone, the deep scan finds files by content. You get the files, but usually named by number and grouped by type, such as all JPG files together.

Some file types carry useful information inside them. Photos keep their EXIF date and camera model, and Office documents often keep their title and author, which helps you identify and rename them after recovery.

Large files that were fragmented, meaning stored in several separate pieces, are the hardest for a deep scan to rebuild. Videos and big databases are the most likely to come back damaged. Read quick scan vs deep scan for why this happens.

Formatted and then reinstalled Windows?

This is one of the most common cases: someone reinstalls Windows on the wrong drive, or formats and reinstalls deliberately and then remembers a folder that was not backed up.

Some data can often still be recovered, but expect losses. Windows Setup writes its files across the partition, and every update and app installed since adds more. The longer the PC has been used, the less will be left.

  • Shut the PC down if you can, and scan the drive from another computer.
  • If you must use the PC, install recovery software on a USB drive or second drive, not on C:.
  • Check C:\Windows.old first. If you reinstalled without formatting, Windows may have moved your old files there.

Our guide to recovering files after a factory reset covers the related Reset this PC options.

When a formatted drive cannot be recovered

  • It was a full format in Windows Vista or later, or a secure erase or wipe tool was used.
  • It is an SSD with TRIM. Windows sends TRIM for the whole partition when it formats an SSD, and the SSD can clear the data almost immediately.
  • The drive was filled with new data after the format.
  • The drive has physical damage. If it clicks, makes unusual noises or is not detected, software is not the right tool. Image it first if it is still detected, or use a professional lab.

If Windows says a drive "needs to be formatted" and you have not formatted it, do not click Format disk. The drive's file system is damaged, not erased, and your files are likely still there. Click Cancel and recover them first.

Making sure it does not happen again

Most accidental formats happen because two drives look alike in a list. Before formatting, check the drive's label, size and contents in File Explorer, and give drives clear names such as "Backup 2TB" or "Photos archive". Keep an up-to-date backup of anything important on a separate drive, so a format of the wrong disk is an inconvenience instead of a loss.

Frequently asked questions

Does formatting erase all data?

A quick format does not. It writes a new, empty file system and leaves most of the old data in place. A full format in Windows Vista and later writes zeros to the drive, which erases it.

Can I recover data after reinstalling Windows on the formatted drive?

Partly, at best. Installing Windows writes many gigabytes to the drive, which overwrites some old files. Scan as soon as possible and expect some losses.

Will the original folder names come back?

Sometimes. If the old file system records survive, names and folders can be rebuilt. If they are gone, a deep scan finds files by content, often without their original names.

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