Compress Image

Make photo files smaller without a visible change in how they look. You can also convert them to JPG, PNG or WebP.

Compress by
Output format
KB

For example, 200 KB for an online form, 1000 KB for an email attachment.

Your photos are processed on this device and never uploaded to a server.

How to use it

  1. Choose one or more photos. Each one is compressed right away with the settings below.
  2. Choose Target file size and enter the limit in KB, or choose Set quality to pick the quality yourself.
  3. If needed, change the output format or cap the longest side of the photo.
  4. Download each photo, or all of them at once in a ZIP file.

How a target file size is reached

With Target file size, the photo is first saved again at 85% quality. If that is already under the target, you're done. If not, the tool looks for the highest quality between 35% and 85% that still fits, using six tries that each halve the remaining range. If even 35% is too large, the dimensions are reduced by the factor √(target ÷ size) × 0.95, kept between 0.4 and 0.9, and the quality search runs again. It stops after at most 10 rounds and never shrinks a side below 32 pixels.

Example: a 4000 × 3000 phone photo with a 200 KB target. Suppose that at 35% quality the file is still 800 KB. The factor is √(200 ÷ 800) × 0.95 = 0.475, so the photo becomes 1900 × 1425 pixels and the quality is searched again at the new size. That is why a large photo may come out with smaller dimensions, while a photo that is already small usually only loses some quality.

Here 1 KB = 1,024 bytes, so a 200 KB target means at most 204,800 bytes. Some forms count 1 KB as 1,000 bytes. If the limit is strict, enter 195 so the result stays under 200,000 bytes.

Choosing a format

FormatCompressionTransparencyBest for
JPGLossyNoPhotos, forms
WebPLossyYesWebsites
PNGLosslessYesScreenshots

JPG has no transparency, so transparent areas are filled with white, but almost every form accepts it. According to Google, lossy WebP is 25-34% smaller than JPG at equal quality, though not every site accepts it. With PNG the quality setting has no effect and only the dimensions can shrink, which makes it wasteful for photos.

Original keeps JPG, PNG and WebP in their format. Anything else, such as HEIC, GIF or BMP, is saved as JPG. If your browser can't create WebP files, the result is saved as JPG with a note in the list.

Things to know

  • The original may be kept. If the format stays the same, the dimensions don't change and the file is already under the target, or if compressing would make it larger, the tool keeps your original file and marks it as already optimized.
  • Metadata. Photos that are saved again lose their EXIF data, such as GPS location, date and camera model, and the rotation is applied to the pixels. A file marked as already optimized keeps its original metadata.
  • Don't compress twice. Every time a JPG is saved again it loses more detail. Start from the original photo, not from an earlier compressed copy.
  • Dimensions matter most. Limiting the longest side to 1280 pixels leaves a 4000 × 3000 photo with about a tenth of its pixels, which shrinks the file far more than lowering the quality does.

Questions

Are my photos uploaded?
No. Your browser processes the photos on your device, and they're never sent to a server.
Why isn't the result any smaller?
A photo that is already heavily compressed can't get much smaller without losing quality. In that case the tool keeps the original file and marks it as already optimized. Try a lower quality, switch to WebP, or limit the longest side.
Why does my computer show a different size?
This tool counts 1 KB as 1,024 bytes, like Windows. macOS since version 10.6 and iOS since version 11 count 1 KB as 1,000 bytes, so a 200 KB file here shows as about 205 KB on a Mac or iPhone. If a form rejects your file, lower the target a little.
Which format gives the smallest file?
According to Google, lossy WebP is 25-34% smaller than JPG at equal quality. Many application forms only accept JPG, though, so choose JPG when in doubt. PNG suits images with text or a transparent background, not photos.
What about HEIC photos from an iPhone?
Safari on iPhone and Mac can open HEIC files and convert them to JPG here. Most other browsers can't read HEIC yet. On an iPhone you can also choose Most Compatible in Settings > Camera > Formats so new photos are saved as JPG.
Is a transparent background kept?
Yes for PNG and WebP. JPG doesn't support transparency, so transparent areas are filled with white.