Drop an image or choose a file
JPG, PNG or WebP. The file never leaves your device.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.