Compress PNG

Make a PNG file smaller, with every pixel kept or with fewer colors.

Drop an image here

PNG, JPG, WebP, GIF or BMP. You can also paste an image.

No result yet

Options

How to use

  1. 1

    Upload a PNG by clicking the stage, dropping a file on it or pasting from your clipboard.

  2. 2

    Keep Lossless to make the file smaller without changing a pixel, or choose Lossy and set Max colors.

  3. 3

    Check the size change next to the result size, then click Download.

Example

Before640 × 427

The example input

After640 × 427

The example result
Compress PNG on a sample photo, with the default settings.

Frequently asked questions

Is Lossless really lossless?

Yes. Every pixel keeps its exact color and transparency; only the way the file stores them changes. Two kinds of PNG come back unchanged: 16-bit PNGs, whose colors do not fit 8 bits, and animated PNGs.

How much smaller will the file get?

It depends on how the file was saved. The size change shows next to the result. Files from screenshots, design tools and browsers often shrink in Lossless mode; a file that is already optimized may not, and then you get it back unchanged. Lossy usually saves the most, more so with fewer colors.

What does Lossy change?

The image keeps at most Max colors. Each is the average of a group of similar colors in the image, found by median cut. Transparency is kept, including partial transparency. With Dithering on, nearby pixels mix palette colors so gradients do not band.

Why is my JPG larger as a PNG?

PNG keeps every pixel exactly, and a photo has a great many slightly different colors. JPEG discards detail to stay small. For photos, keep the JPEG or try Lossy mode.

What happens to metadata?

Text, dates and EXIF data are removed. A color profile and the print size (DPI) are kept, so the image looks the same.

About this tool

Compress PNG saves your image again as a smaller PNG. Lossless keeps every pixel exactly: it stores the image in the smallest form PNG allows (a palette for images with 256 colors or fewer, grayscale, or full color with or without transparency) and tries 5 filters on every row to keep the one that compresses best. If the result is not smaller than your file, you get your file back unchanged. Lossy reduces the image to at most the number of colors you set, each the average of a group of similar colors, and saves it with a palette. That often makes the file several times smaller. Dithering mixes nearby colors so gradients stay smooth. Everything runs in your browser. Your image is never uploaded. Text and EXIF data in the file are removed; a color profile stays, so colors look the same.