Image Compressor

Make photos smaller for email, uploads and websites. Your files stay on your device; see the privacy policy for how page visits are measured.

Drop images here or

Adding images and choosing format, quality and Max side

  1. Drop one or several images onto the box, or click Choose images. Anything your browser identifies as an image is accepted; other files are ignored.
  2. Pick the output Format (JPG or WebP), the Quality slider (30 to 95, starting at 75) and the Max side (Original, 3840, 2560, 1920, 1280 or 800 pixels, starting at 1920).
  3. Each file gets a row showing its name and original size. When processing finishes, the row shows the saving as a percentage and a download button with the new size.
  4. Changing a setting re-runs the compression on every image in the list, always starting from your original files, so you can experiment without the quality degrading further each time.

Each result downloads under its original name with a new extension, for example holiday.png becomes holiday.jpg. The original file on your device is never changed.

In short

Two settings shrink a file: Max side (fewer pixels) and quality (stronger compression). To hit a size limit, lower Max side first so you can keep a higher quality, and do not re-save an existing JPG at a higher quality than it already had, because that makes the file bigger.

Frequently asked questions

Is compression lossless?

No. JPG and WebP are lossy: smaller files mean slightly less detail. At quality 75–85 the difference is rarely visible.

Why did my file get bigger?

An already well-compressed image can grow when re-saved at high quality. Lower the quality or the maximum size.

Are images uploaded?

No. Compression runs in your browser.

What quality number should I try first?

Start at 75 with a Max side of 1920. Compare the file against the original at full size. If you cannot see a difference and the file is still too big, lower the Max side before lowering quality further.

Our test: to get a phone photo under 500 KB, lower the quality or the Max side?

Our starting file was a generated 4000 × 3000 pixel picture that behaves like a phone photo (a sky gradient, coloured ground with fine texture, hard-edged shapes and light sensor-style noise), saved as a JPG at quality 95, which came to 3,794 KB. We loaded it into our compressor in Chromium 153.0.8010.12 and ran every combination of Max side (Original, 2560, 1920 and 1280 px) and Quality (50, 75 and 90), for JPG and for WebP, reading the size of each downloadable result. Sizes are in KB of 1,024 bytes.

Quality 50Quality 75Quality 90Original576 KB1,022 KB2,694 KB2560 px293 KB452 KB845 KB1920 px177 KB258 KB455 KB1280 px90 KB135 KB242 KB
JPG size by Max side and quality — chart drawn from the table below.
Max side (output size)Quality 50Quality 75Quality 90
Original (4000 × 3000)576 KB1,022 KB2,694 KB
2560 px (2560 × 1920)293 KB452 KB845 KB
1920 px (1920 × 1440)177 KB258 KB455 KB
1280 px (1280 × 960)90 KB135 KB242 KB

What it means: at full size, even quality 50 still left a 576 KB JPG, while the 1920 px limit at quality 90 came in at 455 KB. For a size limit, lowering Max side first lets you keep a higher quality. WebP was smaller in every cell, for example 146 KB against 258 KB at 1920 px and quality 75, but took longer to encode in our runs: about 1 to 2.7 seconds per run at 1920 px and above, against under half a second for JPG. Results will differ with the content of your own photos.

Our test: which files came out bigger, and at which settings?

We used twelve files. Three were photos from the Kodak Lossless True Color Image Suite (images 1, 3 and 23, each 768 × 512 pixels) in their original PNG form. The same three photos were also saved with Pillow 13.0.0 as JPG at quality 85 and at quality 60, standing in for a photo that has already been compressed once. The last three were PNG screenshots, 1280 × 800 pixels, of pages on this site: the tools home page, the JSON formatter and a guide article. We added all twelve to the compressor in Chromium 157.0.8103.78, left Max side on Original, and for each combination of format and quality read the percentage shown on each row. The three numbers in each cell are for the three files in that group, in the order given above.

FilesJPG 60JPG 75JPG 90WebP 75WebP 90
Photos, original PNG−91, −93, −94%−88, −91, −93%−79, −84, −86%−89, −95, −96%−81, −89, −90%
Photos, JPG quality 85−46, −49, −50%−14, −14, −14%+12, +13, +13%−36, −56, −59%+10, −11, −13%
Photos, JPG quality 60−2, −3, −3%+9, +9, +10%+35, +35, +37%+2, −25, −25%+68, +44, +44%
Screenshots, PNG−55, −56, −52%−44, −47, −41%−21, −27, −19%−69, −71, −66%−56, −60, −53%

What it means: every file that grew was a photo that was already a JPG, re-saved at a quality setting higher than the one it was saved with. A quality 60 JPG grew at JPG 75 and JPG 90, and at JPG 60 it shrank by only 2 to 3%, which costs a second round of loss for almost no saving. Our screenshots shrank at every setting we tried, but they were pages with large flat areas, and a screenshot full of small text can still look smudged as JPG. If a row turns red, the original is usually the better file to keep.

All 72 readings are in one plain CSV file with a header row: twelve files at six settings, with columns input_file, input_bytes, row_label, format, quality, output_bytes, size_on_button, change_shown and change_colour. It also includes WebP at quality 60, which we left out of the table.

More details

How to reduce image size

  1. Add your images.
  2. Pick a format, a quality around 70–80 and a maximum width or height.
  3. Download the smaller files. Changing a setting recompresses your images.

Which settings should I use?

  • Email and chat: JPG, quality 70, 1280 px.
  • Websites: WebP, quality 75–80, 1920 px.
  • Print or archives: keep the original; compress only copies.

Resizing and lossy encoding: what shrinks the file

The browser draws the image onto a hidden canvas and then saves that canvas in the chosen format. Two things reduce the file size:

  • Resizing. If the longer side of the image is larger than the Max side, both sides are scaled down by the same factor, so the proportions are kept. A 4000 × 3000 photo with the 1920 limit becomes 1920 × 1440, which is only about 23% of the original pixel count. Images that are already smaller are not enlarged.
  • Lossy encoding. JPG and WebP store an approximation of the picture. A lower quality value throws away more fine detail and gives a smaller file.

Resizing is usually the bigger lever. A modern phone photo is often far larger than any screen needs, and cutting the pixel count by three-quarters can shrink the file considerably, often with little visible change on a normal display. Lowering quality from 75 to 50 saves further, but artifacts such as blockiness around edges appear sooner.

Settings for email, web pages, thumbnails and screenshots

  • Photo for email or a form upload with a size limit: JPG, quality 70 to 75, Max side 1280 or 1920. If the upload still fails, drop to 1280 first, then lower quality.
  • Images on a web page: WebP is often smaller than JPG at a similar visual quality, and current versions of the major browsers display it. Use it if you control where the images appear; use JPG if the file will be sent to other people or into software that may not read WebP.
  • Thumbnails and previews: 800 pixels, quality 60 to 70.
  • Screenshots with text: keep quality at 85 or above and check the result at full size, since lossy compression makes small text look smudged near the letters.

Transparency, metadata, animation and PNG output

  • Transparency becomes white in JPG. JPG has no transparent areas, so the tool paints a white background first. Choose WebP if you need to keep see-through areas from a PNG logo.
  • Extra data is removed. Because the image is redrawn, details stored alongside the picture, such as camera model or GPS location in a photo, are not copied into the new file. That is often welcome before sharing, but do not use this tool to make archival copies.
  • Animated images lose their animation. Only a single still frame is drawn onto the canvas.
  • PNG is an input only. There is no PNG output option, so flat graphics with sharp edges and few colors may look worse after conversion or even grow in size.

When the new file is larger than the original

The percentage beside the download button shows how much smaller the new file is. If the result is larger, it is shown as an increase in red. This happens when the original was already compressed harder than your current settings, for example a web-optimized JPG re-saved at quality 90. Lower the quality, reduce the Max side, or simply keep the original. Re-saving a JPG as a JPG always adds a little extra loss, so avoid repeating it on the same picture.

Memory, downloads and saved settings

  • Very large images or many files at once need memory on your device. If a phone struggles, process a few images at a time.
  • Files are handled one by one in your own browser, and the tool does not upload them.
  • The slider range stops at 95 rather than 100, so the highest-quality setting is not offered.
  • There is no batch download as an archive; use each row's download button.
  • Settings are not remembered between visits.

More questions

Why is the compressed image the wrong size for my requirement?

This tool limits the longer side only; it does not crop or stretch to an exact width and height. If a form needs exact dimensions or an exact file size in kilobytes, adjust the settings until you are close, and use an editor for final cropping.

Can I compress the same image repeatedly to make it smaller?

Each pass costs some quality and the savings shrink quickly. It is better to start from the original file and choose the settings you want in one go.

Related guides

More in Photos & files