Compress PNG images
Optimize PNG screenshots and graphics losslessly, or reduce colors for much smaller files.
Drop files here
or
Choose filesPNG · JPG · GIF · SVG · TIFF · WebP
Files never leave your device
Loading the compressor…
How to compress PNG files
Add your files
Drop files on the box, paste them or choose them from your device. Nothing is uploaded.
Check the settings
The default preset suits most files. Change quality, size or format if you need a smaller file.
Download the result
Save each file or all of them as one ZIP. If a file cannot get smaller, you keep the original.
What PNG is good at
PNG (Portable Network Graphics) was created in 1996 as a patent-free replacement for GIF. It is lossless: every pixel you decode is exactly the pixel that was saved. It supports full color, grayscale, indexed color with a palette, and a full alpha channel, so edges can fade smoothly into any background. That makes PNG the usual choice for screenshots, logos, icons, user-interface graphics, charts and anything with sharp text.
The price of being lossless is size. A photo saved as PNG is often several times larger than the same photo as a JPEG, because the noise and fine texture of a photograph cannot be predicted well enough to compress.
Why PNG files can still shrink
PNG compresses in two stages. First, each row of pixels gets a filter (None, Sub, Up, Average or Paeth) that replaces pixel values with their difference from neighbors; flat areas turn into long runs of zeros. Then the filtered data is packed with DEFLATE, the same algorithm as ZIP. Many programs pick filters and DEFLATE settings quickly rather than well, so the same pixels can often be stored in fewer bytes.
That gives two ways to make a PNG smaller:
- Lossless optimization. The tool runs OxiPNG, which tries different filter strategies and compression settings and keeps the smallest result. The image stays pixel-identical. Gains depend heavily on how the file was saved: an export from a quick screenshot tool often shrinks noticeably, a file that was already optimized hardly changes.
- Palette reduction (lossy). A full-color PNG with transparency stores 4 bytes per pixel. Converting it to a palette of up to 256 colors stores 1 byte per pixel before DEFLATE even starts, which is why this mode usually saves far more. Flat graphics and screenshots survive it well; smooth gradients and photos can show banding.
Palette reduction is the default ("Smart" mode, 256 colors with dithering); switch PNG compression to Lossless when every pixel must stay exact. The color count setting controls the palette size; fewer colors means a smaller file and more risk of visible steps in gradients.
Settings for common jobs
| Image | Mode | Notes |
|---|---|---|
| Logo or icon | Smart, 64–256 colors | Check soft edges against a dark and a light background |
| Screenshot with text | Smart, 256 colors, or Lossless | Resize first if it came from a high-resolution screen |
| Diagram for documentation | Lossless | Keeps every line exact for later editing |
| Photo saved as PNG by mistake | Convert the output to JPG or WebP | Use PNG only if you need transparency or exact pixels |
Retina screenshots are a frequent source of huge PNGs: a full-screen capture on a 2880 × 1800 laptop display has more than 5 million pixels. Resizing the longest side to 1600 px cuts that to less than a third and usually matters more than any compression setting.
For orientation: in our tests, four PNG screenshots of Wikipedia, MDN and GitHub pages became 58–60 % smaller with the default Smart mode and, at the median, about a third smaller in Lossless mode. Your own files may shrink more or less.
Common problems
- Banding in gradients after Smart mode. Raise the color count or switch back to lossless.
- A jagged halo around a transparent logo. Antialiased edges need several levels of transparency; keep at least 128 colors for such images.
- Almost no saving in lossless mode. The file was already well packed. Only palette reduction or smaller dimensions will make a real difference, and the tool returns the original file when nothing smaller can be made.
- The PNG is a photograph. JPEG or WebP fits the content better and will be far smaller.
PNG questions
Does lossless mode change my image at all?
No. The decoded pixels are identical; only the way they are packed changes. You can compare the before/after view at any zoom level and you will not find a difference.
What is PNG-8 versus PNG-24?
These are informal names. PNG-8 means an indexed image with a palette of up to 256 colors; PNG-24 means full RGB color, and PNG-32 adds an alpha channel. Palette mode in this tool produces PNG-8 files that can still contain transparency.
Will transparency survive compression?
Yes, in both modes. If you convert the output to JPG, transparent areas become white because JPEG has no alpha channel.
Should I use PNG or WebP on my website?
For photos with transparency, WebP is usually much smaller, and all current browsers display it. This tool writes WebP in its lossy mode, so for graphics that must stay pixel-exact keep PNG, which also opens in older software.
More image tools
The image compressor handles a mixed batch of files. Animated graphics belong in the GIF compressor, and how it works explains what lossless and lossy mean in more detail.