How to compress a PNG
Compress PNG files here without changing a single pixel, or trade a few colours for a much smaller file. Everything stays on your device.
- Press Choose files or drop your PNGs. Other images become PNG with a note, for example “This is a JPG file, not PNG — converted anyway.” GIF, SVG and animated PNG files are skipped.
- Choose a Method: Lossless, Fewer colours or Target size.
- With Fewer colours, pick 256, 128, 64 or 32. Dithering is on to smooth gradients.
- With Target size, tap 100 KB, 200 KB, 500 KB, 1 MB or 2 MB, or type a limit.
- If you like, adjust Effort, Remove text chunks or Clean transparent pixels.
- Press the button, for example Compress 18 images.
- Check the result on the checkerboard (“Checkerboard = transparent”), switching between Fit and 100 %. Then save files one by one or with Download all (ZIP), which arrives as
compress-png-18-files.zip.
Lossless or fewer colours: which to choose
Lossless is the default. It takes your original file and packs the same data more tightly with OxiPNG. Decoded, every pixel matches the original exactly. That includes 16-bit and greyscale PNGs, which keep their depth, and interlaced PNGs, which are written non-interlaced with identical pixels.
Fewer colours builds a palette of 256, 128, 64 or 32 colours and stores each pixel as a number pointing into it. The maths is simple. In full colour with transparency, each pixel needs 4 bytes before packing; as a palette index it needs 1. A 1280 × 800 screenshot is 4,096,000 raw bytes in full colour and 1,024,000 as palette indexes. Packing then shrinks both further.
If an image already has fewer colours than you pick, it gets an exact palette, and nothing changes visually. Dithering scatters nearby palette colours to hide steps in smooth gradients. On flat artwork with crisp shapes you can switch it off for cleaner areas.
Quick picks:
- A UI screenshot for a bug report: Lossless.
- A flat two-tone logo: 64 colours.
- A chat emote with soft edges: 128 colours.
Keeping transparent backgrounds
Every method keeps transparency, and the transparency itself is never dithered, so soft edges stay smooth. The one thing to watch is a soft drop shadow at a low colour count. If you see bands in it, you’ll get the tip “Soft shadows may show steps with few colours — try 256 or Lossless.”
Clean transparent pixels is off by default. Fully transparent pixels still store a hidden colour; this option replaces it with whatever packs best. You won’t see any difference, but those hidden values change, which is why you have to opt in.
Saving a transparent logo as JPG would fill the background with a solid colour. That’s why PNG is the right home for cut-out graphics.
Screenshots, logos and UI graphics
PNG is the format for anything with sharp edges or text, and these are the jobs this page is built for:
- Support tickets and documentation. Lossless keeps small text crisp, so error messages stay readable.
- Website icons and buttons. A palette of 64 to 128 colours often looks the same and loads faster.
- Emotes and stream overlays. Transparency stays, and 128 to 256 colours keep soft edges smooth.
- Thumbnails with an upload cap. Target size brings each one under the limit, trying lossless first.
If you drop a photo saved as PNG, the page may say “This looks like a photo: Fewer colours, or PNG to JPG, usually makes it far smaller.”
Effort levels and speed
Effort sets how hard the optimiser searches for the tightest packing: Fast, Normal (the default) or Max. In the tool’s words, “Max is slower and saves a little more; pixels never change”. Use Fast for a quick batch of screenshots, and Max for website graphics you publish once and serve many times. Effort affects the packing step only, so it never changes what the image looks like.
How it works
The PNG optimiser (OxiPNG, built for the web as WebAssembly) and our colour reducer both run inside your browser. Your PNGs are read from disk, processed in memory and offered back as downloads. Nothing is uploaded, and the page keeps working offline after your first visit. You can check this for yourself.
PNG output never carries EXIF data, so no camera details or location survive. Remove text chunks, on by default, also drops hidden notes such as comments and editing timestamps. There’s no separate Metadata control.
Tips & limits
- Photos without transparency are much smaller as JPG: use PNG to JPG.
- If the picture is simply too big in pixels, shrink it with Image Resizer first.
- For a folder that mixes PNG, JPG and WebP, Image Compressor handles them in one run.
- Every file in a run uses the same method.
- Animated PNGs, GIFs and SVGs aren’t processed here.
- It’s free, with no sign-up and no watermark.
Frequently asked questions
How can I compress a PNG without losing quality?
Keep the default Lossless method, and every pixel in the new PNG stays identical to the original. The file only gets smaller through better packing and by dropping hidden text, so the saving varies from file to file. If your PNG was already packed well, the original is kept and the row tells you, so you never end up with a bigger file.
Why is my PNG file so large?
A PNG stores every pixel exactly, and a full-colour pixel with transparency takes four bytes before packing. Flat areas pack well, but photos and noisy textures hardly pack at all. Some files also carry hidden text from editing apps. Switching to Fewer colours cuts each pixel to one byte, and photos without transparency usually belong in JPG.
Will the transparent background stay transparent?
Yes, transparency is kept with every method: Lossless, Fewer colours and Target size. The transparency itself is never dithered, so soft edges don't turn grainy. With very few colours, a soft shadow can show visible steps, which 256 colours or Lossless avoids. Converting to JPG instead would fill the background with a solid colour, because JPG can't store transparency.
How many colours do I need?
The right number of colours depends on what the image shows. Flat logos and simple icons usually look right at 32 to 64, while UI screenshots and emotes need 128 to 256. If an image has no more colours than you choose, it gets an exact palette and stays lossless. Photos rarely look good with few colours, so save those as JPG.
Should I convert the PNG to JPG instead?
For photos without transparency, yes, because a JPG is normally far smaller than any PNG of the same photo, and PNG to JPG does that. Keep PNG for screenshots, text, sharp edges, line drawings and anything with a transparent background. JPG would soften those fine edges and fill transparent areas. This page suggests JPG when a file looks like a photo.
Is there a file limit?
You can compress up to 500 PNGs per run on a computer or 100 on a phone, with no cap in megabytes. Each image may have up to 100 megapixels, or 16.7 on a phone. On a phone, Lossless can't scale a larger PNG down without changing pixels, so the tool asks you to use a computer for that file instead.
How do I compress a PNG to 100 KB?
Choose Target size and tap the 100 KB chip, or type 100 KB. The tool first checks whether a lossless file already fits; if not, it uses the most colours that stay under the limit. Only if that still doesn't fit does it reduce the dimensions, and the row tells you the new size. Transparency is kept the whole way.
Last reviewed: