IT lexicon › Infra & Ops › Sparse file

Sparse file

Infra & Ops På svenska → Updated: 2026-11-16

A file that stores "holes"—large areas of zeros—without taking disk space.

A sparse file is an optimization where the filesystem doesn't allocate physical blocks for areas filled with zeros. Instead, only metadata about where the holes are is stored. A file might report as 10 GB in size but consume only 100 MB on disk because 9.9 GB is zeros that were never written.

This is useful for virtual machine images, databases with many zeros, and disk images that grow on-demand. Many filesystems support sparse files, but not all—FAT32 doesn't, and older Windows tools didn't understand them and could accidentally expand a sparse file incorrectly.

← Back to the lexicon