Photo To URL logo
Photo To URL

Compress PNG

Reduce PNG file size in your browser, or switch to JPG and WebP when lossless is costing too much.

Why PNG Resists Compression, and What to Do About It

PNG is lossless: it reproduces every pixel exactly, which is why it is right for logos, screenshots and anything with transparency, and why quality sliders have no effect on it. Re-encoding a PNG in the browser often produces a file no smaller than the one you started with - and when that happens this tool tells you and hands back your original rather than a bigger file. The reliable way to make a PNG dramatically smaller is to change format: switching to WebP keeps transparency and typically halves the size, while JPG goes smaller still if you do not need an alpha channel.

How to Compress an Image

1

Upload your image

Pick a JPG, PNG, WebP, or GIF file from your device. It stays on your computer - nothing is sent to a server.

2

Set a target size or quality

Type the exact KB size a form or upload limit requires, tap one of the presets, or switch to the quality slider for manual control.

3

Download the compressed file

Check the before and after sizes, then save the smaller image in JPG, PNG, or WebP.

Working With Large PNGs

  • Screenshots that are several megabytes for no good reason
  • Logos and icons bloating a page's total weight
  • Exported design assets heading into a website build
  • Transparent product cut-outs for a catalogue
  • PNG scans that need to fit an upload limit
  • Deciding whether an image really needs to stay PNG

PNG Compression Questions

Why did my PNG not get smaller?

Because PNG is lossless, so there is no quality to trade away. If the browser's encoder cannot beat the original, the tool keeps your original file and says so rather than giving you something larger.

What is the best way to shrink a PNG?

Change the output format. WebP keeps transparency and is usually about half the size; JPG is smaller again but drops the alpha channel.

Will converting lose transparency?

Only with JPG, which has no alpha channel - transparent pixels become a solid background colour. PNG and WebP both keep it.

When should an image stay PNG?

Logos, line art, screenshots of text and anything needing transparency. Photographs are almost always better served by JPG or WebP.