ToolGlobalHubGlobal • Free • No sign-up

Tool

Drop an image or choose a file
JPG, PNG or WebP. The file never leaves your device.

← All Tools Home Every tool has its own page — bookmark it and come back any time.

Related tools

Image Compressor

The Image Compressor takes one image file — JPG, PNG or WebP — and re-encodes it in your browser at the quality level you set. It shows a preview, reports the original and compressed sizes side by side, and lets you download the result as compressed.jpg, compressed.webp or compressed.png, depending on the output format you picked.

The tool never changes the picture's dimensions: the compressed file keeps the original width and height in pixels. Only the encoding changes. The file is processed on your device and, as the tool itself states, never leaves it — compression runs again automatically whenever you change the file, the quality slider or the output format.

How the Image Compressor works

The image is drawn onto a browser canvas at its natural width and height, then exported again in the format you selected, at the quality fraction set by the slider — the slider value divided by 100. The browser produces the new file, and the tool compares its size with the original's and works out the percentage saved.

That comparison is shown honestly in both directions. If the new file is smaller, the result line reports how many percent smaller it is. If it comes out larger — which can happen when a small image is saved as PNG — the tool says so and suggests lowering the quality or choosing WebP or JPEG.

  • Choose an image: Drop an image or use the file picker. The on-screen note names JPG, PNG and WebP.
  • Set the quality: Move the Quality slider between 10% and 95%. It starts at 72%. Lower values give smaller files with more visible quality loss.
  • Pick an output format: Choose JPEG, described in the tool as smallest for photos, WebP, described as best for web, or PNG.
  • Check the result: Read the result line — original size, compressed size, percentage difference and pixel dimensions — and look at the preview.
  • Download: Use the Download Compressed Image button, which becomes active once a compressed file has been produced.

Compression keeps the original pixel dimensions, so if you also need a smaller width or height, use the Image Resizer as a separate step. The quality slider does not affect PNG encoding the way it affects JPEG or WebP, so a PNG result can be larger than the original — the result line will tell you when that happens.

If an image cannot be read, the tool explains that iPhone HEIC photos and damaged files often fail here, and advises exporting the photo as JPG or PNG and trying again.

Worked examples

Example — a photo at the default settings

A 2000 × 1500 photo compressed at the default 72% quality with JPEG output stays 2000 × 1500 pixels — only the encoding changes. The result line then reports the original size in KB, the compressed size in KB, the percentage smaller, and the dimensions, so you can judge the saving before downloading.

Example — when the result is larger

If a small, already-efficient image is re-saved as PNG and the new file is bigger, the tool does not hide it: the result line reports the percentage larger and advises lowering the quality or choosing WebP or JPEG — and changing the format re-runs the compression without re-selecting the file.

Image Compressor FAQs

What quality setting does the compressor start at?

The Quality slider starts at 72% and runs from 10% to 95%. Changing it re-runs the compression on the image already selected, so you can compare results without selecting the file again.

Which output formats can I choose?

JPEG, WebP and PNG. The format menu describes JPEG as smallest for photos and WebP as best for web. The downloaded file is named compressed.jpg, compressed.webp or compressed.png to match your choice.

Why did my compressed file come out larger than the original?

Re-encoding does not always shrink a file — a PNG output in particular can be larger than an efficient original. When that happens the tool reports the percentage larger and suggests lowering the quality or choosing WebP or JPEG.

Why won't my iPhone photo load in the compressor?

The tool's own error message explains that iPhone HEIC photos and damaged files often fail to load. Export the photo as JPG or PNG first, then select the exported file.

Related tools

Compressing is often one step in preparing an image. These tools cover the neighbouring steps.

Image Resizer — Change an image's width and height in pixels, with social media presets.

Image Format Converter — Convert an image between PNG, JPG and WebP at a fixed quality setting.

Image to PDF — Turn one or more images into a PDF, one image per page.

Image & PDF Tools — The full family of image and PDF tools on ToolGlobalHub.