Skip to content
ToolZone

Image CompressorUpdated

Reduce an image's file size by optimizing its encoding, letting you shrink photos and graphics before uploading them to a website or app.

Runs in your browser. Nothing you enter or upload leaves your device.

Format
Max width

Images are processed in your browser and never uploaded. Saving removes EXIF data such as GPS location.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the Image Compressor

The Image Compressor re-encodes a picture as a JPEG at the quality level you choose and shows the original and compressed versions next to each other with their file sizes. It is for anyone who needs to make a photo small enough for an email attachment, a web form limit or a faster-loading page.

How it works

The image is decoded in your browser and drawn onto a canvas, scaled down first if you chose a Max width. The canvas is then exported as JPEG (on a white background) or WebP at the selected quality, so the browser's own encoder decides how much detail to discard. Moving the slider re-encodes the image after a short pause.

JPEG compression works on 8 × 8 pixel blocks, converting them into frequency components and rounding off the high-frequency detail more aggressively at lower quality. That is why smooth areas compress very well while sharp edges and text pick up visible artifacts first. WebP uses a newer method that is usually 25 to 35 percent smaller at similar quality. The size shown is the exact size of the file you download.

How to use

  1. 1

    Drop an image on the box or click it to choose one from your device.

  2. 2

    Drag the Quality slider, pick JPEG or WebP, and optionally a Max width to shrink large photos.

  3. 3

    Compare the Original and Compressed previews and check the size reduction.

  4. 4

    Click Download to save it with -compressed added to the original name. Your settings stay in the page link.

Worked examples

Phone photo for email

A 4.2 MB JPEG straight from a phone camera.

Input
Quality: 60%
Result
A JPEG typically several times smaller with the same pixel dimensions

Exact savings depend on the photo's detail and how heavily the camera already compressed it.

Already-optimized image

A JPEG that was previously saved at low quality.

Input
Quality: 90%
Result
Little or no reduction (shown as Reduced by 0%)

Re-encoding at a higher quality than the original cannot recover detail and may even make the file larger.

Limitations
JPEG output fills transparent areas with white; choose WebP to keep transparency. Animated GIFs and WebPs are saved as a single still frame. Metadata such as EXIF camera details and GPS location is removed; the orientation is applied to the pixels first.
Assumptions
Your browser can decode the chosen image format (JPG, PNG, WebP, GIF and BMP work in all modern browsers).
Privacy
The image is read and compressed inside your browser and is not uploaded to any server.

Frequently asked questions

Will compressing an image reduce its quality?+

Yes, a little. JPEG compression discards detail, and the lower the quality setting the more it removes. Around 60 to 80 percent the difference is usually hard to see while the file is much smaller.

Does my image get uploaded to a server?+

No. The file is read and re-encoded by your browser, and the download is created locally.

Why is my compressed file bigger than the original?+

If the original was already a heavily compressed JPEG or a small PNG with flat colors, re-encoding at a high quality can produce a larger file. Try a lower quality, or keep the original.

What happens to a transparent background?+

JPEG has no transparency, so transparent pixels are filled with white. Choose WebP to keep the transparency.

Does it change the image dimensions?+

Only if you pick a Max width. Shrinking a large photo to 1920 or 1280 pixels wide usually saves far more than lowering the quality.

Related tools