16

I have an xml file that windows explorer says is 8.00KB on disk, and the size is 25.5 KB.

How is this possible?

I thought the size on disk is in many cases larger than the actual size (because of the block sizes)?

An Dorfer
  • 1,178

4 Answers4

20

This would happen if you use NTFS compression to compress the file.

SLaks
  • 8,024
9

You are correct that the size on disk is normally larger. However, sometimes, due to built in compression, the file is actually smaller on the disk.

Source

David
  • 9,854
3

A file can also appear to be smaller on disk if the file is a sparse file. In that scenario, file size refers to the logical size of the file, whereas size on disk refers to the physical size of the sparse file.

Brian
  • 308
1

If you're using Microsoft OneDrive and some of your files are 'not synced' to disk, then the size of the file on disk will be smaller since the actual information is in the 'cloud' on OneDrive with only a pointer.