Free JPEG Compressor Online – Shrink JPG File Size

JPEG Compressor

Reduce the file size of your JPEG images. Pick a quality level, set an exact target file size, or shrink the dimensions for much smaller files. Output is always JPEG.

Drag and drop a JPEG here, or

Compression mode

Shrinking dimensions makes files much smaller. The aspect ratio is kept.

Choose a JPEG and press Compress JPEG to see your result.

Files never leave your browser.

Need to compress JPEG files fast? This free JPEG compressor reduces your JPG file size directly in the browser, with no signup, no software to install, and no uploads to a server. Whether you want to shrink JPEG photos for an email attachment, squeeze under an upload limit, or make a web page load faster, the tool above gets it done in seconds.

This page is the JPEG-only door of our image tools collection. If your file is a PNG or WebP instead, use our compress images tool, which handles those formats. Everything on this page accepts real JPEG files only, and it checks the file signature (not just the extension) so a renamed non-JPEG cannot slip through.

Because all compression happens on your own device, your photos stay private. The JPEG compressor below decodes your image, re-encodes it at the quality you choose, and shows the before and after sizes side by side so you can see exactly how much space you saved before downloading.

How to compress a JPEG

  1. Choose your JPEG. Click “Choose JPEG” and pick a .jpg or .jpeg file, or drag and drop it onto the upload area. Files up to 25 MB are accepted. The tool verifies the JPEG magic bytes (FFD8FF), so if you accidentally pick a PNG or another format, you get a clear error instead of a broken result.
  2. Pick a compression mode. Use “By quality” to control the result with a slider from 1 to 100, or switch to “Target file size” to aim for an exact size in kilobytes, for example under a portal upload limit.
  3. Optionally shrink the dimensions. If the photo does not need to be full resolution, cap the longest side at 1920, 1280, or 800 pixels. Resizing alone often cuts the file size dramatically, and it combines with quality compression for maximum savings.
  4. Press “Compress JPEG”. The tool re-encodes your photo in the browser and reports the original size, the new size, the percentage saved, and the output dimensions.
  5. Download the result. Click the download button to save your file as <name>-compressed.jpg. If the output somehow ends up larger than the original, the tool warns you instead of letting you download a worse file.

Quality vs file size: what the slider actually does

The quality slider is the heart of any JPEG compressor, so it helps to know what the numbers mean. JPEG compression works by discarding image detail the human eye barely notices. A quality of 100 keeps almost everything and produces a large file, while a quality of 1 throws away a great deal of detail and produces a tiny file with visible blockiness and banding.

In practice, most photos look nearly identical anywhere between quality 70 and 90, while the file size drops sharply as you move down that range. That is why 80 is the default here: it gives a noticeably smaller file with quality most people cannot tell apart from the original on a screen. Understanding this curve is the core skill of JPG compression: small slider moves in the 70 to 90 zone buy large file-size savings for little visible cost. If you are preparing images for a website, quality 70 to 80 is a common sweet spot that keeps pages fast without visible damage. For prints or archival copies, stay closer to 90 or higher, or reconsider whether compression is the right move at all.

Going below about 60 is where artifacts become obvious, especially in smooth gradients like skies or skin tones, where JPEG’s 8×8 blocks start to show. The tool lets you experiment freely because nothing happens to your original file. Run the same photo at a few different quality levels, compare the “Saved” percentages, and zoom into the downloads to find the lowest quality that still looks fine for your use case.

One honest technical note: recompressing a JPEG that is already heavily compressed gives diminishing returns and adds a new generation of artifacts on top of the old ones. If your photo was already saved at low quality, expect smaller savings and more visible degradation than you would get from a high-quality original.

When JPEG compression is the right move

JPEG compression shines whenever a photo needs to travel: email attachments with strict size caps, upload forms that reject files over a limit, marketplace listings, forum avatars, and images on a web page where every kilobyte slows the load. JPEG was designed for photographs and realistic images, and its lossy approach can shrink a camera photo to a tenth of its size with barely visible change. That is why “reduce JPG file size” is one of the most searched image tasks on the web.

There are also times when compressing a JPEG is not the answer. If the file is already as small as it needs to be, each extra compression pass only hurts quality. If you need pixel-perfect fidelity, such as a logo with sharp text or a graphic with flat colors, a lossless format like PNG is a better fit, and you should compress images in PNG form instead. And if a client or print shop asked for maximum quality, send the original.

A common trap is compressing the same photo over and over: each generation loses a little more detail. The good habit is to compress from the highest-quality original you have, keep that original safe, and generate smaller copies only when a smaller copy is actually needed.

Target file size mode

Sometimes you do not care about the quality number at all. You just need the file under a limit: a 200 KB cap on a job application portal, a 500 KB ceiling for a marketplace photo, or a 1 MB attachment limit. That is what the target file size mode is for.

Instead of guessing which quality hits your target, the tool searches for it. It encodes your JPEG at the midpoint quality, checks the size, then narrows the range and tries again, repeating this binary search for ten iterations. Ten rounds is enough to zero in precisely, and the tool keeps the highest quality whose file size fits under your target. Because JPEG file size does not change smoothly with quality, this search approach is far more reliable than picking a number by hand.

Targets are entered in kilobytes and can range from 10 KB to 25000 KB. If even the lowest usable quality cannot get small enough, the tool is upfront about it: it shows a warning naming the smallest size it could reach, and still gives you that smallest file to download. Pairing the target mode with the shrink-dimensions option usually solves stubborn cases, since fewer pixels means a much smaller starting point for the search.

Under the hood, the search range runs from quality 0.05 to 1.0, and the winner is always the best-looking version that fits, never the smallest possible file. You get predictability: pick a target, get a JPEG that fits, see the exact quality trade-off in the results.

Worked example

Here is what a typical compression run looks like with the tool above. You drop in a JPEG photo and the tool shows its name and original size above the upload area, so you know exactly what you are working with. You leave the quality slider at 80, keep the original dimensions, and press “Compress JPEG”.

Within a moment the result panel fills in: the original size, the new compressed size, the percentage saved (shown large in green), and the image dimensions. The download button appears with a filename based on your original, ending in -compressed.jpg, so the compressed copy never overwrites your source file.

If you then want a smaller file, you can run it again at quality 70 or switch to target file size mode and type your exact KB goal. Each run is independent: the tool always works from the file you uploaded, never from a previous compressed copy, so you never stack quality loss by accident.

More free image tools

Working with other formats or tasks? Our all-formats page lets you compress images in JPG, PNG, and WebP with the same quality and target-size controls. If you need to change formats entirely, convert images between JPEG, PNG, and WebP. You can browse everything from the image tools hub, which collects every free image utility on this site in one place.

Frequently asked questions

Is this JPEG compressor free?

Yes, completely free with no signup, no watermarks, and no limits on how many JPEGs you compress. You can compress JPG online from any device with a modern browser. The tool runs entirely in your browser, so there is no server cost per conversion to pass on to you.

Will compressing reduce the quality of my JPEG?

JPEG compression is lossy, so lowering quality discards some detail. In practice, quality 80 looks the same as the original to most viewers while saving a large share of the file size. You control the trade-off with the slider, and your original file is never modified.

Are my photos uploaded anywhere?

No. Everything happens locally in your browser using the canvas API. Your files never leave your device, which also means the tool works offline once the page has loaded and never queues behind other users.

How does the target file size mode work?

You enter a size in KB, and the tool binary-searches the quality range over ten iterations to find the highest quality that fits under your target. If the target is unreachable, it tells you the smallest size it could achieve and still lets you download that version.

Can I shrink the dimensions too?

Yes. The optional shrink setting caps the longest side at 1920, 1280, or 800 pixels while keeping the aspect ratio. This works in both compression modes and is the fastest way to make a very large photo much smaller.

What if my file is a PNG instead of a JPEG?

This page only accepts real JPEG files and verifies the FFD8FF file signature, so a PNG will be rejected with a clear message even if it was renamed to .jpg. For PNG files, use our compress images page, which handles PNG and WebP as well.

How is this different from the /compress-image/ page?

This page is a dedicated JPEG-only door for the “compress jpeg” task: simpler controls, JPEG-only validation, and JPEG-only output. The compress images page is the multi-format door that also accepts PNG and WebP. Pick whichever matches your file.

References