Skip to content

Compress a PNG online

PNG is a lossless format, so shrinking one is not a slider trick. This page starts with lossless WebP output — usually a fraction of the PNG with every pixel identical — and lets you compare the PNG re-encode side by side. Drop a PNG: it never leaves your device.

How to compress an image

  1. 1. Drop your image onto the tool or click to choose a file. It compresses immediately — there is nothing to upload first.
  2. 2. Move the quality slider and watch the file size update. The preview shows exactly what you will get.
  3. 3. Hit Download. The file is saved straight from your browser, named after the original.

Supported formats

Format Open as input Save as output Good to know
JPG / JPEG Yes Yes Lossy — the quality slider applies. No transparency (flat areas become white).
PNG Yes Yes — Auto keeps PNG Lossless — the quality slider is ignored. Transparency kept.
WebP Yes Yes Usually the smallest file overall; transparency kept.
AVIF Yes (recent browsers) Saved as WebP Browsers decode AVIF but can't encode it yet — details in the compatibility section below.

Settings explained

Quality (1–100%)
Controls how much detail JPEG and WebP output keeps. PNG is lossless, so the slider is ignored for PNG output.
Output format
Auto keeps the original format. Choosing JPEG or WebP re-encodes regardless of input.

Output behavior

  • Pixel dimensions are never changed — a 1920×1080 input stays 1920×1080.
  • EXIF, GPS and camera metadata are stripped from the output.
  • Transparent areas are preserved in PNG and WebP; JPEG output flattens them to white.
  • At very high quality settings an output can occasionally be larger than the input. The tool tells you when that happens instead of silently handing you a bigger file.

Real compression results

Measured by encoding the same 1600×1000 test image at each setting, using the quality scale the tool exposes. Your file sizes will differ — the ratios are what matter.

Setting File size vs. original
Original — JPEG · quality 90 91 KB —
JPEG · quality 40 37 KB 60% smaller
JPEG · quality 75 60 KB 35% smaller
JPEG · quality 95 133 KB 45% larger
WebP · quality 75 24 KB 74% smaller
PNG · lossless 133 KB 45% larger

What quality settings look like

Sample test image with a sky gradient, mountains, a color chart, fine vertical lines, a checkerboard patch and small text
The source image used for the measurements above (1600×1000).
Close-up crop saved as JPEG quality 40 — blocky artifacts visible around the checkerboard and fine lines
Quality 40 · 57 KB — visible artifacts
Close-up crop saved as JPEG quality 75 — artifacts barely visible
Quality 75 · 57 KB — good balance
Close-up crop saved as JPEG quality 95 — visually identical to the original
Quality 95 · 50 KB — near-original

Privacy

This tool works completely offline in your browser. Your image is read into memory, re-encoded locally, and offered back to you as a download. Nothing is transmitted to any server, and closing the tab discards everything.

Browser & device compatibility

  • JPG, PNG and WebP work in every modern browser.
  • AVIF input needs a recent browser — current Chrome, Edge, Firefox or Safari 16+. On older browsers you'll see a clear message instead of a broken result.
  • Very large images (100+ megapixels) can exceed the memory of older phones and tablets — processing happens on your device, so your hardware sets the ceiling.

Troubleshooting

  • "That file type isn't supported" — the file isn't a JPG, PNG, WebP or AVIF image. Rename or re-export it first.
  • "Your browser couldn't decode this file" — the type is recognized but this browser can't read it (often AVIF on an older browser), or the file is corrupted.
  • Very large images are slow or fail — processing uses your device's memory; see compatibility above.
  • Output looks identical but barely smaller — the file was probably already well-compressed. Try WebP output or a lower quality value.

Related tools

  • Resize Image — Change dimensions in pixels with aspect ratio preserved.
  • Convert Image — Convert between JPG, PNG, WebP and AVIF without uploading a thing.
  • Remove EXIF — Strip EXIF, GPS location and hidden metadata from photos — lossless and private, on-device.

Frequently asked questions

How do I make an image file smaller?

Drop your image above, adjust the quality slider until you like the balance of size and detail, then download. Most photos look fine at 70–85% quality while getting dramatically smaller.

How can I compress image size without losing quality?

Set the quality slider around 75–85% — most photos look identical to the original at that level while the file becomes dramatically smaller. The before/after preview shows you the exact trade-off before you download, and the comparison table below shows real measured results.

Will compressing an image reduce its quality?

JPEG and WebP compression is lossy — some data is discarded to save space. At moderate quality levels (70–85%) the difference is usually invisible. You preview the exact result before downloading, so you stay in control. The 'What quality settings look like' section below shows real examples.

Why is my PNG barely getting smaller?

PNG is a lossless format, so the quality slider does not apply to it. For PNG screenshots and graphics, switch the output format to WebP — it typically shrinks them significantly while staying visually identical.

Are my images uploaded to a server?

No. Compression runs entirely in your browser using your device's own processor. Your images never leave your computer or phone.

What happens to EXIF and GPS metadata?

Re-encoding strips metadata such as camera details and GPS coordinates from the output. That is good for privacy — and one more reason the download is smaller than the original.

Why is my PNG not getting much smaller?

Because PNG is lossless: the quality slider cannot trade detail for size the way it can with JPEG. The real PNG compressor wins come from WebP output — lossless WebP stores the identical pixels with far fewer bytes — or from converting the PNG to JPEG when the content is photographic and exact pixels do not matter.

How do I compress a PNG without losing quality?

Choose WebP as the output with the quality slider anywhere — the tool writes a lossless WebP that keeps every pixel and the transparency identical, giving the smallest file possible without any loss. If a tool or platform requires PNG specifically, use the Auto output: the PNG is re-encoded, so the size changes a little either way.