HeyDreaming

Free · up to 20 PNGs in your browser · free account to download

Compress PNG Images

Loading the tool…

Drop up to 20 PNG files to shrink their byte size while keeping transparent backgrounds intact. Pick a 256-, 128- or 64-color palette or lossless encoding—everything runs on your device, so your PNGs are not uploaded.

How do I reduce PNG file size without losing transparency?

Drop up to 20 .png files into the box above and they compress right away at 256 colors; pick 128 colors, 64 colors or Lossless in the Colors menu to redo them. The tool decodes each PNG onto a canvas and re-encodes it at the original width and height, with an indexed RGBA palette (unless you chose Lossless) that keeps alpha transparency. If the re-encoded file is not smaller, your original PNG is kept untouched.

How it works

01

Add up to 20 PNG files

Drag or choose .png images up to 50 MB each. Non-PNG files and files over 50 MB are skipped.

02

Pick the color palette size

Choose 256 colors (default) for screenshots and graphics, 128 or 64 colors for smaller flat icons, or Lossless (no palette) to keep every RGB color.

03

Download one PNG or a ZIP

Compare the before and after byte sizes on each row; they update after a change in the Colors menu. To download one file or a ZIP, sign in to a free HeyDreaming account with Google or email (no credit card).

How indexed palette compression shrinks PNGs

Many PNG exports store full RGB or RGBA color for every pixel, even when a screenshot, logo or diagram uses only a few dozen distinct shades. Selecting 256, 128 or 64 colors quantizes the image to an indexed RGBA palette so each pixel stores a compact palette index instead of separate color channels.

Alpha transparency, including soft drop shadows and anti-aliased edges, is kept in palette mode, though alpha levels share the palette with the colors. For screenshots, UI mockups and badges, 256 colors often cuts the file size a lot with little or no visible change. If your image has smooth photographic gradients that band in 256 colors, switch the menu to Lossless (no palette) or convert the image to WebP or JPG.

What changes in the file—and when the original is kept

Each PNG is decoded in your browser, drawn to an 8-bit sRGB canvas at its original width and height, and encoded as a new PNG. Because the canvas uses standard sRGB, wide-gamut color profiles (such as Display P3) and PNG text or EXIF chunks are not copied to re-encoded files, and animated APNG files keep only their first frame.

If an input PNG is already tightly optimized—or if Lossless mode produces a file equal or larger in bytes than your original—the tool discards the new encode and returns your original file unchanged.

Batch limits and target-size options

You can compress up to 20 PNG files at once, each under 50 MB, in any modern browser. One Colors choice applies across the whole batch, and compressed files receive a -compressed.png suffix.

If an upload form requires a strict byte ceiling such as 50 KB, 100 KB or 200 KB, use one of the target-size tools linked below, which step through palette sizes and scale dimensions when needed. Your PNGs stay on your device; the page records usage events in Google Analytics without uploading your files.

What this tool does not do

It does not resize pixel dimensions, keep APNG animation past the first frame, preserve embedded color profiles or metadata chunks on re-encoded files, or set a custom KB target on this page.

See all free tools

Keep exploring

Related free tools

Questions

Compress PNG: FAQ

Does compressing a PNG keep its transparent background?

Yes. Both the indexed palette modes (256, 128 and 64 colors) and Lossless mode keep alpha transparency, including semi-transparent edges and shadows. In palette modes the alpha levels share the palette, so very soft gradients can band slightly.

Are my PNG files uploaded to a server?

No. Decoding, palette quantization and PNG encoding run inside your browser on your device. The page sends usage events to Google Analytics, such as file counts and the chosen color mode, but never your images.

What is the difference between 256 colors and Lossless (no palette)?

256 colors converts the image to an 8-bit indexed RGBA palette (technically lossy color reduction, though hard to spot on UI graphics and logos) for large byte savings. Lossless (no palette) keeps every 24-bit RGB + alpha color without quantization, which saves fewer bytes.

Why did my PNG say 'Already small: kept the original'?

If your PNG was already run through a palette optimizer—or if you chose Lossless on an already well-packed PNG—re-encoding can produce an equal or larger byte count. The tool keeps your original file whenever the new encode is not smaller.

Why is my camera photo still a large file as a PNG?

PNG is designed for graphics, text and transparency rather than continuous-tone camera photos. If you do not need transparency, convert the photo to JPG or WebP for a much smaller file.

How do I compress a PNG to a specific KB limit like 100 KB?

Use Compress Image to 50KB, 100KB or 200KB. Those pages try 256, 128 and 64 colors automatically and scale pixel dimensions if the PNG is still above the target.