Compression guide

How to reduce PNG file size: 7 methods that work

Updated 7 min read OptimizePNG team

Big PNG files slow pages down, bounce off upload limits and clog inboxes.

The good news: most PNGs can lose half their weight or more without anyone noticing.

Here are the seven methods that actually move the needle, in the order we would try them.

Why PNG files get so big

PNG is a lossless format: it stores every pixel exactly as it is. That is perfect for sharp text and logos, and expensive for everything else.

Four things inflate a PNG the most. Big pixel dimensions, photographic detail and noise, a full 24- or 32-bit color depth the image does not need, and hidden metadata from cameras and editors.

Each method below attacks one of those four.

1. Optimize with smart lossy compression

This is the biggest single win. A PNG optimizer looks at the colors your image really uses and rebuilds it around a compact palette, then re-encodes it.

Screenshots, UI, logos and illustrations typically shrink by 50-80%. The output is still a standard PNG with full transparency, so nothing downstream breaks.

Try it: optimize up to 10 PNGs at once, free.

Open PNG Optimizer

2. Resize to the size it is displayed at

File size grows with pixel count, and pixel count grows with the square of the width. Halve the width and height and you drop about 75% of the pixels.

A 4000 px wide export shown in an 800 px column wastes 96% of its pixels. Resize to the display width (or 2x that for sharp retina screens) and you are done.

Resize with presets for social, web and icons.

Open PNG Resizer

3. Convert to an 8-bit (256-color) palette

Logos, icons, charts and pixel art rarely use more than a few hundred colors. Storing them as 8-bit indexed PNG instead of 24- or 32-bit cuts the raw data by up to 75%.

Transparency survives too. Modern PNG-8 files can carry semi-transparent palette entries, so soft edges and shadows still look right.

Not sure what 8-bit, 24-bit and 32-bit mean? Read PNG bit depth explained.

Convert any PNG to 8-bit indexed color.

Open PNG to 8-Bit

4. Strip metadata

PNGs can carry text chunks, color profiles, editor history and even full EXIF blocks. On small graphics that baggage can be a surprisingly large share of the file.

Removing it also protects your privacy - camera details, software names and sometimes GPS data go with it.

See what is hiding in a PNG, then remove it.

Open Metadata Remover

5. Compress to an exact target size

Some forms and platforms reject anything over 100 KB, 500 KB or 1 MB. Guessing quality settings until it fits gets old fast.

A target-size compressor does the guessing for you. Give it the limit and it finds the best quality that fits.

Hit 20 KB, 50 KB, 100 KB, 1 MB or any size you type.

Open Compress to Size

6. Crop away empty space

Screenshots and exports often carry wide transparent or white margins. Those pixels still cost bytes, especially when they hold faint noise or gradients.

Cropping to the content shrinks the file and usually makes the image look better in the layout too.

Drag-to-crop with a live preview.

Open Crop PNG

7. Switch format when PNG is the wrong tool

PNG is not built for photos. A photo saved as JPG or WebP is often 5-10x smaller than the same photo as PNG.

WebP keeps transparency and is supported by every modern browser, so it is a great choice for websites. JPG is the most compatible choice for photos with no transparent areas.

Convert PNG to WebP, JPG, AVIF and more.

Open PNG Converter

Weighing the formats up? Our PNG vs WebP vs JPG comparison has a quick decision table.

Which method should you use?

Match the method to the image. Most files benefit from two of them - resize first, then optimize.

Your imageDo this firstThen
Screenshot or UI captureOptimizeCrop the margins
Logo, icon or flat graphic8-bit paletteResize to the sizes you need
Photo saved as PNGResizeConvert to WebP or JPG
Huge export from a design appResizeOptimize
Upload with a hard size limitCompress to Size-
Image you will share publiclyStrip metadataOptimize

Rule of thumb: fix the pixel dimensions first, then the colors, then the format. Doing it in that order gives the smallest file for the least quality loss.

Frequently Asked Questions

Start with smart lossy optimization - it typically removes 50-80% of a screenshot or graphic with no difference you can see. Then resize to the size the image is actually shown at and strip metadata. All three keep the file a normal PNG with its transparency.

PNG is lossless, so it stores every pixel exactly. Large dimensions, photographic content, noise and embedded metadata all add bytes. A 4000 x 3000 photo saved as PNG can easily pass 15 MB.

Use Compress PNG to 100KB. It searches for the highest quality that still fits under the limit. If a large photo cannot get there on quality alone, resize it first and try again.

No. PNG optimization, resizing, 8-bit conversion and metadata removal all keep the alpha channel. Only converting to JPG removes transparency, because JPG does not support it.