
Oxipng
Oxipng optimizes PNG and APNG files with lossless compression, and offers both a command-line interface and a library.

About Oxipng
Oxipng is an open-source, multithreaded optimizer for PNG and APNG files that uses lossless compression. It is written in Rust and can be used as a command-line tool or as a library in other Rust programs. The project lists Linux, macOS, and Windows as supported platforms. Installation options include Windows releases on GitHub, package managers, Cargo, a Docker image, and building from source.
The command-line tool offers optimization levels from 0 to 6 or max, where lower levels run faster and higher levels usually compress more. It can also strip metadata and apply an alpha option that changes the colors of fully transparent pixels to improve compression. APNG support is limited: alpha optimization, refiltering, and recompression of all frames are supported, but other transformations are disabled.
Key features
- Lossless PNG and APNG compression optimization
- Command-line optimization levels from 0 to 6, or max
- Metadata stripping in safe or all modes, or by chunk list
- Alpha option that alters fully transparent pixel colors to aid compression
- Rust library for use inside other Rust programs
- Pre-commit hook configuration for Git workflows
- Open source, with the project describing itself as fast and highly effective
- Available through Windows releases, package managers, Cargo, and Docker
- Usable both as a command-line tool and as a Rust library
- APNG support is limited, and several transformations are disabled for animated files
- The alpha option is technically lossy and may be unsuitable for some applications
- Higher optimization levels are usually but not guaranteed to produce smaller output
Oxipng at a glance
- Category
- Online Tools › Image Tools
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Platforms
- Linux, macOS, Windows
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for Image Tools
Oxipng alternatives
Tools and sites you could use instead, ranked by how closely they match.
Caesium Command Line Tools compresses images with lossy or lossless options.
tint recolors images using palettes, with command-line controls for applying a chosen theme palette.
tev displays HDR images and color profiles across operating systems, including HDR output.
AntiDupl searches image collections for similar or defective pictures, helping users locate duplicates across large sets of files.
Up1 encrypts images, text, and other data in the browser before hosting them, and can display short videos and downloadable files.
Screenshot.rocks turns screenshots into mobile and browser mockups through an online tool.
Popular in Image Tools
Well-known listings from the same topic.
Oxipng FAQ
Is the alpha option lossless?
How can Oxipng be run with Docker?
Does a higher optimization level always give a smaller file?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












