Compress JPG and WebP images

Make lighter JPG or WebP images, with a before-and-after preview.

Local processing
YOUR WORKSPACE

Your image stays on this device.

Generated test graphic · 1,200 × 800 px · Transparent PNG

Try JPG at 40% quality, then WebP at 80%. Compare the small text, fine lines and output sizes. This graphic is not a photo; photo results will differ.

Loading the sample replaces the workspace image. Your original file stays unchanged.

Output settings

JPG uses a white background for transparent areas.

Choose an image or load the sample to get started.

Image preview

Your image will appear here

Processed in your browser

No upload, no sign-up. Your original file is never changed.

Your inputs stay on this device. No account or file upload needed.

Why can a compressed image become larger?

A compressor creates a new encoded file; it does not subtract bytes from the original. An already efficient image can grow when encoded again. Judge the downloaded file by its actual size and readable detail. The size figures below are illustrative comparisons, not predicted results for a particular photograph.

Worked examples

Starting point
Example comparison: a 200 KiB original produces a 250 KiB export.
Result
The output is 25% larger, even if a lower quality setting was selected.
Why it happens
The starting file and new export can use different encoding choices. Keep the original if the new version offers no useful saving.
Starting point
Example comparison: a 2 MiB original produces a 1.5 MiB export.
Result
The file is 25% smaller; its pixel dimensions are unchanged.
Why it happens
Byte savings describe storage, not a 25% reduction in width, height or visual quality. Inspect lettering and fine edges separately.

Choose for the job

The form specifies a width or height in pixels.
Resize first. Compression alone preserves dimensions and cannot satisfy a pixel requirement.
The image must retain a transparent background.
Use supported WebP output. JPG fills transparent areas with white; this compressor does not export lossless PNG.

80% quality does not mean 80% of the bytes

Quality is an encoder input, not a file-size ratio. A target such as 100 KB requires checking the actual export; this tool does not search automatically for an exact limit.

How these examples are derived

The image is decoded locally and re-encoded at its original dimensions as JPG or supported WebP. The selected quality is passed to the browser encoder. Output size is compared with the chosen source file; results can vary with image content and browser encoding.

How to use image compressor

Reduce an image’s file size by choosing a lossy output format and adjusting quality. See the actual result before you download it. Your selected image stays in your browser.

  1. Choose one JPG, PNG or WebP image.
  2. Select JPG or WebP and adjust the quality. A lower value trades detail for a smaller file.
  3. Process the image, compare the preview and file size, then download the version that works for you.
TRY THIS EXAMPLE

A photograph for a website

For a JPG photograph, try 80% quality first. Check fine details such as hair or lettering at full size. If the result is still too large, lower the quality or use Image Resizer to reduce its pixel dimensions.

Next steps for this image

Tools do not carry images between pages. Download any result you want to keep before opening another tool, then choose that file in the next tool.

Good to know

  • The output may be larger than the original, especially if the original is already optimized. The size comparison shows increases as well as savings.
  • PNG input is supported, but this tool exports JPG or WebP. It does not offer lossless PNG compression. JPG uses a white background for transparent pixels.
  • A quality percentage is an encoder setting, not a promise about the resulting file size or visual quality.

Common questions

Can I compress a picture to exactly 100 KB?

This version lets you adjust quality and inspect the actual size. It does not guarantee a particular KB target. Reducing the pixel dimensions with Image Resizer can help when quality changes are not enough.

Does a smaller image always look worse?

Lossy encoding discards some information. At moderate settings the change may be subtle, but edges, text and repeated patterns can show visible artifacts. Compare the preview before choosing your output.

Why is WebP unavailable on my browser?

The tool checks whether your browser can actually export WebP. If it cannot, the option is disabled rather than saving a PNG file with a misleading extension.