Skip to content
Essential Data Recovery

Recover files after formatting a USB drive

A quick format usually leaves file contents in place. What formatting actually erases, how recovery works on Windows and Mac, and when files cannot come back.

Written by Essential Data RecoveryPublished 2026-09-12Safety-critical: owner-reviewedRevision 2
A USB stick resting on a paper notebook on pale oak drawers in quiet morning light

Do not write anything to the drive now: no new files, no second format, no repair command, and do not accept Windows' offer to fix or format it. What happens to the drive next decides whether the old files are still there to find.[1]

Files from a formatted USB stick or external drive can usually be recovered, on one condition: the format was a quick format and nothing has been written to the drive since. A quick format removes the index that points to your files, not the files themselves. A full format on Windows Vista or later is different: it writes zeros across the whole volume, and files lost that way are gone.[2][3]

This guide covers a USB stick, memory card or single external drive formatted by accident on a Windows PC or a Mac. It does not cover a drive that is making new noises, a drive that no longer appears when connected, or a drive that was encrypted. Those situations are linked at the end of this page.

Not sure which situation you are in? Guided help walks you through it.

What a format actually erases

Windows offers two formats, and the difference is the whole game. A quick format deletes the file table and the root directory of the volume, and skips a sector-by-sector scan for bad areas. The format then creates a new, empty file system in their place. Your files themselves stay in their clusters, unlisted, until something writes over them.[3]

Quick format and full format on Windows
BehaviourQuick formatFull format
What it erasesThe file table and root directoryThe file table, then zeros across the whole volume (Windows Vista and later)
Bad sector scanNoYes
Files recoverable afterwardsUsually, if the space is not overwrittenNo
Time on a 1 TB driveSecondsHours

A full format is a different event. Microsoft's retired KB 941961 documented that from Windows Vista onward a full format writes zeros to the whole volume, where Windows XP and earlier left the data in place. Zeroing can also be requested explicitly with the format command's /P option, which Windows ignores when quick format is used. If your files were lost to a full format on a modern version of Windows, recovery software has nothing left to find.[2][3]

One more mechanism matters for solid state drives: formatting sends TRIM by default, the notice that tells the drive it may forget the old contents. On a USB stick this rarely matters; on an external SSD it does. Why TRIM makes deleted files unrecoverable is covered in our guide to when recovery software makes things worse.[3]

Recover the files on Windows

A careful first attempt

  1. Stop using the drive. Save nothing to it, format nothing, and run no repair commands.
  2. Install recovery software on a different drive, such as the computer's own C: drive. Installing onto the affected drive can overwrite the very space your files occupy.
  3. Run one thorough scan. PhotoRec is a free, open-source option whose documentation says it works even when media has been severely damaged or reformatted, searching for file contents rather than filenames.
  4. Save whatever it finds to a different drive. PhotoRec's documentation is explicit that recovered files must not be written back to the partition they came from.
  5. Open a sample of the recovered files before trusting the result. A finished scan is not a recovery until the files open.
[1]

Expect oddities in the results. Files found this way often come back without their original names, because the names lived in the file table the format erased. Photos usually survive this well; documents may need opening one by one to identify.

Recover the files on Mac

The same rules apply. Apple's documentation is clear that erasing a storage device deletes everything on it, and on modern Macs secure erase options are not available for solid state drives, which makes a typical erase a fast pass over the index rather than a true wipe. Recovery on Mac follows the identical drill: scan the drive, save the results somewhere else, check the files open. If you plan to keep using the drive with Windows PCs afterwards, Apple advises MS-DOS (FAT) for disks up to 32 GB and ExFAT for larger ones, but that reformat waits until your files are safe.[4][5]

The two traps to avoid

The first trap is repair. If a fix-it tool runs before recovery, it rewrites the file system's bookkeeping: Microsoft documents that repairs on FAT file systems usually change the file allocation table and sometimes cause loss of data, and that answering N to the lost-allocation-units prompt discards those fragments entirely. Recover first; repair later, if ever.[6]

The second trap is the format prompt. If Windows says a drive needs formatting before it can be used, treat that as a symptom, not an instruction. SanDisk lists corrupted file systems, power loss mid-use and unsafe ejection among the causes, and its formatting guide states plainly that formatting is data destructive and cannot be undone. Decline the prompt and follow our RAW drive guide instead.[7][8]

Windows says a drive is RAW or needs formatting: what to do first.

When the files cannot come back

Honesty is worth more than hope here. The files are gone if a full format ran on Windows Vista or later (zeros across the volume), if new files were saved after the format and now occupy the old space, if the drive was an SSD whose contents were TRIMmed, or if the drive was BitLocker encrypted and neither the password nor the recovery key survives. Microsoft documents that BitLocker is designed to make the encrypted drive unrecoverable without the required authentication; recovery keys can be saved to a Microsoft account, which is the one place worth checking before giving up. And if a drive reports far less capacity than its label promises, a counterfeit tell that SanDisk warns about, it may never have held all the files in the first place.[9][7]

Free options and their limits

PhotoRec costs nothing, is open source, and does the work; it is unfriendly but honest. Commercial tools are usually free to download and scan, then charge to save, and the amount each allows before paying changes often enough that we track it in a separate, dated comparison rather than repeating numbers that go stale.[1]

What each tool lets you recover for free, compared from official terms.

When to stop

Take a different route if the drive has started making new noises, if it disappears and reappears when connected, or if the files are irreplaceable: a professional quote costs less than one careless attempt. We are an information site, not a recovery provider, and we have not tested the tools named here; the route you choose should fit the situation, not the advertising.

New clicking or grinding noises from the drive: read this before doing anything else.

The drive does not appear at all when connected: the not-detected guide.

The files matter more than the drive: choosing a recovery service.

Sources

Facts on this page are cited to the publishers’ own documentation.

  1. [1] CGSecurityPhotoRec. captured 2026-09-12.
  2. [2] datarecovery.comChange in the behavior of the format command in Windows Vista (reproduction of retired Microsoft KB 941961). captured 2026-09-12.
  3. [3] Microsoftformat (Windows command reference). captured 2026-09-12.
  4. [4] AppleErase and reformat a storage device in Disk Utility on Mac. captured 2026-09-12.
  5. [5] AppleFormat a disk for Windows computers in Disk Utility on Mac. captured 2026-09-12.
  6. [6] Microsoftchkdsk (Windows command reference). captured 2026-09-12.
  7. [7] SanDiskSteps to resolve the 'you need to format the disk in drive' error message. captured 2026-09-12.
  8. [8] SanDiskSteps to format a drive for use with Windows or macOS. captured 2026-09-12.
  9. [9] MicrosoftBitLocker frequently asked questions (FAQ). captured 2026-09-12.