Command-line tool
optipng
brew/optipng
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
PNG file optimizer compression requirescmd compressor optimizer optimising diskspace lossless optimiser libpng optimizing filesize imagecompressing
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id OptiPNG.OptiPNG -e scoop install optipng
macOS
brew install optipng
Linux
brew install optipng
Compress a PNG with default settings
optipng path/to/file.png
Compress a PNG with the best compression
optipng -o 7 path/to/file.png
Compress a PNG with the fastest compression
optipng -o 0 path/to/file.png
Related command-line tools
- oxipng
Multithreaded PNG optimizer written in Rust rust requirescmd optimizer optimising diskspace png-compression lossless… - bzip2
Freely available high-quality data compressor - lzop
File compressor - texture-compressor
CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container. - bzip3
Better and stronger spiritual successor to BZip2 - lzip
LZMA-based compression program similar to gzip or bzip2 - pngcrush
Optimizer for PNG files - ncompress
Fast, simple LZW file compressor
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents