Image compressor
Reduce an image’s file size by adjusting its quality, dimensions, or output format. Add JPG, PNG, or WebP images and save the results as JPG or WebP.
Your selected images are processed in your browser. The originals stay unchanged, so you can compare the result before deciding which version to use.
Drag images here
orJPG, PNG or WebP. Up to 20 MiB per image.
Up to 10 images and 50 MiB in total.
Images and results
Choose images, then select Compress images.
How to compress an image
Choose your images, set the quality and maximum edge length, then select “Compress images”. Compare the file sizes and download each result.
Frequently asked questions
What quality setting should I use?
Start at 80. For a smaller file, lower the quality and check that important details are still clear in the downloaded image.
Can I keep a transparent background?
Choose WebP to keep transparency. JPG fills transparent areas with white.
Why is the compressed file larger?
The original may already be small. Changing the format or compressing it again does not always reduce its size. Try a lower quality setting or smaller dimensions.
To combine photos into a document, use Images to PDF.
Choose compression settings that suit your image
Back to toolCheck whether the limit is in megabytes or pixels
An upload form may reject a photo because the file is too large, even when the picture looks small on screen. Start with the receiving site’s requirements: the accepted format, the file-size limit, and any minimum or maximum dimensions.
File size is measured in KB or MB. Dimensions are the width and height in pixels, such as 3000 × 2000. The two are related, but they are not interchangeable: two images with identical dimensions can have very different file sizes.
If the site needs the full dimensions, keep them and try adjusting image quality first. If the photo is much larger than it needs to be, reducing its dimensions is another useful option. Check any minimum width or height before doing so.
Choose a format the receiving site accepts
Choose JPG when the receiving site asks for JPEG or JPG. They are names for the same image format. JPG does not support transparency, so this tool fills transparent areas with white.
WebP can keep a transparent background. It is useful when you need that transparency and the destination accepts WebP, but it is not a promise that every WebP result will be smaller than a JPG.
PNG is accepted as an input here, but it is not an output option. A PNG you add will be saved as JPG or WebP. If you must deliver a PNG, this tool will not produce the required format; changing the downloaded file’s extension would not convert it.
Compress a copy and inspect the result
Choose images or drag them into the file area. You can add up to 10 images in one batch. Under Output format, select JPG or WebP, then set Image quality and Longest edge.
Start with the default quality of 80 if you are unsure. Leave Longest edge at Keep original dimensions when you need the existing width and height. A lower quality setting allows more detail to be discarded; the number is not a percentage of detail retained or a target file size.
Select Compress images. Compare each result’s file size with the original and check the output dimensions. Use Download for the images you want to keep; each gets its own file with -compressed added to the name.
Open the downloaded copy at the size at which it will actually be viewed. A thumbnail can hide soft text, blocky edges, or lost detail. If you change the settings, compress again to generate new results. Cancel stops the remaining work, while completed results stay available to download.
Use the longest edge to resize a large photo
Longest edge sets a ceiling for the image’s longer side. The other side changes in proportion, so the image is not cropped or stretched. Images already below the selected ceiling are not enlarged.
For example, a 3000 × 2000 landscape photo becomes 1920 × 1280 when you choose 1920 pixels. The scale is 1920 ÷ 3000, and the same scale applies to the height. This tells you the resulting dimensions, not how many MB the file will occupy.
The options below show the dimensions for that same photo. Choose a size that still meets the destination’s requirements, then compare the actual file size after compression.
| Longest edge | Output dimensions |
|---|---|
| Keep original dimensions | 3000 × 2000 pixels |
| 1920 pixels | 1920 × 1280 pixels |
| 1280 pixels | 1280 × 853 pixels |
| 800 pixels | 800 × 533 pixels |
Keep small text and important details readable
A photo and a screenshot do not need the same treatment. A landscape photo may still work well at a smaller size, while a screenshot with small text can become difficult to read after resizing.
For text-heavy images, first try keeping the dimensions and adjusting quality modestly. If text becomes fuzzy, raise the quality and compare again. For a large photo, check faces, fine textures, and smooth areas such as skies before deciding whether the smaller file is usable.
Quality 100 does not make this a lossless tool. The image is still encoded into a new file, and changing format or dimensions may change the result. Keep the original for future editing and create new attempts from that original instead of repeatedly compressing a downloaded copy.
Check the limits if an image will not process
The tool accepts still images in JPG, PNG, and WebP. Animated PNG and animated WebP are rejected; GIF, HEIC, and SVG are not supported inputs. If a phone photo is in HEIC, convert it to a supported format before adding it.
The limits apply together. For example, an image can be under 20 MiB and still exceed the 24-megapixel limit. If a file exceeds the pixel limit, resize it in another image editor before trying to add it here.
If the browser cannot produce your chosen output format, try JPG. A file that cannot be decoded may be incomplete or damaged; check that the original opens normally before trying again.
| Setting or limit | Available range |
|---|---|
| Images per batch | Up to 10 |
| File size per image | Up to 20 MiB |
| Combined input size | Up to 50 MiB |
| Pixels per image | Up to 24 million |
| Image quality | 10–100; default 80 |
| Output format | JPG or WebP |
Questions about the downloaded image
Can I make an image exactly 200 KB?
There is no target-file-size control. Reduce quality or dimensions, compress, and check the result. If an upload has a strict limit, leave some room below it: the displayed sizes are rounded, and the receiving site may count size differently.
Why is the compressed file larger?
Re-encoding does not always save space. The original may already be efficiently compressed, or your output settings may produce a larger file. The tool flags results that are not smaller. Try a lower quality or smaller dimensions if appropriate, or keep the original if it already meets your needs.
Will the image keep its original metadata?
Do not rely on the output to retain camera information, location data, or the original color profile. This tool creates a new image rather than copying the original file unchanged. Keep the source if that information matters, and do not treat compression as a verified metadata-removal process.
Further reading
- MDN: HTMLCanvasElement.toBlob()Explains browser image output formats and the quality parameter used when encoding a new image.
- Google: WebP overviewDescribes the WebP format, including transparency. Format capabilities do not mean every mode is available in this tool.
Updated