Compress image

Re-encode a still image as JPEG or WebP with a chosen quality.

Local processing · Nothing is uploaded · 20 MB / 4 megapixel limit

Input & settings

No image selected

Drop a still image or choose a file.

Result

Open an image to begin.

How to use

Open an image, select a lossy export format and quality, then compare the actual input and output byte sizes.

Limits and behavior

Dimensions are unchanged. A smaller file is not guaranteed; the actual size change is shown. This is lossy re-encoding, not lossless PNG optimization. Still PNG, JPEG and WebP only, up to 20 MB, 4 megapixels and 4,096 pixels per side. Animated PNG/WebP are rejected. Processing and downloads stay on your device. Browser decoding applies EXIF orientation; exports do not preserve EXIF, DPI or original color-profile metadata. PNG preserves transparency; JPEG flattens it onto white. WebP export requires a browser encoder and is checked before download.

Image compressor for JPG and WebP output

Reduce an image's file size by re-encoding it as JPEG or WebP with a selected quality level. This online photo compressor is useful for images on websites, email attachments and everyday sharing.

Does stronger image compression reduce quality?

Lossy JPEG or WebP compression can reduce fine detail as quality settings fall. Preview the result and choose a balance between download size and appearance.

Worked example: compare image output sizes

Select a supported PNG, JPEG or WebP image, choose JPEG at quality 85 and run the compressor. The browser produces an image at the original pixel dimensions and reports the input and output sizes so you can compare them.

In our test, a tiny PNG converted into a larger JPEG despite its compression setting. Compression is not a guarantee of a smaller download. Compare actual byte counts and image appearance; keep the original if the new export is larger.

Will transparent pixels stay transparent?

JPEG cannot store transparency, so transparent regions are flattened onto white. For transparency-sensitive images, consider WebP or PNG instead. Re-encoding can remove original EXIF metadata and is not the same as lossless optimization.

Practical guide

Choose the right image compression

Use the quality setting to balance clarity and file size. The tool re-encodes supported still images as JPEG or WebP and reports the actual result.

JPG or WebP?

JPEG is widely compatible and useful for photos. WebP can be efficient, but make sure the website or app receiving your picture accepts WebP.

What about transparent images?

JPEG cannot store transparency, so transparent areas become white. Check the preview before downloading, and keep your original file until you're satisfied.

Worked example and important checks

If a photo is too large for an online form, keep the original and create a compressed copy. Try a supported JPEG or WebP output, compare the actual downloaded byte size, then zoom in to check faces, text, and sharp edges.

Lossy compression can make a file smaller by discarding visual detail, so a precise percentage reduction cannot be guaranteed. An image that's already efficiently compressed may not shrink much. For a strict upload limit, check both the result format and actual size.

Learn how JPEG and WebP quality settings affect results →

Built on Hatchable