Skip to content
tecuy
Image & Media

Image Compressor

Reduce a JPEG, PNG, or WebP file's size with an honest before/after comparison — including when a setting doesn't actually shrink it.

How this actually compresses

This re-encodes your image through your browser's built-in canvas image encoder. Lower quality values reduce JPEG/WebP file size at the cost of visible detail; PNG has no such control since it's lossless. There's no guarantee the result is smaller — an already-compressed image, or PNG re-saved as PNG, can come out the same size or larger, and this tool reports that honestly rather than claiming savings that didn't happen. Re-encoding also strips EXIF, GPS, and color-profile metadata from the output.

Your image is processed locally in your browser — it is never uploaded anywhere.

Reduce a JPEG, PNG, or WebP image's file size by re-encoding it with your browser's built-in image encoder. JPEG and WebP support a quality slider that trades detail for size; PNG is lossless, so there's no equivalent control.

Results are reported exactly as measured — if a particular image and setting produce a larger file than the original (which does happen, especially for already-compressed images), this tool says so rather than claiming savings that didn't occur.

How to use the Image Compressor

  1. Choose a JPEG, PNG, or WebP file in the Image field; the tool shows its format, pixel size, and file size.
  2. Pick an Output format (JPEG, WebP, or PNG) and, for JPEG or WebP, set the Quality slider (10% to 100%, default 75%).
  3. If you are turning a PNG or WebP into JPEG, pick a Background color to fill transparent areas.
  4. Click Compress and compare the before and after sizes and the preview.
  5. Click Download to save the result, or change the settings and compress again.

Example: Shrinking a phone photo for a blog post

Load a JPEG photo named Beach Trip 2024.jpg, keep Output format on JPEG, and lower Quality to 60%. After Compress, the result line shows the original and new sizes in KiB or MiB and the percentage smaller (or larger, if that setting did not help). Download saves it as Beach-Trip-2024-compressed.jpg at the same pixel dimensions as the original.

Questions about the Image Compressor

Does compressing change the image's width and height?
No. The image is re-encoded at its original pixel dimensions. If you need a smaller file than quality alone can give, reduce the dimensions first with the Image Resizer.
What are the file limits?
Files must be JPEG, PNG, or WebP, no larger than 25 MiB, and no more than 25 megapixels. A 48 MP phone photo (8000×6000) is rejected, so resize it first; HEIC files are not accepted.
Why are sizes shown in KiB and MiB?
Sizes are calculated in binary units, where 1 KiB is 1,024 bytes and 1 MiB is 1,048,576 bytes. A file your computer lists as 2.4 MB (2,400,000 bytes) appears here as 2.29 MiB.
Will the compressed photo keep its EXIF and location data?
No. Re-encoding removes EXIF, GPS, and color-profile metadata, which also makes this a simple way to strip location data before sharing. The photo is still displayed upright, because the browser applies the orientation before re-encoding.