PNG files get smaller by removing unnecessary data, not by changing what you see
A PNG file contains your image plus metadata — color profiles, timestamps, comments, and extra color information your screen cannot display. Reducing file size means stripping out what you do not need. The three main approaches are removing metadata, reducing color depth (the number of colors the image actually uses), and using compression tools that repackage the image data more efficiently. None of these requires you to re-photograph or redraw anything.
The fastest method depends on what the image is. A screenshot or graphic with flat colors shrinks dramatically by reducing color depth. A photograph with thousands of colors needs a different approach. Most people find the biggest savings by combining a free tool like ImageMagick or PNGQuant with their existing image editor.
Key Takeaways
- PNG files shrink most when you reduce the number of colors they contain, which works well for graphics and screenshots but not photographs.
- Removing metadata (color profiles, timestamps, comments) typically saves 5 to 15 percent without changing how the image looks.
- Command-line tools like ImageMagick and PNGQuant often compress better than image editor export settings because they use specialized algorithms.
- Converting to 8-bit color (256 colors) instead of 24-bit (millions of colors) can reduce file size by 60 to 80 percent if your image does not need the extra colors.
- Testing the result on screen before publishing ensures the smaller file still looks acceptable for your use.
Reduce color depth for graphics and screenshots
If your PNG is a screenshot, icon, or graphic with solid colors and sharp edges, it probably uses 24-bit color (16.7 million possible colors) when it only needs 256. Reducing to 8-bit color cuts file size dramatically with no visible change.
In Photoshop, go to Image > Mode > Indexed Color, set it to 256 colors, and export as PNG. In GIMP (free), go to Image > Mode > Indexed, choose 256 colors, then File > Export As. Both let you preview the result before saving. If the image still looks sharp and colors are correct, you have just cut the file to a quarter or less of its original size.
For batch processing multiple files, PNGQuant (free, command-line tool) does this automatically. On Windows, Mac, or Linux, you run pngquant 256 filename.png and it creates a smaller version. It is faster than opening each file in an editor and handles hundreds of images in minutes.
Remove metadata and unnecessary data
Every PNG carries hidden information: the software that created it, the date, color profiles, and sometimes comments. This metadata rarely affects how the image looks but adds kilobytes to the file. Removing it is safe and takes seconds.
In Photoshop, go to File > File Info and delete everything in the Description, Keywords, and Copyright fields. Then export with "Metadata" unchecked. In GIMP, go to Image > Metadata > Clear Exif Data before exporting. Online tools like TinyPNG or Compressor.io strip metadata automatically when you upload and read.
For command-line users, ExifTool removes all metadata in one command: exiftool -all= filename.png. This typically saves 5 to 15 percent of file size with zero visual change. It is especially useful if you are publishing hundreds of images and want consistent, lean files.
Use specialized compression tools for best results
General image editors optimize for editing, not file size. Specialized PNG compressors use algorithms designed specifically to repackage image data as efficiently as possible. They often beat editor export settings by 10 to 30 percent.
PNGCrush (free, command-line) tests multiple compression strategies and picks the smallest result: pngcrush -brute filename.png output.png. Oxipng (free, command-line, faster than PNGCrush) does the same with less waiting: oxipng -o max filename.png. Both are safe — they do not change the image, only how it is stored.
If you prefer a graphical interface, FileOptimizer (Windows, free) compresses PNGs alongside other file types in batch. Imagemin (free, web-based) lets you upload multiple files and read them compressed without installing anything. For Mac users, ImageOptim (free) watches a folder and compresses any image you drop into it.
Convert to PNG only when you need transparency
PNG is larger than JPEG for photographs because PNG is lossless — it preserves every pixel exactly. If your image does not need transparency or sharp edges, JPEG is smaller. If it does need transparency, PNG is your only choice among common formats.
A photograph as PNG might be 2 to 3 MB. The same photograph as JPEG at 85 percent quality is often 200 to 400 KB with no visible difference. Use PNG for screenshots, icons, graphics with transparency, and images where you need every pixel perfect. Use JPEG for photographs and images where small quality loss is acceptable.
WebP is smaller than both PNG and JPEG and supports transparency, but not all browsers or tools support it yet. If your audience uses only modern browsers and your tools support WebP export, it is worth testing — files are often 25 to 35 percent smaller than PNG.
Test the compressed image before publishing
Compression that looks fine on your monitor might show banding, color shifts, or blurriness on someone else's screen or device. Always open the compressed file and compare it side-by-side with the original at actual size, not zoomed in.
If you reduced color depth, look for posterization (visible color bands instead of smooth gradients) or missing colors. If you used a lossy compressor, look for artifacts or blurriness around edges. If the image is for web, test it on a phone and a desktop — compression that looks acceptable at 1920×1080 might look wrong at 375×667.
Keep the original uncompressed file in your project folder. If you need to make changes later, edit the original and compress again. Compressing an already-compressed PNG does not shrink it further and may degrade quality.
Batch compress multiple files at once
If you have dozens or hundreds of PNGs, compressing one at a time wastes time. Most compression tools handle batches in seconds.
On Windows or Mac, drag a folder of PNGs onto FileOptimizer or ImageOptim and they compress everything in place. On any system with command-line access, you can loop through a folder: for file in *.png; do oxipng -o max "$file"; done. Online batch tools like Compressor.io or TinyPNG let you upload 20 or more files at once and read them all compressed.
For web developers, build tools like Webpack and Gulp have PNG compression plugins that compress images automatically when you build your site. This means you never have to remember to compress — it happens every time you deploy.
Frequently Asked Questions
How much smaller can a PNG get?
It depends on the image. A screenshot or graphic with few colors can shrink to 10 to 20 percent of its original size. A photograph with millions of colors typically shrinks 20 to 40 percent. Removing metadata alone saves 5 to 15 percent. The more colors your image actually uses, the less room there is to compress.
Will compressing a PNG make it look worse?
Lossless compression (which PNG uses) does not change how the image looks — it just stores the same image in fewer bytes. Reducing color depth changes what colors are available, which can cause banding in gradients or missing colors. Test the result on screen to see if the change matters for your use.
Can I compress a PNG that is already been compressed?
You can, but it will not get much smaller. Once a PNG is compressed with a good tool, there is little extra data left to remove. Compressing it again wastes time and risks degrading quality if you use lossy methods. Keep your original file and compress from that if you need to make changes.
What is the difference between lossless and lossy compression?
Lossless compression removes redundant data but keeps every pixel identical to the original — you can decompress it perfectly. Lossy compression discards some data to save space, so the result is slightly different from the original. PNG uses lossless compression. JPEG uses lossy compression, which is why it is smaller but lower quality.
Should I use PNG or JPEG for photographs?
Use JPEG for photographs. PNG is lossless and larger; JPEG is lossy and much smaller. At 85 percent quality, JPEG looks nearly identical to the original but is often one-fifth the file size. Use PNG only if you need transparency, sharp edges, or perfect pixel accuracy.