Compress

Compress JPG Images

Shrink JPEG files to a target size such as 100 KB or 2 MB, or dial in the quality by hand. Compression happens on your own device, so nothing is uploaded and there is no queue to wait in.

Compression

How should the size be decided?
80
The sweet spot for photographs.
Your files never leave this device. Everything happens inside your browser, so there is no upload, no server copy and nothing to delete afterwards. You can test that claim: load this page, turn off your internet connection, and the tool still works.

How JPEG compression works

JPEG does not store your photograph pixel by pixel. It divides the image into blocks of 8 by 8 pixels, converts each block into a set of frequency patterns, and then throws away the patterns your eye is least likely to miss — mostly fine, high-frequency detail. The quality setting controls how aggressively that discarding happens.

This matters for two reasons. First, the loss is permanent: the discarded detail is not recoverable by converting back to PNG or by raising the quality later. Second, the damage compounds. Each time a JPEG is opened and saved again it is decoded and re-encoded, and the block boundaries can shift slightly, so a file saved five times looks noticeably worse than one saved once at the same quality. Always compress from the highest-quality original you have rather than from a copy that has already been through the process.

This tool encodes with MozJPEG, the same encoder used by Squoosh. At an identical quality setting it produces a smaller file than a browser's built-in JPEG encoder, because it spends more effort searching for an efficient encoding of the same visual result.

Choosing a quality level

Quality numbers are not a percentage of anything, and they are not comparable between formats. As a rough guide for photographs:

QualityWhat it looks likeGood for
95-100Indistinguishable from the original, but files barely shrinkArchiving, further editing
85-94No visible difference to almost anyonePrint, marketplace listings, portfolios
75-84The sweet spot — big savings, no obvious lossWebsites, blogs, social posts
60-74Slight softening; faint blocking in skiesThumbnails, images displayed small
Below 60Visible blocks and colour bandingOnly when a hard size limit forces it

Photographs tolerate compression well. Screenshots, logos, diagrams and anything containing text do not — JPEG puts faint halos around sharp edges, which is very visible on lettering. For those, use PNG or WebP instead.

Compressing to an exact file size

Real limits are stated in megabytes. YouTube rejects mobile thumbnail uploads over 2 MB. Contact forms cap attachments at 5 MB. A marketplace wants images under 1 MB. None of these translate into a quality number, which is why most compressors leave you dragging a slider and re-checking the file size by hand.

Switch this tool to By target size and type the limit. It repeatedly encodes the image at different quality settings, narrowing in on the highest quality that still fits underneath your number, and normally settles it in six to eight attempts. If the target genuinely cannot be met without destroying the image, it says so rather than handing you something unusable.

When a target is out of reach, the fix is almost always dimensions rather than quality. File size scales with the number of pixels, so halving the width and the height leaves roughly a quarter of the file. Resize the image first, then compress.

Photos from phones stay the right way up

Phone cameras rarely rotate the pixels they capture. Instead they store the image as the sensor saw it and add an orientation tag saying which way up it should be displayed. Tools that ignore that tag hand back a sideways photo — a common and baffling result when compressing images straight from a phone.

This tool reads the orientation and bakes the correct rotation into the output, so what you download is upright everywhere, including in software that ignores the tag.

How to compress JPG Images

  1. Drop one or more JPG files onto the box above, or click to browse.
  2. Choose Target size if you need to fit under a specific limit, or Quality if you would rather judge it by eye.
  3. Compare the before and after preview by dragging the divider.
  4. Download the compressed files individually, or all together as a ZIP.

Limits worth knowing

Every tool has boundaries. These are this one's, stated plainly so you do not waste time discovering them yourself.

  • JPEG is a lossy format. Every save discards some detail permanently, so always compress from your original rather than from an already-compressed copy.
  • Very small target sizes on large images will produce visible blocking. The tool will warn you when it cannot reach a target without heavy damage.
  • Compressing an image that is already heavily compressed may barely shrink it, or occasionally grow it slightly. The tool keeps the original if the result is larger.

Frequently asked questions

Are my photos uploaded anywhere?
No. The compression runs inside your browser using WebAssembly. Your files never travel across the network. You can prove it: load this page, disconnect from the internet, and compress an image — it still works.
How small can I make a JPG before it looks bad?
For a typical photograph, quality 75-85 is visually indistinguishable from the original for most people while cutting file size by 50-70%. Below quality 60 you will start seeing soft blocks in skies and smooth gradients. Images with text or sharp graphics show damage much earlier — those are usually better as PNG or WebP.
What does Target size actually do?
It repeatedly re-encodes the image at different quality settings, narrowing in on the highest quality that still fits under your byte limit. It usually finds the answer in six to eight attempts. Most free compressors only give you a quality slider, which means guessing repeatedly when you have a hard limit to meet.
Why is my compressed file bigger than the original?
Because the original was already compressed harder than the setting you chose. If you ask for quality 90 on a file that was saved at quality 60, re-encoding adds data back without adding detail. This tool detects that and keeps the smaller original instead.
Does compressing twice make an image worse?
Yes. JPEG compression is lossy and the damage accumulates, a process called generation loss. Each round of decode and re-encode also shifts the 8x8 block boundaries slightly, which compounds the artefacts. Always start from the highest quality original you have.
Will this rotate my iPhone photos sideways?
No. Photos from phones store their orientation as a separate EXIF tag rather than rotating the pixels. Many online tools ignore that tag and output a sideways image. This tool reads the orientation and bakes the correct rotation into the output.