JPG, PNG and WebP Image Compressor
Make an image file smaller without leaving your browser. Choose JPG or WebP output, set a quality, and compare the before and after previews with the real file sizes and the percentage actually saved. Dimensions stay the same unless you choose to scale them down, and the image is not uploaded to a server.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Compress an image
Drag and drop an image here
or
JPG, PNG or WebP, up to 25 MB. Your image stays in this browser.
How to use it
Choose an image
Select a JPG, PNG or WebP file, or drop it onto the box. The tool shows its format, dimensions and file size.
Pick JPG or WebP
JPG works almost everywhere. WebP is often smaller for the same visual quality and keeps transparency, but some older programs cannot open it.
Set the quality
Lower quality discards more detail and usually gives a smaller file. Dimensions stay as they are by default; you can optionally scale the image down to 75%, 50% or 25% as well.
Compress and compare
Select Compress, then look at the before and after previews. The tool shows the original size, the output size and the percentage actually saved, and tells you plainly when the result is larger.
Download or start over
Download the compressed file, or change a setting and compress again. Every run starts from your original image, so repeated attempts never stack quality loss. Reset clears everything.
Example: a large photo that is too big to attach
Suppose a photo from your phone is too large for an email attachment limit. Open it, keep JPG output, and try a quality around the middle of the slider. Compare the after preview with the original at full size, and check the size shown next to the download button. If it is still too big, lower the quality a step or choose 75% dimensions and compress again. The tool cannot aim for an exact file size, so a few tries is normal.
Supported formats
You can open JPG, PNG and WebP files. The compressed file is saved as JPG or WebP, the two formats here that have a quality setting for trading detail against size. PNG is accepted as input only: it is lossless, so it has no quality setting to compress with.
| Format | Extensions | Transparency | Compression | Good for |
|---|---|---|---|---|
| JPG | .jpg, .jpeg | No. Transparent areas are filled with a background color you choose. | Lossy, with a quality setting. Available as input and output. | Photographs and places that require JPG. |
| PNG | .png | Yes. | Lossless. Accepted as input only; there is no PNG output here. | Screenshots and graphics. Compress them to WebP if a smaller file is acceptable. |
| WebP | .webp | Yes. | Lossy here, with a quality setting. Available as input and output. | Web images where small files matter and the destination supports WebP. |
Limits and limitations
- Files up to 25 MB, up to 40 megapixels, and no more than 16,000 pixels on either side are accepted. Large images may still fail on phones or devices with little free memory.
- Only static JPG, PNG and WebP images are accepted. The format is detected from the file's contents, not its name. Animated PNG and animated WebP files are rejected, as are GIF, HEIC, AVIF, SVG, BMP, TIFF and PDF files.
- Compression here is lossy. Detail that is discarded cannot be restored, so keep your original file.
- The result is not guaranteed to be smaller. An image that is already well compressed, or a PNG with few colors, can come out larger, and the tool reports that instead of hiding it.
- You cannot set a target file size. The size depends on the image and the browser's encoder, so you adjust the quality and check the result.
- JPG cannot store transparency. If an image has a transparency channel and you choose JPG, transparent areas are filled with the background color you pick. WebP keeps transparency.
- Metadata such as camera details, GPS location and embedded color profiles is not kept, so images that depend on a wide-gamut profile can look slightly different.
- One image is processed at a time. Which formats can be created depends on your browser; if it cannot export a format, the tool says so.
Frequently asked questions
Is my image uploaded to a server?
No. Your browser reads, decodes and re-encodes the file using the Canvas API, and the image data is not sent anywhere. The page itself still loads from a web server like any website. This site can load advertising or analytics scripts, but only after you accept them in the cookie notice. They are separate from the tools, which never pass the files or text you work with to them.
How much smaller will my file get?
It depends on the image, the format and the quality you choose, so the tool does not promise a figure. It shows the real result after each run: the original size, the output size and the percentage saved. Photos with a lot of fine detail usually shrink less than smooth images at the same quality.
Is this lossless compression?
No. JPG and WebP output both discard some detail to save space. Lower quality discards more. If you need every pixel preserved, keep the original file or use a lossless format.
Why did my file get bigger?
A file that is already efficiently compressed can grow when it is re-encoded, particularly at a high quality setting or in a different format. Lower the quality, try the other format, or keep the original. The tool states when the output is larger rather than presenting it as a saving.
What happens to transparency?
WebP output keeps transparent areas. JPG cannot store transparency, so if the image has a transparency channel the tool warns you and fills transparent areas with the background color you select.
Why is there no PNG output?
PNG is lossless and has no quality setting in browsers, so it cannot be tuned for size the way JPG and WebP can. To change an image's format without choosing a quality, use the Image Converter instead.
Does the compressed file keep my location data?
No. The new file is created from the image's pixels, so EXIF metadata such as GPS coordinates and camera details is not included. Photos stored sideways with an EXIF rotation tag are turned upright first.
Can I compress the same image again with different settings?
Yes. Change any setting and select Compress again. Each run starts from the original file you chose, not from the previous result, so trying several qualities does not compound quality loss.