JPEG Compressor

Shrink a JPEG image by saving it again at quality 82, in your browser.

or drop files here

How to compress JPEG files

Follow these steps to make JPEG files smaller online.

    1

    Choose your JPEG file, or several at once.

    2

    Wait while the compressor makes a smaller JPEG copy.

    3

    Download the compressed file. If it can't be made smaller, you get the original back.

What to know before compressing a JPEG

  • A .jpeg file is the same format as .jpg, and it gets the same treatment.
  • Each image is re-encoded at quality 82, which is a lossy step.
  • A result that isn't smaller is swapped for your original file.
  • The work stays in your browser, so the image isn't uploaded.

About JPEG compression

What is a JPEG file?

Its name is short for the Joint Photographic Experts Group, which began its work in 1986. JPEG is lossy and made for photos. ITU-T standardized it as T.81 in 1992, and ISO as 10918-1 in 1994. Cameras and scanners write it, and every major browser can show it. The idea is to keep what the eye notices and drop what it doesn't. First the picture is split into small 8x8 pixel squares; a discrete cosine transform turns each square into frequencies, and Huffman coding packs the remainder.

The quality number controls how much of the fine detail is rounded off. A high quality keeps almost everything and makes a big file; a lower one rounds harder and the file shrinks. Quality is usually a 0 to 100 scale, though two programs given the same number can write different files. GIMP's default is 85.

Some arithmetic shows why the setting matters. A 12-megapixel photo is 12 million pixels with three color values each, about 36 MB before compression. Typical settings, a tenth to a twentieth of that, land between 1.8 and 3.6 MB.

The endings .jpg and .jpeg stand for one format, with image/jpeg as its media type, and US patent protection for it ended on 27 October 2006.

Compressing a JPEG that already exists means decoding it to pixels and encoding those pixels again with harder rounding. Progressive order is another way to save a JPEG: a blurry first pass appears, then detail fills in as the rest downloads.

Programs that compress JPEG files

Windows, Mac and Linux

  • GIMP: the JPEG export dialog offers Quality, Progressive and Optimize settings.
  • ImageMagick: reads JPG files in a terminal window.

Mac

  • Preview: re-exports a JPEG with an adjustable quality.
  • Photos: exports a batch of photos as JPEG, with JPEG Quality and Size choices.

Web

  • Firefox: shows JPEG files.
  • This page: MozJPEG at a fixed quality of 82, with several files at once.

Web and Mobile

  • Chrome: shows JPEG files.

Mobile

  • Safari: shows JPEG files.

Original and compressed JPEG compared

  • Quality: the copy is saved at quality 82, with no slider. Another program's 82 may not match it.
  • Progressive order: the copy is a progressive JPEG, so a viewer can paint a rough picture first.
  • Metadata: EXIF, XMP and the ICC color profile are left out. The decoded pixels are all that is encoded.
  • Orientation: the EXIF orientation tag is not applied and not kept.
  • Pixel size: the width and height don't change.
  • What stays the same: the result is still image/jpeg, with 8 bits per color channel and no transparency or layers.
  • When the copy isn't smaller: you get your original file back.

Other ways to compress a JPEG

  • Preview (Mac): go to File > Export, switch the Format pop-up menu to JPEG, move the quality control, then click Save.
  • Photos (Mac): open File > Export > Export Photos, choose JPEG in the Photo Kind menu, reveal the options with the arrow beside it and reduce JPEG Quality or Size, then click Export.
  • GIMP (Linux, Mac and Windows): pick File > Export As (Shift+Ctrl+E), choose JPEG, and in its dialog reduce Quality from the 85 it starts at.

Problems with JPEG files

  • A form rejects .jpeg but takes .jpg: the format is the same. Rename the ending, or convert with the JPEG to JPG converter.
  • The file is still too large after compressing: this page changes only the quality. Resize the picture in an editor, then compress again.
  • A logo lost its transparent background: JPEG has no alpha channel. Keep such images as PNG or WebP, and shrink a WebP with the WebP compressor.
  • The compressor returned the file unchanged: the new encode wasn't smaller than your file.
  • The photo is rotated wrongly: the copy no longer carries its orientation tag. Apply the rotation in an editor first.
  • The camera details are missing: EXIF isn't in the copy. Keep your original for the date and location.
  • Colors look different: the ICC profile stays behind in your original. Keep it when color accuracy matters.
  • Many files at once: pick them together, and each is compressed in turn and downloads as its own JPEG, with no ZIP to unpack.
  • Squares appear after many rounds: detail is lost at each save. Return to the original instead of squeezing an already compressed file.

Frequently Asked Questions

Everything you need to know about our converter

How do I compress a JPEG?

How do I reduce a JPEG's file size for email or a form?

What quality does the JPEG compressor use?

Is a compressed JPEG lower in quality?

Why is my JPEG the same size after compressing?

Are .jpeg and .jpg files compressed the same way?

What happens to the camera details and color profile?

Can I compress JPEG images in bulk?

Should I compress a JPEG before or after editing it?

Can compressing make my JPEG bigger?

Why does a photo look rotated after compressing?