TechBuzzPro

How to Restore 0 Byte Files on Windows

· 7 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can often restore a 0-byte file on Windows by recovering a previous version, using File History or a backup, or running file-recovery software before the space is overwritten. A 0-byte file means the file's directory entry exists but no data is stored in it, so the original content is not inside that file anymore. The goal is to get the data back from somewhere else: a backup, a shadow copy, a cloud sync version, or the disk's unallocated space.

Before you do anything, stop writing new data to the drive that holds the file. Every new save, download, or Windows update can overwrite the very disk sectors that still contain the old data, which makes recovery impossible. If the file is on an external drive or USB stick, unplug it until you are ready to scan it. If it is on your system drive, avoid installing recovery tools to that same drive — use a portable version on another drive or run the tool from a USB stick.

Also check the obvious first: open File Explorer, right-click the file, choose Properties, and confirm the size really is 0 bytes. Sometimes a file is merely locked or still syncing, and a restart or a pause in cloud sync shows the full size again. If the file lives in OneDrive, Google Drive, or Dropbox, open the cloud web interface and look at the version history there — that is often the fastest fix.

What You'll Need

  • A Windows PC with File Explorer and access to the drive holding the file.
  • A backup, File History drive, restore point, or cloud account that may hold an older copy.
  • Optional: reputable file-recovery software installed on a different drive, not the one you are recovering from.
  • Optional: a second drive or USB stick with enough free space to hold recovered files.

Step-by-Step

  1. Stop using the affected drive. Close programs that write to it, pause cloud sync for that folder, and do not defragment or run disk cleanup on it. This protects any recoverable data.
  2. Check the cloud version history. If the file is in OneDrive, Google Drive, or Dropbox, sign in to the web interface, open the file's details or right-click it, and look for version history or "restore previous version." Download the older copy to a different folder. This is the safest recovery route because it does not touch the disk.
  3. Try Previous Versions in File Explorer. Right-click the 0-byte file or its folder, choose Properties, and open the Previous Versions tab. If shadow copies or restore points exist, you will see dated entries. Select one, click Open to preview, then Copy or Restore. Note that menu labels can differ slightly by Windows version and edition.
  4. Use File History or your backup. If you set up File History, open Settings > Update & Security > Backup (or Control Panel > File History) and choose "Restore files from a current backup." Browse to the file's location and restore the older copy to a separate folder first, so you do not overwrite anything. If you use a third-party backup, open that program's restore wizard and recover the file to a new location.
  5. Check the Recycle Bin. If the file was deleted and later recreated empty by an app, the original may still be in the Recycle Bin. Open it, sort by date deleted, and restore the matching file.
  6. Look for temporary or autosave copies. Many programs keep autosave or backup copies. For Office files, check the same folder for files starting with ~$ or look in the AutoRecover location the app lists in its options. For other apps, search the folder for files with the same name plus extensions like .bak, .tmp, or .old.
  7. Run file-recovery software as a last resort. Install a reputable recovery tool on a different drive, connect the affected drive if it is external, and scan it in read-only mode. Preview the results and recover the file to a different drive — never back onto the same one. Recovery works best when the file was deleted or truncated recently and the drive has not been written to since.
  8. Verify the recovered file. Open it in the correct program, check its size in Properties, and confirm the content is complete. If it opens but is corrupted, try another version or another recovery pass with deeper scanning enabled.

Common Mistakes

  • Installing recovery software on the affected drive. The installer writes new data over the sectors you are trying to recover. Always install to another drive.
  • Recovering files back to the same drive. Save recovered files to a different drive or USB stick, then copy them back after you confirm they are intact.
  • Restoring over the 0-byte file immediately. Restore to a new folder first so you can compare versions and avoid losing anything.
  • Ignoring cloud sync. A paused or broken sync can leave an empty placeholder locally while the full file still exists in the cloud. Check the web interface before doing anything drastic.
  • Running disk cleanup or defrag "to fix it." Both can overwrite recoverable data. Avoid them until recovery is finished.
  • Assuming the file is gone forever. Many 0-byte files are caused by a failed save, a crash, or a sync conflict, and an older copy usually exists somewhere.

Tips

  • Turn on File History or a cloud backup now, so future accidents are easy to undo. Settings > Update & Security > Backup is the usual path, though labels vary by Windows version.
  • Keep restore points enabled for your system drive; they are the quickest source of Previous Versions.
  • If a specific app keeps producing 0-byte files, check its save location permissions and free disk space. A full disk or a blocked folder can cause empty saves.
  • For important documents, keep more than one backup — local and cloud — because a single backup can be overwritten by a bad sync.
  • When scanning with recovery software, use the deepest scan mode available, and let it finish even if it takes a long time.

Troubleshooting

Previous Versions tab is empty. System Protection may be off for that drive, or no restore points exist. Check Settings > System > About > System protection (labels can differ by version) and enable protection for future use, then rely on backups or recovery software for this file.

Recovery software finds nothing. The data may already have been overwritten. Try a different reputable tool with a deep scan, and scan the whole drive rather than a single folder. If the drive is failing — clicking noises, slow reads, errors — stop and consider professional data recovery rather than repeated scans.

The recovered file opens but is corrupted. Try an older version from cloud history or a backup. For Office documents, use the app's built-in repair option (File > Open > Browse, select the file, and choose Open and Repair).

The file keeps returning to 0 bytes. Something is recreating it — often a sync client or a program with a broken save path. Pause sync, move the file out of the synced folder, and check the app's settings for its save location and permissions.

You cannot access the drive at all. Check the cable and port, try another PC, and run Windows' built-in disk error checking from the drive's Properties > Tools tab. If the drive is not detected anywhere, do not keep power-cycling it; seek professional help.

Frequently Asked Questions

Can a 0-byte file be restored without a backup?

Sometimes. If the file was recently deleted or truncated and the drive has not been written to, recovery software can often find the old data. If the space was overwritten, recovery is unlikely.

Why do files suddenly become 0 bytes?

Common causes include a crash or power loss during saving, a full disk, a failed cloud sync, a disconnected USB drive, or a program writing to a folder it cannot access properly.

Does Windows have a built-in way to recover deleted files?

Windows offers the Recycle Bin, Previous Versions (when restore points exist), and File History if you enabled it. There is no general-purpose built-in undelete tool for files that never went to the Recycle Bin.

Is it safe to use free recovery software?

Only download from the developer's official site, and avoid tools bundled with adware. Free versions often limit how much you can recover; preview first, then decide.

Will restarting Windows fix a 0-byte file?

It can help if the cause was a locked file or a stuck sync process, but it will not bring back data that was never written. Restart, then check the file's size and the cloud version history.

Can I recover a 0-byte file from a USB drive?

Yes, if you stop using the drive immediately and scan it with recovery software from another PC. Save the recovered file to your computer, not back to the USB drive.