Compress PNG Online Free – Reduce PNG File Size

Compress PNG

Reduce the file size of your PNG images. Cut the color count, shrink the dimensions, or both. The alpha channel (transparency) is kept intact. Output is always PNG.

Drag and drop a PNG here, or

Resizing cuts pixel count, and PNG size roughly follows pixel count. The aspect ratio is kept.

Fewer colors means a much smaller file. Transparency is preserved at every setting.

Choose a PNG and press Compress PNG to see your result.

Files never leave your browser.

Need to compress pic files that are eating up your storage? This free PNG compressor shrinks your PNG file size directly in the browser, with no signup, no software to install, and no uploads to a server. Whether you want to compress a PNG screenshot for a support ticket, squeeze an image under an upload limit, or make a web page load faster, the tool above gets it done in seconds.

Compressing a picture is one of the most common image tasks on the web, and PNGs are the format that needs it most. A PNG screenshot or graphic can be several megabytes even at modest dimensions, because the format prioritizes pixel-perfect quality. The compressor on this page attacks PNG size from two directions: it reduces the number of colors in the image (using true median-cut quantization, the same technique classic image editors use) and optionally shrinks the dimensions. Both happen on your own device, so your pictures never leave your browser.

Because all compression happens locally, your images stay private. The tool decodes your PNG, applies your chosen color and size settings, re-encodes it as a fresh PNG, and shows the before and after sizes side by side so you can see exactly how much space you saved before downloading. It also verifies the PNG file signature before doing anything, so a renamed non-PNG file gets a clear error instead of a broken result.

How to compress a PNG

  1. Choose your PNG. Click “Choose PNG” and pick a .png file, or drag and drop it onto the upload area. Files up to 25 MB are accepted. The tool checks the PNG magic bytes (the 89 50 4E 47 signature), so if you accidentally pick a JPEG or another format, you get a clear error instead of a corrupt output.
  2. Pick a resize setting (optional). Keep the original size, scale down to 75%, 50%, or 25%, or cap the longest side at 1920, 1280, or 800 pixels. Resizing alone often cuts the file size dramatically, because a PNG stores one entry per pixel.
  3. Pick a color count. Keep Truecolor for zero color reduction, or choose 256, 128, 64, or 32 colors. This is where the biggest savings come from on graphics and screenshots. Transparency is preserved at every setting, so logos and icons with transparent backgrounds still work.
  4. Press “Compress PNG”. The tool re-encodes your picture in the browser and reports the original size, the new size, the percentage saved, the output dimensions, and the color mode used.
  5. Download the result. Click the download button to save your file as <name>-compressed.png. The compressed copy never overwrites your original. If the output somehow ends up larger than the original, the tool warns you in red instead of letting you download a worse file.

Why PNG files are so big

A PNG is big for three reasons, and the compressor on this page targets all three. The first is color depth. A standard PNG stores 24 bits of color per pixel (truecolor), which means every pixel can be one of 16.7 million colors. That is wonderful for smooth photographs but wildly wasteful for a screenshot of a settings window, a logo, or a chart, where the image may only use a few hundred distinct colors in practice. PNG does have a palette mode that stores 256 or fewer colors, but most exporters save truecolor by default because it is the safe choice.

Reducing the color count is the single most effective way to compress a PNG. The tool above uses median-cut quantization: it analyzes the colors actually present in your picture, divides the color space into regions, and replaces each pixel with the average color of its region. A 256-color version of a screenshot usually looks identical to the original while cutting the file size by half or more. Going down to 64 or 32 colors gives even bigger savings and still looks clean on flat graphics, though smooth gradients and photographs start to show banding at very low color counts. The tool samples up to 90,000 pixels to build the palette, so even large images quantize quickly and accurately.

The second reason PNGs are big is the alpha channel. Transparency is one of PNG’s best features, and it costs an extra 8 bits per pixel. The compressor keeps your transparency exactly as it is: fully transparent pixels stay fully transparent, and partially transparent edges (the soft anti-aliased edges on rounded corners and text) keep their original alpha values. Color reduction only touches the red, green, and blue values, never the alpha.

The third reason is metadata. PNG files can carry text chunks: the software that created the file, color profile data, timestamps, and other information you will never see. Re-encoding through the browser’s canvas strips these ancillary chunks, which is free savings on top of the color and size reductions. Your original file is never modified; the metadata is simply left out of the new copy.

When to compress a PNG vs convert to JPEG

PNG compression and JPEG conversion solve different problems, and picking the wrong one gives you a worse file. Keep the PNG (and compress it with the tool above) whenever the image needs transparency, crisp edges, or flat colors: logos, icons, screenshots with text, diagrams, and UI graphics. On these, PNG’s lossless nature preserves sharp edges that JPEG would smear with artifacts, and color reduction can shrink them by 50 to 80 percent without visible change.

Convert to JPEG instead when the image is a photograph or has no transparency. For photos, JPEG’s lossy compression is dramatically more efficient: a 2 MB photographic PNG often becomes a 200 KB JPEG at quality 80 with barely visible difference. If that is your situation, use our dedicated compress JPEG page, which gives you a quality slider and a target file size mode, or convert your PNG to JPG first and then compress the result.

The rule of thumb: graphics with sharp edges stay PNG and get compressed; photos become JPEG. When in doubt, try both and compare the “Saved” percentages. The tool reports sizes honestly, so you can see which route wins for your specific picture. Never compress a PNG by converting it to a low-quality JPEG and back to PNG: the artifacts get baked in permanently while the file stays large.

Worked example

Here is what a typical run looks like with the tool above. You drop in a PNG screenshot of a settings dialog, and the tool shows its name and original size above the upload area, so you know exactly what you are working with. You leave resize at “Keep original” and set colors to 256, then press “Compress PNG”.

Within a moment the result panel fills in: the original size, the new compressed size, the percentage saved (shown large in green), the image dimensions, and the color mode you used. Because a settings screenshot uses few colors, the 256-color palette captures it almost perfectly, and the savings are usually 40 to 70 percent. The download button appears with a filename based on your original, ending in -compressed.png, so the compressed copy never overwrites your source file.

If the file is still too big, run it again from the original with 64 colors, or add a resize to 50 percent. Each run is independent: the tool always works from the file you uploaded, never from a previous compressed copy, so you never stack quality loss by accident. Screenshots and flat graphics can often go down to 32 colors with no visible change, while gradient-heavy images look best at 128 or 256.

More free image tools

Working with other formats or tasks? Our all-formats page lets you compress images in JPG, PNG, and WebP with quality and target-size controls. You can convert PNG to JPG when a photo would be smaller as a JPEG, or compress JPEGs directly on our JPEG

Frequently asked questions

Is this PNG compressor free?

Yes, completely free with no signup, no watermarks, and no limits on how many pictures you compress. You can compress a pic online from any device with a modern browser. The tool runs entirely in your browser, so there is no server cost per compression to pass on to you.

Will compressing reduce the quality of my PNG?

Color reduction is technically lossy: a 256-color image cannot reproduce all 16.7 million colors of a truecolor original. In practice, graphics, screenshots, logos, and icons use far fewer than 256 distinct colors, so the reduced version looks identical while the file shrinks a great deal. Photographs and smooth gradients may show banding at low color counts, which is why you can preview the savings and choose 256 or 128 colors for those. Your original file is never modified.

Does compressing keep the transparency?

Yes. The quantization step only changes the red, green, and blue values; the alpha channel is carried through untouched. Fully transparent pixels stay fully transparent, and semi-transparent edges keep their original alpha values. The output is a standard PNG that works everywhere the original did.

Are my pictures uploaded anywhere?

No. Everything happens locally in your browser using the canvas API. Your files never leave your device, which also means the tool works offline once the page has loaded and never queues behind other users. This is also why there is no file-count limit or account: nothing is processed on a server.

What does the color count setting actually do?

It runs median-cut color quantization, a classic algorithm from computer graphics. The tool samples your image’s pixels, groups the colors it finds into 256, 128, 64, or 32 clusters, and maps every pixel to its cluster’s average color. Fewer clusters mean each pixel needs fewer bits, which shrinks the file. The “Truecolor” option skips this step entirely and only resizes or strips metadata.

What if my file is a JPEG renamed to .png?

The tool checks the PNG file signature (the first 8 bytes must be 89 50 4E 47 0D 0A 1A 0A), not just the extension, so a renamed JPEG is rejected with a clear error message. For real JPEG files, use our compress JPEG page, which is built for that format.

Why is my compressed PNG larger than the original?

This can happen with already-optimized PNGs: if the original was saved with an aggressive optimizer and few colors, re-encoding through the browser can produce a slightly larger file, especially at the Truecolor setting. The tool detects this and shows a red “larger” note with a warning instead of quietly handing you a worse file. When it happens, try a lower color count or a smaller resize setting, which almost always tips the balance back to savings.

References