Image Compressor

Re-encode a JPG, PNG, or WebP in your browser. Compare the actual file sizes before downloading.

Loading tool…

How to use Image Compressor

  1. Choose one still JPG, PNG or WebP image, up to 10 MiB, 16 megapixels and 8192 pixels per side. You can also try the bundled sample image.
  2. Choose JPEG, WebP or PNG output. Adjust quality for JPEG or WebP; PNG does not use a quality setting.
  3. Choose Compress image. Compare the original and encoded image, unchanged pixel dimensions and actual file sizes.
  4. Download the result if it suits your needs. If the output is larger, try WebP or a lower JPEG quality. Your original file is unchanged.

Questions about this tool

Will every image become smaller?

No. Re-encoding can produce a larger file, especially for an already optimized image or PNG output. The tool measures both files and shows the actual percentage and byte difference. Lower JPEG or WebP quality can reduce size, with a loss of detail. There is no fixed savings target.

Which output format should I choose?

JPEG is useful for photographs when transparency is not needed. WebP supports transparency and adjustable quality if your browser can encode it. PNG retains transparency without a lossy quality setting. This tool re-encodes PNG pixels; it is not a dedicated palette-quantization or lossless PNG optimization engine.

Will transparency be preserved?

PNG and WebP output retain transparency. JPEG does not support transparent pixels, so the tool places them on a white background. Check the output preview before downloading, especially around logos, icons and soft edges.

Does compression change image dimensions or metadata?

The output keeps the decoded image's pixel dimensions and applies the orientation recorded in the image when supported by your browser. It does not resize or crop. Original EXIF, GPS, print-resolution and color-profile metadata are not copied. Browser decoding and encoding can change colors; this is not a color-proofing tool.

Can I compress PNG without losing image quality?

PNG output uses a lossless encoder for the pixels produced by browser decoding. It does not use the quality slider and can be larger than the source. Original metadata, bit depth and color-profile behavior are not preserved exactly. Choose WebP or JPEG only if their lossy encoding and transparency behavior suit your image.

Are images uploaded or saved by the tool?

Your selected image is decoded and encoded in this browser tab. The tool does not upload image contents or save images to browser storage. The sample image is downloaded from this website when requested. Clear or leave the page to release the previews and result; downloaded files remain on your device.

What files and sizes are supported?

Use one still JPEG, PNG or WebP up to 10 MiB, 16 million pixels and 8192 pixels per side. Output is limited to 64 MiB. The tool checks the actual file format and dimensions before decoding, then checks decoded dimensions again. HEIC, GIF, animated PNG, animated WebP, damaged files and oversized images are not supported.

Why is a format unavailable, or why did encoding fail?

Supported image encoders vary by browser. If the browser silently returns a different format, the tool rejects it instead of downloading a mislabeled file. Try JPEG or PNG, a smaller image, or a current browser. Cancel discards unfinished results; the browser may finish an in-progress decode or encode internally, but it cannot replace the current result.

Your Mac, a glance away.

Explore DockMagic’s native Widgets for macOS.

Explore DockMagic