Compress media files
Pick a format to get a practical checklist and copy-paste commands for shrinking files with optimo.
Images
PNG
Make PNGs smaller without blurring sharp UI edges. Start with lossless optimization; switch to modern formats when size matters most.
JPEG
Shrink JPEGs while keeping photos looking good. JPEG is a safe delivery default, but modern formats can be even smaller.
WebP
Compress WebP for fast delivery. It’s a strong default for mixed content (photos + graphics) and often smaller than JPEG/PNG.
AVIF
Compress AVIF when you need aggressive file-size reductions. It can beat WebP on photos at similar perceived quality.
HEIC
HEIC is great as a camera source, but it’s not web-native. Compression usually means converting to a delivery format like JPEG/WebP/AVIF.
JPEG XL
JPEG XL can be excellent for high fidelity and efficient compression, but delivery support is limited. Treat it as an archival format unless you control the client.
GIF
GIF compression has hard limits. The best “compression” is usually converting GIF to MP4/WebM for much smaller files.
SVG
SVGs compress by removing metadata and simplifying paths. They stay crisp at any size and are ideal for icons and illustrations.
Videos
MP4
Compress MP4 for reliable, compatible playback. MP4 is the safest default for web video delivery.
WebM
Compress WebM for web-first delivery. WebM can be smaller than MP4 depending on content and encoding settings.
MOV
MOV is common from editing tools, but it’s usually not ideal for delivery. Compression typically means converting to MP4/WebM.
MKV
MKV is a flexible container, but it’s not a standard delivery format. Compression usually means converting to MP4/WebM for predictable playback.
AVI
AVI is a legacy container. The best way to “compress AVI” is usually converting it to MP4/WebM with modern codecs.
OGV
OGV is uncommon today. For practical delivery and smaller files, convert to MP4/WebM.
Tip: Compression is usually a combo of right format, right dimensions, and right quality.