How Compression Works
Why are some files tiny and others huge? Discover how computers shrink data without losing what matters.
Why are some files tiny and others huge? Discover how computers shrink data without losing what matters.
The simplest compression: count repeated values instead of listing each one.
Replace repeated words and patterns with short codes. The more repetition, the better!
| Code | Word | Saved |
|---|
Some compression is reversible. Some isn't. Know the difference!
Perfect reconstruction. Decompress and get back exactly what you started with. Every bit is preserved.
Smaller files by throwing away "unimportant" data. You can't get back the original, but often you can't tell the difference.
See how JPEG quality affects file size and visual detail.
Hear the difference between bitrates. Higher = better quality but bigger files.
Now you understand how computers make files smaller - from simple pattern detection to complex lossy algorithms.
Repeated data can be replaced with shorter codes. More patterns = better compression.
ZIP, PNG, and FLAC preserve every bit. Perfect for text, code, and archiving.
JPEG, MP3, and MP4 throw away "unimportant" data for much smaller files.
There's always a tradeoff. Choose based on how the file will be used.
Put your new knowledge into practice!