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
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
- 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.
- Pick Balanced or Best quality for lossless optimization, or Smaller file to reduce the image to 256 colors before it is optimized.
- Press Compress images. Big PNGs take a little longer, because OxiPNG tries several ways of packing the data and keeps the smallest.
- 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
Related tools
- Resize image Change image dimensions in pixels, percent or presets, one file or hundreds, without uploading.
- Image converter Turn JPG, PNG, WebP, AVIF, GIF, BMP, ICO and SVG files into JPG, PNG, WebP or AVIF.
- HEIC to JPG Convert iPhone HEIC photos to JPG or PNG in bulk, with GPS removed, without uploading them.
- Video compressor Shrink a video to fit Discord, WhatsApp or email, right in your browser.
- Compress PDF Shrink a PDF with sharp text, or bring it under a size like 1 MB, without uploading it.
- Image to text Extract printed text from photos and screenshots with OCR in your browser, then copy it or save a .txt.
Guides
- iPhone HEIC photos won't open on Windows: 3 fixes Photos copied from an iPhone arrive as .HEIC files, and Windows often shows an error or a blank thumbnail instead of the picture. Here is why, and three ways to fix it for good.
- How to resize a photo to under 100 KB for online forms Application portals often reject photos above 100 KB, or demand exact pixel sizes. Here is how to meet both rules without making the picture blurry.
- How to compress an image to 20 KB A 20 KB limit is tiny: about the size of this page of text. It is common for signature uploads and small passport-style photos, and it is achievable if you control pixel size as well as quality.
- How to compress an image to 50 KB Many application and exam portals cap photos, signatures and ID scans at 50 KB. This guide shows how to hit that number, what pixel size to aim for, and why a file sometimes still gets rejected.
- How to compress a PNG without losing quality PNG files can often be made smaller with no visible change, and sometimes with no change at all. Here is how lossless optimization works, how much it saves, and what to do when it is not enough.
- How to reduce image size in KB to any target Whether the limit is 100 KB, 300 KB or 800 KB, the method is the same. Understand the three things that decide file size, then reduce them in the right order to keep the picture looking good.
Last updated Nov 12, 2026