JPG Compressor

Make a JPG smaller by re-encoding it at quality 82, in your browser.

or drop files here

How to compress JPG files

Follow these steps to make JPG files smaller online.

    1

    Choose your JPG file, or several at once.

    2

    Wait while the compressor makes a smaller JPG copy.

    3

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

What to know before compressing a JPG

  • The JPG is re-encoded at quality 82, and that step is lossy.
  • If the result isn't smaller, you get your original file back.
  • Your original is never changed; you download a new copy.
  • The image never leaves your browser, and the page sets no size limit of its own.

About JPG compression

What is a JPG file?

Work on JPEG began in 1986 with the Joint Photographic Experts Group, whose initials give the format its name. T.81, the ITU-T text from 1992, and ISO/IEC 10918-1, adopted in 1994, define its core standard. Cameras and scanners commonly produce it, all major browsers show it, and the US patents that covered it ran out on 27 October 2006. Both .jpg and .jpeg are the same format, and image/jpeg is its media type.

Baseline JPEG is lossy. The picture is grouped into 8x8 blocks; a discrete cosine transform is applied to every block, and Huffman coding packs the result as the finest detail is rounded off. The quality number says how coarse that rounding is. The scale commonly spans 0 to 100, yet one program's 80 need not match another's; GIMP starts at 85. A picture saved at ordinary settings is typically a tenth to a twentieth the size it would be uncompressed.

In a JPG each color channel is 8 bits wide, and neither an alpha channel nor layers exist. Progressive mode is optional: a rough picture shows first and gains detail while the rest of the file arrives. Compressing a JPG means decoding it and saving it again at a lower quality, which is a new lossy save.

Programs that compress JPG files

Windows, Mac and Linux

  • GIMP: its JPEG export dialog has a Quality setting that defaults to 85, Progressive and Optimize options, and a choice of which metadata to keep.
  • ImageMagick: reads JPG files from the command line.

Mac

  • Preview: File > Export saves a JPEG and lets you adjust its quality.
  • Photos: File > Export > Export Photos offers a JPEG Quality and a Size choice.

Web

  • Firefox: displays JPG files.
  • This page: MozJPEG at quality 82, run by your browser.

Web and Mobile

  • Chrome: displays JPG files.

Mobile

  • Safari: displays JPG files.

Original and compressed JPG compared

  • Format: both are JPEG files, image/jpeg. The download ends in .jpg.
  • Pixels: the width and height are the same. Nothing is cropped or scaled.
  • Encoder and quality: the copy is written by MozJPEG at quality 82. Quality numbers aren't a shared scale, so 82 here and 82 in another program can give different results.
  • Layout: the copy is a progressive JPEG with optimized Huffman tables.
  • Metadata: the copy carries no EXIF, ICC profile or XMP. Camera settings, the date taken and GPS location stay only in your original.
  • Orientation: the page neither applies nor saves the EXIF orientation tag, so a photo that relies on it to look upright may come out turned.
  • Size: if the copy isn't smaller than your file, the page returns your file instead.

Every JPEG save is lossy, including this one. Compress from the best copy you have, once, rather than squeezing the same file again and again.

Other ways to compress a JPG

  • Preview (Mac): with the image open, choose File > Export, set the Format pop-up to JPEG, change the quality, then press Save.
  • Photos (Mac): select the photos and choose File > Export > Export Photos. Pick JPEG from the Photo Kind menu, open the options with the arrow beside it to set JPEG Quality and Size, then click Export.
  • GIMP (Windows, Mac and Linux): open the image and use File > Export As (Shift+Ctrl+E); in the JPEG options, set Quality below its default of 85 and export.

Problems with JPG files

  • Still over an upload limit: this page changes only the quality. Shrink the photo's pixel dimensions in an editor, then compress the smaller copy.
  • The same file came back: the quality 82 encode wasn't smaller than your file, so there was nothing to save.
  • Text and sharp lines look smudged: JPEG is lossy. Keep screenshots, logos and diagrams as PNG and shrink them with the PNG compressor.
  • The location and camera details are gone: EXIF is not written to the copy. Keep your original when you need them.
  • Colors look different: no ICC profile goes into the smaller copy. Keep the original when color accuracy matters.
  • The photo comes out sideways: the orientation tag is dropped. Rotate the picture in an editor before you compress it.
  • Blocky patches show up after repeats: every save costs more detail. Start again from the original instead of recompressing a compressed copy.

Frequently Asked Questions

Everything you need to know about our converter

How do I compress JPG files?

How do I compress a JPG to a smaller file size?

How much smaller will my JPG get?

Will the compressed JPG look different?

Why did I get my original JPG back?

Does compressing remove EXIF and GPS data?

Is the picture resized?

Can I compress a JPG image on my phone?

Does it accept .jpeg files too?

Why is my photo turned sideways after compressing?