How to Recover 0 Byte Files (5 Working Methods)
In this article
If a file shows 0 bytes, it means the file system sees the name but no data inside it. This usually happens after a crash, improper ejection, or a failed write. You can often recover the data by checking the original source, using built-in Windows tools, or trying a recovery scan. Start with the simplest method below; each one gets more involved.
What You'll Need
- A computer running Windows (methods 1–4) or macOS (method 5)
- Access to the file's original location (if it came from a download, email, or cloud sync)
- For method 4: a second drive or USB stick with enough free space to store recovered files
- For method 5: a free file recovery tool like Recuva (Windows) or PhotoRec (Windows/Mac)
Step-by-Step
Method 1: Check the Original Source
- If the file was downloaded, go back to the website and download it again.
- If it was sent via email, open the email and re-download the attachment.
- If it was synced from a cloud service (OneDrive, Google Drive, Dropbox), check the cloud's web interface—the file may still have the correct size there. Download it again.
- If the file was on a USB drive and you copied it to your PC, check the USB drive's original copy.
Method 2: Use Windows File History or Previous Versions
- Right-click the 0-byte file and select Properties.
- Go to the Previous Versions tab. (If you don't see this tab, you don't have File History or System Restore enabled—skip to Method 3.)
- Look for an older version of the file in the list. If one appears, select it and click Restore.
- If no previous versions appear, open File Explorer, navigate to the folder that contains the file, right-click the folder, and choose Properties > Previous Versions. Restore an older copy of the whole folder.
Method 3: Use Windows Error Checking (CHKDSK)
- Open File Explorer, right-click the drive where the 0-byte file is located (e.g., C:), and select Properties.
- Go to the Tools tab and click Check under Error Checking.
- If prompted, choose Scan and repair drive. This may require an administrator account.
- Let the scan finish (it may take a while). Afterward, check if the file now has a size. If not, restart your PC and check again.
Method 4: Use a File Recovery Tool (Recuva)
- Download and install Recuva from the official Piriform website (the makers of CCleaner).
- Open Recuva. On the welcome screen, choose All files and click Next.
- Select In a specific location and browse to the folder that contains the 0-byte file, or choose On my media card or iPod if it's on a removable drive.
- Enable Deep Scan (this takes longer but finds more). Click Start.
- After the scan, find your file in the list. The status column shows Excellent, Poor, or Unrecoverable. Pick a file with at least a “Poor” status.
- Check the box next to the file, then click Recover. Choose a different drive (not the same one) to save the recovered file.
- Open the recovered file to see if it's intact. If not, try PhotoRec (below).
Method 5: Use PhotoRec (Free, Cross-Platform)
- Download PhotoRec from the official CGSecurity website. It works on Windows, Mac, and Linux.
- Extract the downloaded ZIP file to a folder.
- Run the qphotorec executable (Windows) or photorec (Mac/Linux).
- Select the drive that contains the 0-byte file. If it's on an external drive, choose that one.
- Select the partition (usually the largest one) and click File Format. Choose All or specific file types like Images, Documents, etc.
- Click Browse to choose a destination folder on a different drive.
- Click Search. PhotoRec will scan the drive and recover files based on their signatures, not the file table. This can recover data even if the file size is 0.
- Recovered files are saved with generic names like
f1234567.jpg. Sort by date and size to find your file.
Common Mistakes
- Saving new data to the same drive before recovering—this overwrites the deleted data and makes recovery impossible.
- Ignoring the original source—often the file is fine in the cloud or on a server, and you just need to re-download it.
- Using the 0-byte file as the only copy—always keep backups.
- Running CHKDSK on a failing drive—if the drive has physical issues, CHKDSK can make things worse. If you hear clicking or grinding, stop and seek professional help.
- Choosing the wrong recovery tool—some tools only recover deleted files, not files that are still present but empty. Recuva and PhotoRec handle both.
Tips
- Act quickly: the sooner you stop using the drive, the higher the chance of recovery.
- Always save recovered files to a different drive than the one you're scanning.
- If the file is critical and none of these methods work, consider a professional data recovery service. They can be expensive but may be worth it for irreplaceable data.
- For future protection, enable File History (Windows) or Time Machine (Mac) and set up regular backups.
Troubleshooting
If CHKDSK says the drive is in use: Close all programs and try again. If it still fails, restart your PC and run CHKDSK from the command prompt before Windows fully loads (press F8 or Shift+F8 during boot, or use a recovery drive).
If Recuva doesn't find the file: Run a deep scan. If it still doesn't find it, the file's data may have been overwritten. Try PhotoRec, which scans raw data and can sometimes find files that Recuva misses.
If PhotoRec recovers files but they won't open: The file may be corrupted. Try opening it with a different program, or use a file repair tool specific to that file type (e.g., for Word documents, try opening in Word's “Open and Repair”).
If the file is on a system drive (C:) and you can't scan it while Windows is running: Boot from a live Linux USB and run PhotoRec from there, or remove the drive and connect it to another computer as a secondary drive.
Frequently Asked Questions
Why did my file become 0 bytes?
Common causes: sudden power loss during a write, improper ejection of an external drive, a failed software update, or a corrupted file system entry. The data may still be on the disk, but the file system lost the pointer to it.
Can I recover a 0-byte file from a USB drive?
Yes, the same methods apply. Use Recuva or PhotoRec on the USB drive. Make sure you don't write anything else to the USB drive before recovery.
Is it possible to recover a 0-byte file from an SSD?
Yes, but SSDs use TRIM, which can erase data blocks quickly. If the file became 0 bytes and the drive has been idle, you might still recover it. Act fast and avoid writing to the SSD.
Will CHKDSK fix a 0-byte file?
Sometimes. CHKDSK can repair file system errors that cause files to appear empty. It won't restore the data if the file's content is truly gone, but it's worth trying before more advanced recovery.
Can I recover a 0-byte file from a formatted drive?
Yes, if the drive was formatted but not overwritten. Use PhotoRec or Recuva in deep scan mode. The longer the drive has been used after formatting, the lower the chance.
How long does a deep scan take?
It depends on the drive size and speed. A 1TB hard drive can take several hours. SSDs are faster. Be patient; don't interrupt the scan.