What this image compressor does
This tool takes one image at a time (JPG, PNG or WebP, up to 20 MB), re-encodes it with the settings you choose and shows you how much space you saved. You can pick the output format (JPEG, WebP or PNG), set a quality level from 10 to 100, and optionally limit the width so that an oversized photo is scaled down proportionally. A before/after slider lets you check whether the compression is visible before you download anything.
It is useful for people who publish images on the web and want lighter pages, for anyone who needs to fit a photo under an upload limit on a form or a messaging app, and for those who simply want to remove the hidden metadata a phone adds to its pictures before sharing them.
How to compress an image
- Drag and drop a JPG, PNG or WebP file onto the drop area, or click to open the file picker.
- Choose the output format. WebP usually gives the smallest files, JPEG is the most universally supported for photos, and PNG keeps every pixel intact.
- Move the quality slider. It applies to JPEG and WebP only; with PNG output the setting has no effect, as the page indicates.
- If the image is larger than it needs to be, enter a maximum width in pixels. The height is adjusted automatically to keep the proportions, and smaller images are never enlarged.
- Drag the comparison slider across the image to inspect details such as skin, sky gradients, text and sharp edges.
- Check the original size, compressed size and percentage saved, then download the result.
When it comes in handy
- Blog posts and product pages: a photo straight from a camera or phone is often several thousand pixels wide and several megabytes. Resizing it to the width your layout actually displays and saving it as WebP or JPEG can make it far lighter.
- Upload limits: administrative portals, job applications and some email services cap the size of attachments. Lowering the quality a little or reducing the width is usually enough to get under the limit.
- Screenshots: a screenshot saved as PNG can be heavy. If it contains mostly text and flat colors, try WebP at high quality and compare; if fine text becomes blurry, keep PNG.
- Sharing photos privately: re-encoding removes EXIF data such as the GPS coordinates where the photo was taken and the camera model.
- Format conversion: turn a PNG photo into a JPEG or WebP, or a WebP into a JPEG for software that does not open WebP files.
How it works technically
The tool relies on features built into your browser. The file is decoded with createImageBitmap, drawn onto a canvas at the target dimensions, then exported with canvas.toBlob in the format and quality you selected. JPEG and WebP are lossy formats: the encoder discards details the eye is less likely to notice, and the quality setting controls how aggressive it is. PNG is lossless: it compresses the pixel data without throwing any of it away, so its size depends on the content of the image rather than on a quality setting.
Because the image is redrawn from its pixels, the original metadata is not copied to the new file. That means EXIF fields such as GPS location, date and camera information are removed. It also has side effects worth knowing: the orientation stored in the metadata is applied to the pixels so the image appears the right way up, and embedded color profiles may be converted to sRGB, which can slightly change the colors of photos shot in a wide-gamut space.
The exact output depends on the encoder of your browser, so the same settings can give slightly different sizes in Chrome, Firefox or Safari.
Privacy: the file stays on your device
Nothing is uploaded. Decoding, resizing and re-encoding all happen locally in your browser tab, and the compressed file is created in memory before you download it. You can use the tool for personal photos, scans of documents or unpublished visuals without sending them to a third-party server. Closing the tab discards everything.
Limits and practical tips
- Sometimes the result is larger than the original, typically when a file that was already well optimized is re-encoded at high quality, or when a photo is converted to PNG. The tool warns you in that case; keep the original, or try another format or a lower quality.
- Converting a transparent PNG to JPEG fills the transparent areas with white, since JPEG has no transparency. Choose WebP or PNG to keep it.
- Animated GIF or WebP files lose their animation: only the first frame is kept.
- Images are processed one at a time, with a maximum of 20 MB per file.
- Avoid compressing the same JPEG over and over: each lossy pass adds a little more degradation. Start from the best original you have.
- For photos, a quality between roughly 70 and 85 is a reasonable starting point. Lower values save more but can show blocky areas and halos around edges; always check with the comparison slider.
Frequently asked questions
Are my images uploaded to a server?
No. The whole process runs in your browser using its built-in image functions. The file never leaves your device.
Which format gives the smallest file?
For photos, WebP is usually smaller than JPEG at similar visual quality, and both are much smaller than PNG. For flat graphics or screenshots, results vary, so try a couple of formats and compare the sizes shown.
Why does the quality slider do nothing when I choose PNG?
PNG is a lossless format, so there is no quality trade-off to adjust. To make a PNG smaller with this tool, reduce its width or switch to WebP or JPEG.
Why is my compressed image bigger than the original?
The original may already have been compressed efficiently, or the chosen format may not suit the content, for example a photo saved as PNG. The tool flags this; lower the quality, change format, or simply keep the original.
Does compression remove the location data from my photos?
Yes. Re-encoding through the canvas does not copy EXIF metadata, so GPS coordinates, camera model and capture date are not present in the downloaded file.
Will my transparent background be kept?
With WebP or PNG output, yes. With JPEG output, transparent areas become white because the JPEG format cannot store transparency.
Can I compress several images at once?
Not at the moment. The tool handles one image at a time, up to 20 MB, which keeps the before/after comparison clear for each file.
Why do the colors look slightly different after compression?
If the original contained a color profile other than sRGB, the browser may convert it to sRGB when redrawing the image. Strong compression can also shift subtle gradients. Raising the quality usually reduces the difference.