Compress PNG Images

Shrink PNG file sizes by up to 80% — perfect for screenshots, graphics, and UI assets

Drop images to compress

or browse files · paste from clipboard

JPEG · PNG · WebP · AVIF · GIF

Image processing settings
Output:
Quality:
Max width:

How PNG Compression Works

PNG is already a lossless format, so traditional "compression" means one of two strategies:

  • Format switching — Auto compares PNG and WebP at balanced quality while protecting transparency. You can also explicitly choose AVIF when your browser supports encoding it.
  • Maximum-width resizing — Downscaling oversized PNGs preserves their aspect ratio and can substantially reduce file size.
  • Metadata stripping — EXIF and other source metadata are not carried into the newly encoded output.

Typical Results

Screenshots

60-80%

size reduction

UI Graphics / Icons

40-60%

size reduction

How to compress PNG images

  1. Drop your PNG files into the box, browse for them, or paste from your clipboard. A batch can hold up to 50 files of up to 20 MB each.
  2. Choose an Output. Auto keeps whichever of PNG and WebP is smaller, while PNG keeps every file a PNG.
  3. Pick a Max width of 1920, 1280 or 800 if the images are bigger than you need. This is the most reliable way to shrink a PNG that stays a PNG.
  4. Compare each result with the before and after slider, then press Download or Save All for a ZIP. Names keep the original and add -compressed.

Why PNG files are hard to shrink

PNG is lossless, so there is no quality dial to turn down. The Quality slider does not change a PNG, and a PNG that is already well packed cannot get smaller without losing something. In that case XImage returns the original file untouched.

Real savings come from three places: switching to WebP, which is lossy but keeps transparency, reducing the dimensions, or repacking a file that was saved inefficiently in the first place.

Auto or PNG: choosing the output

  • Auto compares PNG and WebP at 80% quality and keeps the smaller. The winner is often a WebP, which is lossy. It never turns a PNG into a JPG, so transparency is protected.
  • PNG keeps the file lossless and the extension .png. Savings are modest, and nothing changes at all if the new file would not be smaller.
  • JPEG is also on the list, but it fills transparent areas with white and makes the picture lossy. Use it only for photos without transparency.

Settings for common jobs

  • Screenshots and interface graphics: choose PNG and a Max width of 1920 or 1280 to keep text crisp.
  • Photos saved as PNG: PNG to JPG usually gives the biggest drop in size.
  • Logos and icons with transparency: try PNG to WebP, or keep the PNG when the file is already tiny.
  • A hard size limit: use Compress to 200KB or another target-size page.

Everything runs in your browser. Re-encoded files do not copy the original metadata, and nothing is uploaded.

Common questions

Does compressing a PNG reduce its quality?

With PNG output the image stays lossless, so nothing visible changes unless you also reduce the width. Auto can pick a lossy WebP when that is smaller, so switch Output to PNG if you must keep exact pixels.

Why did my PNG come back unchanged?

It was already well compressed. When a new PNG would not be smaller and you did not resize, XImage hands back the original rather than a bigger file. A smaller Max width or WebP output will shrink it.

Will the compressed PNG keep its transparent background?

Yes with Auto, PNG or WebP output, because none of them fill transparent areas. Choosing JPEG output replaces transparency with white.

Can I compress a PNG to an exact size like 100 KB?

Use a target-size page. PNG output can only reach a target by shrinking the dimensions, while Auto and WebP lower the quality first and shrink the dimensions only if they must, which usually keeps more detail.

Are my screenshots uploaded when I compress them?

No. Compression runs in your browser, so screenshots and other private images stay on your device. The page needs a connection only to load.