JPG Compressor
A JPG compressor reduces a JPG or JPEG photo's file size by re-encoding it with the format's lossy method, discarding the high-frequency detail the eye is least sensitive to. Because the loss is cumulative, the craft is to compress once from the original at a sensible quality, around 80 per cent, rather than re-saving repeatedly or pushing so low that blocking and banding appear. JPG is built for photographs; sharp graphics, text and anything needing transparency belong in a lossless format instead.
Drop your images here or click to upload
Compress many at once · JPEG, PNG, WebP, GIF, BMP · Max ~20 MB each
What Is a JPG Compressor?
A JPG compressor is a tool that reduces the file size of a JPG or JPEG photo while keeping it looking as close to the original as the format allows. JPG is the world's most common photo format, used by virtually every camera and phone, and its files are often far larger than they need to be. A JPG compressor re-encodes the photo more efficiently, typically shrinking it by 50 to 80 per cent with no difference most people can see, which is why it is the go-to fix for slow websites, oversized email attachments and strict upload limits.
JPG and JPEG are the same thing: JPEG stands for the Joint Photographic Experts Group that created the standard, and ".jpg" is simply the shortened three-letter extension that older systems required. Crucially, JPG is a lossy format. As explained in references on the JPEG standard, it achieves its small sizes using a method called the Discrete Cosine Transform, which converts the image into frequency components and then discards the high-frequency detail the human eye is least likely to notice. That trade is what makes JPG so efficient for photographs, and also why it behaves differently from lossless formats like PNG.
This JPG compressor handles the format's specifics in your browser, so your photos are never uploaded to a server. It is used by photographers preparing galleries that load quickly, online sellers fitting product shots under marketplace caps, job applicants squeezing a portrait under a form's size limit, and web developers cutting page weight. Because JPG is built for photographs, this tool is at its best with real-world images full of colour and gradient, where it delivers the largest savings for the least visible cost.
Two technical features explain why JPG compresses photos so well. The first is chroma subsampling: the human eye is far more sensitive to changes in brightness than to changes in colour, so JPG stores the brightness information at full resolution while recording colour at a lower resolution. This throws away data we cannot perceive and is a large part of the size saving, with no loss most people will ever notice. The second is the way JPG can be encoded either as a baseline file, which loads top to bottom, or as a progressive file, which loads as a fuzzy version of the whole image that sharpens in passes. Progressive JPGs feel faster on slow connections and are often slightly smaller, which is why they are popular for web photography. Understanding these mechanisms is the difference between guessing at compression and knowing why a setting works.
How to Use the JPG Compressor
- Upload your JPG. Drag a .jpg or .jpeg file onto the tool or click to browse. The image loads entirely within your browser, with nothing sent anywhere.
- Keep the format as JPEG. The tool is set to output JPG by default, which is what you want for a JPG compressor. You can optionally switch to WebP if you are preparing images for the web and want even smaller files.
- Set the quality. Move the quality slider and watch the file size update live. For JPG, a quality of around 80 per cent is the recognised sweet spot, giving a large reduction with no visible loss. Below about 60 per cent, JPG artefacts start to become noticeable.
- Compare original and compressed. Check the before-and-after sizes and the on-screen preview side by side. JPG artefacts show first around sharp edges and in smooth gradients such as skies, so look there if you push the quality low.
- Download the compressed JPG. Save the smaller file. Your original on your device is untouched, so you can always start again from it if you need a different size. The downloaded file is a clean, standard JPG that opens everywhere, from phones and browsers to office software and printers.
Because the slider recompresses live, you can find the exact point where the file is small enough and the photo still looks right, rather than guessing and re-doing it. A useful habit is to start at 80 per cent and only lower the quality if a strict size limit demands it, nudging back up the moment you see edges soften or skies start to band.
Why Use This Tool
The first reason is that JPG is almost always the format slowing your website down. Photographs are the heaviest things on most pages, and an uncompressed JPG straight from a camera can be several megabytes. Compressing those photos, ideally to around 80 per cent quality, routinely halves page weight or better, which directly improves loading time and the Core Web Vitals that Google's PageSpeed Insights measures. For photo-heavy sites it is the single highest-return optimisation available.
The second reason is JPG's hidden baggage. Every JPG from a phone or camera carries EXIF metadata: the camera model, the exposure settings, the date, and often the GPS coordinates of where the photo was taken. This data adds to the file size and, more importantly, can leak private information when you share a photo online. Compressing a JPG is a natural moment to strip that metadata, making the file both smaller and safer to publish. This privacy angle is something generic advice often overlooks but matters every time you post a personal photo.
The third reason is meeting limits without re-shooting. Job portals, passport and visa forms, student submission systems and marketplaces all cap file sizes, and a modern JPG routinely exceeds them. Rather than reducing your camera's resolution or emailing a poor screenshot, a quick compress brings the JPG under the cap while keeping it sharp. If you need an exact figure such as under 200 KB, the dedicated target-size tools handle that automatically, and if your image is not actually a photograph, a lossless format may serve you better than JPG, as covered below. Everything here runs in your browser, with no account, no watermark and no upload.
Real-World Use Cases
A photographer publishing a fast-loading gallery
A wedding photographer is uploading a 60-image online gallery for clients, and the full-resolution JPGs are around 8 MB each, making the page crawl on mobile. She compresses each to roughly 80 per cent quality, dropping them to under 1 MB while the detail clients care about, faces and dresses, stays crisp. The gallery that once took half a minute to load now appears almost instantly, and her clients stop complaining that the page is broken.
An online seller meeting a marketplace cap
A vintage-clothing seller lists items on a marketplace that rejects JPGs over 1 MB, but his lightbox photos are 4 to 5 MB each. Instead of re-shooting at lower resolution and losing detail, he compresses each JPG to around 800 KB, comfortably under the cap while keeping the fabric texture buyers want to inspect. His listings go live the same afternoon rather than being blocked one photo at a time.
A job applicant fixing a portrait upload
An applicant must upload a passport-style JPG under 200 KB, but the photo from his phone is 2.4 MB and the form keeps rejecting it. He compresses the JPG, lowering the quality until the file reads just under the limit while his face stays clear, and the upload succeeds on the first attempt. A thirty-second compress replaces an afternoon of frustration with a rejected form.
A blogger protecting location privacy
A travel blogger realises her holiday photos still contain the GPS coordinates of her home and hotels in their EXIF data. As she compresses each JPG for her post, the metadata is stripped along the way, so the published images are both smaller and free of location tags. She gets faster pages and removes a privacy risk she had not known was there, in a single step.
A developer migrating a legacy photo library
A developer is moving a company's old intranet, which holds thousands of full-resolution JPG product photos totalling tens of gigabytes and slowing every backup. He compresses the library at around 78 per cent quality as part of the migration, cutting the total storage footprint by roughly two thirds while the photos remain perfectly usable on screen. Backups that used to run overnight now finish in a fraction of the time, and the cloud storage bill falls noticeably the following month, all without anyone noticing a difference in the images themselves.
Common Mistakes and Troubleshooting
Re-saving the same JPG over and over
Problem: JPG loss is generational and cumulative. Every time you open a JPG, edit it and save again as JPG, the lossy compression runs afresh and discards more data, so colours muddy and artefacts build up. People do this unknowingly by repeatedly saving downloaded or messaged images. Fix: Always compress from the highest-quality original you have, and compress only once. Keep an untouched master and edit from that, exporting to JPG as the final step rather than re-saving the same JPG repeatedly.
Pushing the quality too low
Problem: Dragging the quality slider far down introduces the classic JPG faults: blocky squares across the image, fuzzy halos around sharp edges, and visible banding in smooth gradients like skies. Past a point each extra drop in quality ruins the look for almost no size saving. Fix: Stay around 80 per cent for general use and avoid going below 60 unless a strict size limit forces it. Watch edges and gradients in the preview, since that is where JPG breaks down first and where any loss of quality will be most obvious to a viewer.
Using JPG for logos, screenshots or text
Problem: JPG is designed for photographs, and it handles the sharp edges of logos, line art, screenshots and text badly, surrounding them with smeary artefacts. People often save such graphics as JPG out of habit and wonder why they look fuzzy. Fix: Use a lossless format like PNG for anything with hard edges, flat colour or text, and reserve JPG for photographs with natural colour and gradient, where it excels.
Trying to store transparency in a JPG
Problem: JPG cannot store transparency at all. Saving a transparent image as JPG silently fills the see-through areas with solid white, which only becomes obvious once the image sits on a coloured background and an ugly white box appears. Fix: If your image needs a transparent background, keep it as PNG or WebP. Only use JPG when the photo will always sit on a solid background and transparency is genuinely not needed.
Forgetting to resize before compressing
Problem: Compressing a 6000-pixel-wide JPG that will only ever display at 1200 pixels wastes huge file size no matter how good the compression. Fix: Reduce the photo's dimensions to the largest size it will actually be shown before or alongside compressing. For JPG photographs, resizing to the real display size is often the single biggest saving, and compression then trims what remains.
S. Siddiqui
Founder & Editor-in-Chief, YourToolsBase
How a client's holiday photos revealed their home address hidden in a JPG
A client once asked me to put a gallery of their travel photos on a personal site. Out of habit I checked one of the JPGs in an EXIF viewer before uploading, and it listed the exact GPS coordinates of where each shot was taken, including their home. They had no idea. Every JPG straight from their phone was quietly carrying a map to their front door.
I compressed the whole set at around 80 per cent quality before publishing. The files dropped by well over half, the photos looked identical on screen, and because the compressor re-wrote each file from the pixels alone, the GPS tags and other EXIF data were stripped out in the same pass. One step solved two problems at once: a faster gallery and a real privacy fix.
That is why, when I built this JPG compressor, I treated the metadata stripping and the quality sweet spot as the headline features rather than footnotes. Most people think compressing a JPG is only about size. For photographs you are about to share publicly, it is just as much about what invisible information you are quietly handing over with them.
Frequently Asked Questions
How do I compress a JPG without losing quality?
What is the difference between JPG and JPEG?
Is JPG compression lossy or lossless?
What quality should I use to compress a JPG?
Does compressing a JPG remove EXIF data?
How much can a JPG be compressed?
Why does my JPG look blocky or pixelated after compressing?
Should I convert my JPG to WebP instead?
Is this JPG compressor free and private?
Rate This Tool
Was this tool helpful?
Be the first to rate this tool
About the Author
S. Siddiqui is the founder and editor-in-chief of YourToolsBase, overseeing all content, tool accuracy, and editorial standards.
View full profileRelated Tools
Authoritative Sources
Formulas and data in this tool are based on guidelines from the above sources.