Skip to content

Compress a JPG photo

Image

or drop it here

Mode

Lower means a smaller file with more visible blur. 70 to 80% suits most photos.

More options

Your new image will appear here

Choose an image above, or drop it on the box.

Compared with the original
—
Pixel size
—

A JPEG saved by a camera at 95% quality often halves in size at 75% with no change you can see at normal viewing size. This page opens with that setting for JPG photos.

Worked example

Mode
By quality
Quality
75
Largest file size
200
Unit
KB
Save as
JPG

Result Compressed size: 4.5 KB
Compared with the original: 19% smaller
Pixel size: 400 × 300 px

  1. Opened 400 × 300 px, 5.5 KB
  2. Saved at quality 75%
  3. Saved as JPG, 4.5 KB

How to use it

  1. Choose the image

    Press Choose image or drop a JPG, PNG, WebP or GIF file of up to 25 MB on the box.

  2. Pick a mode

    By quality uses the slider. To a file size takes a number with KB or MB beside it, such as 200 KB for a form limit.

  3. Check and download

    Read the new size and the percentage saved, look at the preview, then download. Under More options you can force JPG, WebP or PNG.

How it is calculated

chosen quality = the highest q in 5–95% where encoded size(q) ≤ limit; limit in bytes = KB × 1,024 or MB × 1,048,576

q
the JPEG or WebP quality passed to the browser encoder
limit
the largest file size you typed, in bytes

The browser decodes the picture, turns it upright from its EXIF orientation tag and redraws it on a canvas. In To a file size mode it first saves at 5% quality. If that already fits, a halving search over six more saves narrows down the best quality under the limit. If even 5% is too large, the width and height are cut by about the square root of the size ratio and the search repeats. PNG output is lossless, so only the scaling step applies to it.

Sources

When not to use it

  • For print files that need a set DPI, CMYK colour or untouched camera data.
  • To keep an animated GIF moving; only the first frame is saved.
  • For a PDF; this compressor reads picture files only.

Common mistakes

  • Forcing PNG for a photo, which usually makes the file bigger than the JPG it came from.
  • Compressing an already compressed JPG again and again; each save at low quality adds more blocky artefacts.
  • Treating 1 MB as 1,000 KB; this tool counts 1 MB as 1,024 KB, the way most web forms do.