Compress images in your browser

Reduce image file size with a quality slider and compare the result against the original before you download.

Illustration of an image shrinking from a larger Before card to a smaller After card

Drop an image here or choose one:

Supported inputs and limits

JPEG, PNG and WebP images up to 25 MB. Very large photos can be slow on older phones because the browser must decode the full image in memory. Animated images are not supported; only a still frame would be processed.

How to use this tool

  1. Drop an image onto the box or choose it with the file picker.
  2. Check the original size and dimensions shown beside the preview.
  3. Move the quality slider. The compressed preview and size update after a moment.
  4. Pick an output format if you want to switch, for example PNG to WebP.
  5. Compare the two previews at full size, then press Download.

Examples

Percentage maths. If a 800 KB photo becomes 200 KB, the reduction is (800 − 200) ÷ 800 = 75%. If it becomes 640 KB, the reduction is 20%.

Photo for a form. A phone photo saved as JPEG often shrinks a lot between quality 90 and 75, with little visible change at normal viewing size. Below about 50, blocky artefacts usually appear.

Screenshot. A PNG screenshot with flat colours may compress poorly as JPEG and show fuzzy text. Try WebP, or keep the PNG.

These are illustrations, not guaranteed results. Output size depends on the picture, its dimensions and the format.

How it works

Your browser decodes the image, draws it onto a canvas element, then re-encodes it with the quality value you chose using the browser’s built-in encoder. JPEG and WebP are lossy, so lower quality discards detail. The tool does not resize the image; to fit a size limit you may also need the Image Resizer.

Settings

SettingEffect
QualityLower values make smaller files with more visible loss. Ignored for PNG.
FormatWebP is often smaller than JPEG at similar quality but not always.

Limits and troubleshooting

If the result is larger than the original, the file was probably already well compressed; lower the quality or change format. If WebP fails, your browser does not support WebP encoding. Metadata such as EXIF data is not kept, because the image is redrawn. Photos from some phones may lose their rotation flag in very old browsers.

Privacy

The tool code reads your file with browser APIs and never sends it anywhere. The page itself is served by a web server that keeps ordinary access logs. See the Privacy Policy.

Choosing a quality setting

Quality numbers are not percentages of the original file. They control how aggressively the encoder discards detail. As a rough guide, which varies from image to image, values from 85 to 95 look close to the original but save little space, 70 to 85 suits most photos on web pages and forms, 50 to 70 gives clearly smaller files with some visible softening, and below 50 visible blockiness is common. Preview at full size and stop at the lowest value you are happy with.

Three realistic scenarios

Reading the numbers on the page

The size of the original file and the new file are both shown, together with a percentage. The percentage is (original − new) ÷ original × 100. If the new file is larger, the tool says “larger” instead of pretending there was a saving. That can happen when a file was already well compressed or when converting a small PNG to a lossless format.

Limits specific to this tool

Troubleshooting

What you seeLikely reasonWhat to try
Result is larger than the originalOriginal was already well compressedLower the quality or choose WebP
“Unsupported file”The file is not JPEG, PNG or WebPConvert it to one of those first
Image could not be readThe file is damaged or has the wrong extensionOpen it in an image viewer to check
WebP errorYour browser cannot encode WebPChoose JPEG
Text looks fuzzyQuality too low for sharp edgesRaise quality or keep PNG

Tips

Always keep the original. Name outputs clearly, for example photo-compressed.jpg. If you need to reach a specific size such as 200 KB, read our guide to compressing images to a target size for a step-by-step approach.

Frequently asked questions

Can I get exactly 100 KB?

Not reliably. The size depends on the image, its dimensions and the format. Adjust quality and, if needed, resize, then check the displayed size.

Does compression reduce quality?

JPEG and WebP compression is lossy, so yes. Preview the result before downloading.

Is my image uploaded?

The tool code does not upload it. Processing happens in your browser.

Related tools

Related articles