Quick answer
Use OxiPNG when the file must stay PNG and cwebp when your destination accepts WebP. On our three synthetic PNGs, OxiPNG saved 35–60% with identical decoded RGBA. Lossless WebP was smaller on two of the three, while optimized PNG was smaller for the gradient. Test both formats on your own images when compatibility permits.
Local command-line tests on Windows x64, build 26300.9711. We tested cwebp and dwebp 1.6.0 on November 10, 2026 and OxiPNG 10.2.1 on November 11. The four 1200 × 800 fixtures are synthetic, including three PNGs and a JPEG derivative. FileOptimizer and XnConvert are covered by their documentation. Network isolation and privacy were outside the test.
Decide whether you need optimization, conversion or resizing
| Task | What changes | How to judge it |
|---|---|---|
| Same-format optimization | Encoding or file structure | Size plus decoded image comparison |
| Lossy recompression | Some image information | Visual quality at the intended size |
| Conversion to WebP | File format, potentially image data | Compatibility, alpha and appearance |
| Resizing | Pixel dimensions | Whether the smaller image still meets the task |
A resized photograph can be much smaller while containing fewer pixels. Do not present that result as a like-for-like compression win. Keep an unchanged source and choose the output dimensions deliberately.
OxiPNG for keeping the PNG format
OxiPNG is an open-source PNG optimizer. We ran oxipng -o 2 --out optimized.png input.png on three original PNGs. A separate output path keeps the source available for comparison.
| PNG fixture | Original bytes | OxiPNG bytes | Lossless WebP bytes |
|---|---|---|---|
| Transparency panel | 14,123 | 5,631 | 3,538 |
| Text panel | 15,813 | 6,632 | 4,200 |
| Gradient | 208,943 | 135,531 | 144,080 |
FFmpeg decoded each original and optimized PNG to RGBA. The decoded hashes matched on all three pairs. The WebP column shows a format conversion, which is useful only where the receiving app accepts WebP.
FileOptimizer: preserve a separate copy first
FileOptimizer’s documentation describes a file-optimization workflow and warns that it overwrites processed files. It also says additional metadata is removed by default and describes retaining originals in the Recycle Bin.
Treat that as a reason to create your own backup before starting. Use a disposable working folder, add copies and inspect the relevant options before optimization. Do not rely on the Recycle Bin as your only archive.
We have not verified how every bundled optimizer or format behaves. “Lossless” image processing does not automatically mean metadata, animation or every document property is unchanged. Check the output that matters to your use.
cwebp: explicit options for WebP output
Google’s cwebp documentation describes command-line conversion to WebP, including quality and lossless settings. It is a candidate when you want a reproducible command rather than a graphical batch interface.
For example, after obtaining the official utility, these are two different experiments on your own PNG:
cwebp -q 80 input.png -o output-lossy.webp
cwebp -lossless input.png -o output-lossless.webp
We ran both modes on the four local fixtures for this article (with explicit output filenames). Keep separate output names and inspect the results. Quality values from different encoders are not a common quality scale. The documentation also states that animated PNG and animated WebP input are not supported by this tool.
Use a viewer and destination that support WebP. A smaller file is not useful if the application receiving it cannot display the format.
XnConvert: batch controls with a license boundary
XnConvert advertises batch conversion, resizing and metadata-related operations across image formats. Its graphical workflow makes it a candidate for users who prefer presets and an output folder to a command line.
The same page limits its freeware offer to private or educational use, including non-profit organizations, and says company use requires a license. Do not label it unconditionally free for every business workflow.
Start with a separate destination folder. Confirm the dimensions, format, quality and metadata options before converting a whole collection. We have not tested its current presets or export controls.
Measure savings without hiding the trade-offs
For a fair comparison, retain the same inputs and dimensions. Keep same-format lossless optimization separate from lossy encoding, format conversion and resizing.
Compute size reduction from exact byte counts:
reduction (%) = 100 × (input bytes − output bytes) / input bytes
A negative value means the result is larger. Include it rather than removing it from the report. For a batch, calculate total reduction from total bytes; do not average file percentages and call that total storage saved.
Inspect photographs, fine text, flat colors, gradients and transparency. Use normal viewing size as well as a magnified crop. For a claimed lossless result, compare decoded pixels using a consistent decoding and color-management workflow.
Our small cwebp experiment
| Input | Original bytes | Lossless WebP bytes | q80 WebP bytes |
|---|---|---|---|
| Transparency PNG | 14,123 | 3,538 | 11,008 |
| Text-panel PNG | 15,813 | 4,200 | 15,596 |
| Gradient/illustration PNG | 208,943 | 144,080 | 57,902 |
| JPEG derivative | 138,334 | 831,884 | 54,964 |
All eight encodes retained 1200 × 800 dimensions. We decoded each WebP with dwebp and compared RGBA pixels with the decoded input. All four lossless outputs had zero changed visible pixels under that comparison; RGB differences in fully transparent pixels were ignored. The q80 outputs changed visible pixels in every fixture. Pixel equality here does not establish metadata preservation or a color-managed display match.
The JPEG example is a useful counterexample: a WebP lossless encoding preserves the already decoded JPEG image, including its compression artifacts, and need not beat the original JPEG size. Across three serial runs per condition on one PC, median encoder times ranged from about 55 to 732 ms. This tiny synthetic collection cannot establish the fastest encoder or the best visual quality for real photographs.

Check metadata and offline behavior separately
Inspect orientation, color profile and any required copyright information. Removing EXIF can remove useful information as well as private location data. Check how the file displays afterward.
A useful offline trial is to launch the installed program without an internet connection and process a new, local test image. That can establish success for that workflow under those conditions; it does not establish that the application never communicates when online.
What we checked and what remains
We measured four cwebp inputs in lossless and q80 modes and three same-format OxiPNG outputs. The tables report exact bytes. Pixel checks used decoded RGBA, with the visible-pixel convention stated above for WebP. FileOptimizer and XnConvert are documented options. Metadata retention, animation, real photographs and network-isolated operation remain outside this test.
Relevant sources
Your reading checklist
Optional notes for this device. A checked box records your progress, not whether a fix worked.
Progress is stored only in this browser when storage is available.
Something doesn’t match?
Tell us which step differs, the application version and your operating system. Report a guide issue.