17 Free PNG and WebP Compression Tools to Reduce Image Size

The GIF image format is commonly used for short animated images while JPEG is for higher quality photos using lossy compression to reduce file sizes. PNG is good on smaller and transparent pictures because it’s lossless and you don’t lose quality. The newer WebP is dual role because you can compress images with either lossless or lossy compression but it’s a bit less compatible than JPEG and PNG.

You can easily find many tools on the Internet to compress image files but most, if not all of them produce different file sizes. Reducing the image file size as much as possible helps to save bandwidth cost, reduce time to download, and even achieve a higher Google PageSpeed score because “optimize images” is one of the priorities.

In this article, we look at 17 free PNG and WebP lossless compressor tools (online, command line, desktop GUI) and also find which ones produce the smallest file sizes while preserving image quality. This is not a PNG vs WebP article as it’s about which PNG tools compress a PNG better and which WebP tools compress WebP better. It’s up to you to decide which format best suits your needs.

Note that we are not including options that don’t allow lossless compression on both PNG and WebP. Popular converters like the online TinyPNG will therefore be missing. The maximum available compression setting is listed and used for each program or service.

1. Pingo / Pinga (PNG and WebP)

Pingo is interesting because it’s one of the few command line tools that can compress both PNG and WebP images using lossless (and lossy) compression. In addition to those two formats, Pingo is also able to compress JPG and APNG files along with a simple ability to resize images, convert to greyscale, enhance details, and remove transparency.

Pingo maximum compression for PNG:

Pingo -s9 image.png

Pingo png compress

Pingo maximum compression for WebP:

Pingo -webp-lossless -s9 image.png

Pingo webp compress

Download Pingo

Pinga is a GUI interface for Pingo but is limited to just PNG and JPG compression. All you have to do is enable Extreme compression from the dropdown and uncheck Lossy Compression in the Settings to get the same output as Pingo. It’s also considered experimental so could be a bit buggy.

Download Pinga


2. ECT (Efficient Compression Tool) (PNG)

There are a couple of things that make ECT a potentially useful tool. Firstly, it can compress JPEG, Zip, and GZip files in addition to PNG. Also, it’s the most up to date tool here with the latest release only a couple of days old. ECT is open source and cross platform with a Mac OS version available. If you just supply a folder to the command, it will process and compress all files in that folder.

ECT maximum compression command:

ECT.exe -9 image.png [or folder path]

Ect compression

Download ECT (Efficient Compression Tool)


3. advpng (PNG)

Advpng is part of AdvanceCOMP that contains multiple free utilities to recompress Zip archives, PNG, MNG, and GZ files. After a gap of four years, AdvanceCOMP had a new release in 2022 although it was only compatibility fixes. The maximum “Insane” compression mode can be a bit slower on older machines but modern computers won’t see a compression time of more than a few seconds for a moderate size image.

Versions are open source and available for Windows, DOS, Mac OS, and Linux. Advpng maximum compression command:

advpng.exe -z4 file.png

Advpng png compression

Download AdvanceCOMP


4. Squoosh (PNG and WebP)

It might come as a surprise to some, but Squoosh is actually an online file compressor and basic image editor from GoogleChromeLabs. Essentially, GoogleChromeLabs is a bunch of side projects created by the Google Chrome developers. Besides JPEG and AVIF, Squoosh also supports compressing PNG and WebP using both lossy and lossless methods.

Squoosh oxipng

After dropping an image onto the browser window or loading it manually, select OxiPNG or WebP from either the left or the right dropdown menu. For OxiPNG, just slide the Effort slider to 3 to hopefully get a few more KB savings over the default of 2. For WebP, check the Lossless box, slide Effort to 9, and Slight loss to 0 (it appears to perform some light lossy compression).

Squoosh webp

It is useful that Squoosh shows what the changes to the compression settings do to the size of the image file before you download it. This is a potential saver of time and downloading multiple images just to see what setting works best.

Visit Squoosh


5. OptiPNG (PNG)

OptiPNG is another open source command line PNG compressor that supports Windows and Linux. In addition to directly compressing a PNG, it can also convert BMP, GIF, PNM, and TIFF to compressed PNG. The highest level of compression is the “very Slow” 07 although the default is 02.

OptiPNG maximum compression command:

optipng.exe -o7 file.png

Optipng compress png

Download OptiPNG


6. IrfanView (PNG and WebP)

IrfanView is one of the most popular and best image viewers for Windows and has been for many years. A powerful feature in IrfanView is the batch editor that can edit multiple files with tons of different settings. It also includes the ability to simply compress PNG and WebP files using either lossy or lossless methods.

Note the OptiPNG plugin requires downloading and installing the IrfanView Plugins pack (which is recommended anyway). The internal PNG compressor doesn’t compress that great so the OptiPNG plugin is required to get good results. Once IrfanView is open, press B to open the batch conversion window. Firstly, browse for your image(s) and use the buttons to add what you want to the input list.

Irfanview compress png

For PNG, select PNG from the Output format dropdown. Select Options to the right, check the OptiPNG box and set the level to the maximum of 7. Press OK and then Start Batch. You can try the internal “Compression level” at the top with a setting of 9 although it won’t compress the images nearly as much as OptiPNG.

Irfanview compress webp

For WebP, choose WebP from the dropdown. Press Options and enable Lossless compression with a Quality of 100. Also, set the Compression method to 6 as it may shave off a few KB from larger images. Then start the conversion.

Download IrfanView


7. cWebP (WebP)

This is the official WebP compression tool from Google and the suite contains tools to encode, decode, analyze, mux, and compare WebP images among other things. cWebP is the encoding tool to use. As mentioned earlier, WebP can have compressed images using lossy or lossless methods, so we need to tell cWebP to use lossless compression.

cWebP maximum compression command:

cwebp -z 9 image.png -o outfile.webp

Compress webp with cwebp

There is another lossless compression command although this one can sometimes produce slightly larger file sizes:

cWebP -lossless -q 100 image.png -o outfile.webp

Download cWebP


8. OxiPNG (PNG)

This is another open source cross platform PNG compressor for the command line. Unlike some other tools listed here, OxiPNG is actually relatively up to date and the last update at the time of writing was in 2021. OxiPNG is also the main PNG compression method in the Google Team’s online image compressor, Squoosh.

Although OxiPNG has compression settings going from 1 to the maximum of 6, the developer says going past 4 is unlikely to yield any better results. The setting of 4 has also been deprecated in a recent version, so the recommended maximum compression setting should nowadays be 3.

OxiPNG Maxiumum compression command:

OxiPNG -o 3 image.png

Oxipng compression

Download OxiPNG


9. PngOptimizerCL and PngOptimizer (PNG)

These tools are essentially the same, it’s just one is built with a graphical user interface while the other works from the command line. They will both produce the same results. All you have to do with PngOptimizer GUI version is drag the images to compress them onto the program’s window. By default, it will create a backup of the original file but there are a few settings where it can be turned off.

Pngoptimizer gui

The CL version runs from Command Prompt or batch scripts. You can either specify the exact file name to optimize or can even use the asterisk character as a wildcard. Both versions support input image formats GIF, BMP, and TGA as well as PNG. The settings in the GUI version are duplicated here as additional arguments.

PngOptimizerCL command:

PngOptimizerCL.exe [-BackupOldPngFiles] file.png

Pngoptimizercl

Download PngOptimizer and PngOptimizerCL


10. FastStone Photo Resizer and FastStone Image Viewer (PNG)

Both of these FastStone tools can compress PNG images using lossless and lossy compression. Photo Resizer is a batch editor and renamer where Image Viewer is just that and more of a general image viewing program. We’ll look at Photo Resizer although Image Viewer can compress the image using the extra options while saving the image file.

Faststone photo resizer

Use the internal file browser to locate your file(s), then click Add to put them into the Input list on the right. Select PNG as the output format from the dropdown, luckily, the maximum lossless compression method is used as the default. Use any additional output or rename options and then press Convert. Both programs will output the same file size when the same settings are used.

Download FastStone Photo Resizer | FastStone Image Viewer


11. TruePNG (PNG)

TruePNG only supports PNG files unlike some of the PNG compressors above that can convert from other image formats such as JPG and GIF into PNG if it is able to achieve a smaller file size. There are a number of options you can play with but a simple “/o max” or “/o4” argument will try to produce the best compression.

TruePNG maximum compression command:

TruePNG.exe input.png /o max [or /o4]

Truepng compress file

Download TruePNG

12. PNGGauntlet (PNG)

PNGGauntlet is not a compression tool itself but a front end that uses third party compressors (PNGOUT, OptiPNG, and DeflOpt) to get the smallest file size. Obviously, trying three different compression tools one after the other does increase the overall time, but it takes the work out of trying all three tools separately.

Pnggauntlet

A nice feature is the ability to automatically queue multiple files for batch processing. Although maximum compression is already set for each tool, there are other options available from the Tools menu. Note that PNGGauntlet has not been updated since 2012 but both PNGOut and OptiPNG have been updated since then. You can copy the updated versions into the PNGGauntlet’s Support folder.

Download PNGGauntlet


13. Pngcrush (PNG)

Pngcrush is another open source command linetool that attempts to optimize PNG images by trying out different compression levels and PNG filter methods. If you use the -brute switch, Pngcrush will test the image with 148 internal methods to find the one that gives the best compression.

Pngcrush maximum compression command:

Pngcrush.exe -brute filein.png fileout.png

Pngcrush

Download Pngcrush


14. Kraken (PNG)

Kraken is a free online image optimizer that supports both lossless and lossy optimization modes. You can choose the source of the image from your computer or import from Box/Dropbox/Google Drive. Compressed PNG images are kept on the server for 12 hours.

Kraken io

The maximum image size is only 1MB which should be OK for most use cases. One of the test images we used in the compression size test wouldn’t compress because of this limitation.

Visit Kraken


15. PNGOUT (PNG)

Unlike most command line PNG optimizers, PNGOUT is not open source because the compression algorithm is used in the commercial GUI version called PNGOUTWin. Although it is not open source, you can find pre-compiled binaries for Windows, Linux, BSD, and Mac OS. PNGOUT uses the highest Xtreme compression by default so there’s no need for a compression level argument.

PNGOUT also accepts GIF, BMP, JPG, Targa, and PCX images as input files. The command is:

pngout.exe image.png

Pngout compression

Download PNGOUT


16. PngWolf-Zopfli

This tool is a fork of an old PNG optimizer called PNGwolf dating back to 2007. It adds a final compression step using the Zopfli algorithm which tries to squeeze out that extra few KB. Although there are a number of arguments that can be supplied, there isn’t a great deal of documentation about them. Supplying no arguments apart from input and output file name seems to produce good results.

PngWolf-Zopfli maximum compression command:

PngWolf-Zopfli.exe –in=inputimage.png –out=outputimage.png

Pngwolf zopfli

Download PngWolf-Zopfli


17. Pngoptimizer.com / Webp-converter.com (PNG and WebP)

Pngoptimizer.com is a very simple website that allows you to upload images up to 3MB for compression. Drag an image onto the browser window or click the browse button to look for the image file followed by clicking the Convert! button.

Png optimizer online

The WebP compression is actually a separate image converter page where you can convert PNG or JPG into WebP. Click the browse button or drop a JPG/PNG onto the window, check the Lossless box and press Convert!

Webp converter online

Visit PNGoptimizer | WebP Converter

PNG and WebP Compression Tests

As mentioned earlier, we took 6 uncompressed 24-bit PNG images and compressed them to both PNG and WebP to see which tools produced the smallest file sizes. The file dimensions and sizes are listed below.

Image #1 – 1280 x 800 – 618,951 bytes
Image #2 – 1282 x 976 – 175,304 bytes
Image #3 – 1280 x 720 – 1,121,811 bytes
Image #4 – 900 x 520 – 45,119 bytes
Image #5 – 1024 x 718 – 90,072 bytes
Image #6 – 1024 x 706 – 68,238 bytes

All tests were performed using the best settings listed for each program or website.

PNG Compression Test

Png compression results 1

It’s clear that ECT is a very good compressor, it won four tests and did very well in the others. Pingo and Pngwolf-Zopfli were both very close behind and also produced great results. We wouldn’t recommend IrfanView’s built in compressor but the OptiPNG plugin works well and performed identically to the command line tool. Faststone and AdvPNG struggled with larger images, smaller image sizes were more competitive.

WebP Compression Test

Webp compression results 2

A couple of things are clear. Webp-converter.com performed worst across the board so only use it if you have to. You can also see that Squoosh, Irfanview, and cWebp produced identical or very similar results which tells you they are likely using the same compression method. It’s not a surprise as Squoosh and cWebP are both made by Google. Irfanview probably uses cWebP for the basis of its DLL file.

Final note: If you want a tool that compresses both PNG and WebP well, then Pingo would be the command line choice and IrfanView, with the OptiPNG plugin, would be the best GUI based option. For the best out and out command line compressors, ECD, Pingo, or PNGWolf would be the choices for PNG and Google’s own cWebP for WebP images.

24 Comments - Write a Comment

  1. dy23bro 5 days ago
  2. Roger E. Thompson 5 months ago
  3. Amaroq 4 years ago
    • HAL9000 4 years ago
  4. Moscaliuc Paul Andrei 4 years ago
  5. John Buchanan 4 years ago
  6. j7n 5 years ago
  7. Kim Steinhaug 6 years ago
  8. sebastian 6 years ago
  9. mike 6 years ago
  10. Josh 7 years ago
  11. Jack 7 years ago
  12. Chaiavi 8 years ago
  13. Maria Jesús 9 years ago
  14. Sudhir 9 years ago
  15. webfork 9 years ago
    • A&L 8 years ago
  16. Boparai 10 years ago
  17. billy13 10 years ago
  18. Ramkrishna 10 years ago
  19. soda 13 years ago
  20. Roy Raay 14 years ago
  21. dino 14 years ago
  22. fr33mumia 14 years ago

Leave a Reply

Your email address will not be published.

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please contact us directly.