compressionHow lossless compression makes a file smaller without changing it
Lossless compression replaces repeated or predictable data with a more compact representation. A decoder can reconstruct the original exactly because the necessary information remains encoded. A long run of identical values might be stored as one value plus a count, although real formats often use more sophisticated methods.