Entropy coding
The final, lossless stage of image compression — squeezing out the last bits by representing common values more compactly.
Definition
Entropy coding is a lossless compression step that represents frequently occurring values with short codes and rare values with long ones. It's the last stage of most image codecs: PNG's DEFLATE, JPEG's Huffman tables, and the arithmetic/ANS coding in AV1 and WebP. Because it's lossless, re-encoding it more aggressively can only help.
In practice
This is what a PNG optimizer like OxiPNG attacks: it re-runs entropy coding with stronger settings and better filters to produce a mathematically identical but smaller file. It's why \"lossless optimization\" is real and why two PNGs of the same pixels can have different file sizes.
Related guides
Compress your images now — free and private
Drop your files and ImageForge compresses them in your browser. No uploads, no accounts, no limits. Batch process hundreds at once and download a ZIP.