Compress PNG

Make PNG screenshots, logos and graphics smaller while keeping transparency intact. Choose lossless optimization or a 256-color palette; it all runs in your browser.

Your files never leave your device

Compression
px

Drop images to compress

JPG, PNG, WebP or AVIF, as many as you like. They stay on your device.

You can also paste files with Ctrl+V.

In short

To compress a PNG, drop it here; the output stays PNG with transparency kept. Balanced repacks the pixels losslessly with OxiPNG, so every pixel stays identical, while Smaller file first reduces the image to a 256-color palette, which usually saves far more on screenshots and graphics.

How to compress a PNG

  1. Drop PNG files on the page or press Choose images; a screenshot can be pasted straight from the clipboard with Ctrl+V or ⌘V. Output format is preset to PNG.
  2. Pick Balanced or Best quality for lossless optimization, or Smaller file to reduce the image to 256 colors before it is optimized.
  3. Press Compress images. Big PNGs take a little longer, because OxiPNG tries several ways of packing the data and keeps the smallest.
  4. Check the result in Compare before and after, especially gradients and shadows at the Smaller file level, then press Download or Download all as ZIP.

Lossless or 256 colors: what changes

A PNG is always lossless: it stores the exact color of every pixel and packs the data with Deflate, the same method ZIP files use. Many programs save PNGs quickly rather than tightly, so there is often slack left. OxiPNG tests different row filters and compression settings and keeps whichever produces the smallest file, without changing a single pixel.

Lossy PNG compression takes another route. The Smaller file level picks the 256 colors that best represent the image, maps every pixel onto that palette, the way GIF works, and then lets OxiPNG pack the result. Each pixel then needs one byte instead of three or four, so screenshots and flat graphics often shrink by well over half, and transparency is preserved.

Photos are where PNG falls short. A photograph contains so many subtle shades that even a well-optimized PNG stays several times larger than a JPG or WebP of the same picture, and a 256-color palette produces visible banding in skies and skin. If the PNG is a photo and doesn't need transparency, set Output format to JPG or WebP instead.

Frequently asked questions

Can you compress a PNG without losing quality?

Yes. Balanced and Best quality use lossless optimization only, so the compressed PNG is pixel-for-pixel identical to the original, just packed more tightly. How much it saves depends on how the file was written; PNGs exported quickly by screenshot tools or design apps tend to have the most room.

Why is my PNG file so large?

PNG never throws detail away, so pictures with many colors, gradients or photographic content need a lot of data. A 1920 × 1080 screenshot of a web page may weigh a few hundred kilobytes, while a photo of the same size stored as PNG can pass 3 MB. For photos, JPG or WebP output is the real fix.

Is transparency kept when compressing a PNG?

Yes, both lossless optimization and the 256-color palette keep transparent areas. Transparency is lost only if you change Output format to JPG, which fills those areas with white. WebP output keeps it too.

What does the 256-color option do to a screenshot?

Usually very little you can see. Interface screenshots consist of flat backgrounds, text and a limited set of colors, so 256 well-chosen ones cover them almost perfectly. Look closely at gradients, photos inside the screenshot and color emoji, which are the places where slight banding can appear.

Should I convert my PNG to WebP or JPG instead?

Convert when the image is a photo, or when it is for a website and every byte counts. WebP keeps transparency and, chosen as the Output format here, compresses like a photo format, so it is usually much smaller than PNG; for exact pixels, the PNG to WebP converter also offers lossless WebP. Keep PNG for logos, icons, line art and files that will be edited again.

How do I compress a PNG to 100 KB?

The most reliable way is to set Output format to JPG or WebP and switch on Set a maximum file size with 100, as on the 100 KB page. If the file must stay PNG, choose Smaller file and lower Maximum width or height until the result fits. PNG has no quality scale, so fewer colors and fewer pixels are the levers.

Does compressing a PNG remove metadata?

Yes. Text chunks, notes left by editing software and embedded color profiles are dropped, and colors are converted to sRGB, the standard for screens. For screenshots and web graphics that is exactly what you want, because those extra chunks only add weight.

Why does it say Already optimized for my PNG?

The file was already packed about as tightly as lossless compression allows, so a new version would have saved less than 2% and the original was kept. This is common for PNGs that went through an optimizer before. Smaller file, with its 256-color palette, may still find a real saving.

Which PNGs compress best

Savings depend more on what is in the picture than on any setting. Large single-color areas and repeated patterns compress superbly, while noise and soft gradients resist.

  • App and website screenshots: big savings with Smaller file, and text stays sharp.
  • Logos and icons: usually few colors, so they keep their look and their transparent background at Smaller file.
  • Charts, diagrams and line art: ideal candidates for the 256-color palette.
  • Photos saved as PNG: small lossless gains; convert to JPG or WebP for a real reduction.
  • Pixel art: use Balanced to keep every exact color.

PNG compression for websites

Every kilobyte of a page's images has to be downloaded by each visitor, and PNG graphics are often the heaviest files on a page. Before compressing, set Maximum width or height to the largest size the image is displayed at, doubled for high-resolution screens; a logo shown 200 pixels wide rarely needs more than 400. Then compress with Smaller file and compare.

To change format without compressing, the PNG to JPG converter handles photos that were saved in the wrong format, and the image resizer sets exact dimensions for icons and banners.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Presets

Guides

Last updated Nov 12, 2026