Skip to content

JPEG Compressor

Compress JPEG images online, free

You go to attach the photo and the upload bar just sits there, because the file is way too big. Drop it here, nudge the quality slider, and download a smaller version in seconds, all inside your browser with no upload.

  • Files never leave your device
  • Runs in your browser
  • Free, no signup

How it works

  1. 1

    Drop your files

    Drag JPEGs onto the tool or click to browse. Single files and batches both work. Drop up to 50 photos at once.

  2. 2

    Set quality

    Move the slider between 30 and 95. Quality 78 is a reliable starting point. Most photos reach a quarter of their original size at this setting.

  3. 3

    Download

    Each compressed file is ready immediately. Download files individually or grab all as a single ZIP archive.

Why this JPEG compressor works

Truly private

All re-encoding uses the Canvas API inside your browser tab. Nothing is sent to a server. Open DevTools and you will see zero upload requests.

EXIF stripped automatically

GPS coordinates, camera model, and shooting data are removed during re-encoding. Useful before sharing photos on social media or public platforms.

Batch in parallel

Drop 50 JPEGs at once. Each file compresses independently on a separate thread so the whole batch finishes quickly.

Where this helps

Email

Email attachments

Most mail servers reject files over 10 MB, and many clients preview photos inline. Compress to 500 KB or 1 MB before attaching and recipients open them without delays or bounce errors.

Forms

Job portals and government forms

Online application portals often cap photo uploads at 100 KB, 200 KB, or 1 MB. A quick compress on your headshot or scanned document gets it through the upload limit every time.

E-commerce

Product photography

Shopify and WooCommerce stores load faster when product images stay under 300 KB. Smaller images also cut storage costs when you manage hundreds of SKUs.

Messaging

WhatsApp and Telegram

Messaging apps re-compress photos automatically, which can wreck quality in unpredictable ways. Compress on your own terms first so your recipient gets a clean file at the size you chose.

Tips that help

  • 1

    Quality 75 to 82 for general web use

    Above quality 85 the file stays large but the extra data is invisible on most screens. Staying in the 75 to 82 range for photos you publish online gives the best size-to-quality tradeoff.

  • 2

    Quality 60 to 70 for thumbnails and previews

    Thumbnail images display at small sizes where a lower quality setting looks identical to the original but saves a substantial amount of storage across a large image library.

  • 3

    Start from your original file

    Re-compressing a JPEG that was already encoded at quality 60 adds compression artifacts without reducing file size further. Always start from the highest quality source you have.

  • 4

    Consistent settings for product catalogs

    If you are compressing a batch of product photos for a shop, pick one quality level and apply it to all images. This keeps file sizes predictable and page load times consistent across your catalog.

  • 5

    Use Compress to Size for strict KB limits

    If you have a hard cap like 100 KB or 200 KB, use the Compress to size tool instead of adjusting quality manually. It finds the right quality level automatically through binary search.

How JPEG Compression Works and How to Pick the Right Quality

JPEG compression is why a 12-megapixel phone photo arrives as a 3 MB file instead of a 36 MB one. The format throws away picture data your eyes are unlikely to miss, and you control how much through a single quality number: set it too high and you ship bloated files that slow pages and clog inboxes, set it too low and you get blocky, smeared images with halos around text. This guide explains what happens inside a JPEG when you move the slider, which settings fit which jobs, and the mistakes that quietly ruin photos over time. imgkilo does all of this in your browser tab using the Canvas API, so the files you compress here never leave your device.

What the quality slider actually changes

A JPEG does not store pixels the way a screenshot does. The encoder first splits the image into a grid of 8 by 8 pixel blocks. Each block goes through a discrete cosine transform, a piece of math that rewrites those 64 pixel values as 64 frequency coefficients.

Compress JPEG images online, free

The top-left coefficient describes the block's average color and brightness. The rest describe how the block changes across its width and height, from slow gradients down to fine, rapid detail. Photographs carry most of their visual weight in the low-frequency coefficients, and very little of what your eye notices lives in the high-frequency ones.

Compression happens in the next step, quantization. The encoder divides each coefficient by a value from a quantization table, then rounds to the nearest whole number. The quality setting controls how aggressive that table is.

At high quality the divisors are small, so most coefficients survive with detail intact. At low quality the divisors grow, the high-frequency coefficients round down to zero, and the encoder no longer stores them. Fewer non-zero coefficients means a smaller file. That is the whole trade: the slider decides how many fine-detail numbers get rounded away.

Read more

This is also why quality 100 is not lossless. The transform and rounding still run at the top of the range, so a small amount of data is discarded. A quality 100 JPEG is merely a JPEG that discards very little. If you need a truly identical copy of an image, JPEG is the wrong container no matter what number you choose.

What artifacts look like when you push quality too low

Because the encoder works on those 8 by 8 blocks independently, the first thing you notice at low quality is blocking. Smooth areas like skies, skin, or a plain wall break into visible square tiles, each a slightly different flat shade. Once you can see the grid, you have gone too far for that image.

The second artifact is ringing, sometimes called mosquito noise. Sharp edges, such as a tree branch against a bright sky or black text on white, pick up a faint shimmer or halo alongside them. A hard edge needs those high-frequency coefficients to stay crisp, and quantization is exactly what removes them.

The third is color banding. JPEG stores color at lower resolution than brightness, so gentle gradients can collapse into stepped bands of color, most visible in sunsets and studio backdrops.

These three problems show up at different quality levels depending on the picture. A photo of grass and foliage hides artifacts well because the eye already expects chaos there. A portrait against a soft gray background shows banding and blocking early, because the eye is trained to read faces and smooth tones. When you compress, glance at the busiest edges and the smoothest gradients, since that is where the damage appears first.

Recommended quality ranges for real jobs

For photos you publish on a website, quality 75 to 82 is the working range. It cuts file size by half or more against a high-quality original while keeping artifacts below the threshold most people notice on a normal screen. A full-width hero photo can sit at the top of that band, around 82, since it gets viewed large. A product shot in a grid can sit at the bottom, around 75, because it displays small.

Thumbnails and preview images live happily at quality 60 to 70. At the size a thumbnail occupies, often a couple hundred pixels wide, the artifacts that would bother you at full size become invisible, and if you resize the image first the savings across a large gallery add up fast. For archival copies or images you plan to edit again, stay at quality 90 or above to preserve as much detail as possible.

One thing worth internalizing: above roughly quality 85, file size keeps climbing but the visible improvement flattens out. The encoder is now spending bytes on high-frequency detail your screen and your eye cannot resolve at normal viewing distance. For anything bound for the web, settings of 90 and above mostly buy bigger files, not better pictures. Reserve the high end for masters and archives, not for the version you ship.

Generation loss: why you should always start from the original

JPEG compression is not idempotent. Every time you open a JPEG, edit it, and save it again as JPEG, the encoder runs the transform and quantization steps over a picture that was already quantized once. The new rounding compounds the old rounding.

Detail that survived the first save can vanish on the second, and artifacts you could not see at first start to stack up. This is generation loss, the photographic equivalent of photocopying a photocopy.

The rule that follows: always compress from the highest-quality source you have, ideally the file straight off the camera or the original export from your editor. Compressing a JPEG already saved at quality 60 will not make it meaningfully smaller, but it adds a fresh layer of artifacts on top of the old ones. If you keep a master in a lossless format like PNG or your camera's raw file, generate your JPEGs from that master each time instead of re-saving an existing JPEG.

When JPEG is the wrong tool

JPEG was designed for photographs, meaning images full of soft gradients and natural texture. It is a poor fit for several common image types, and forcing them into JPEG produces ugly results no quality setting can fix.

Logos, line art, and icons with large flat areas and crisp edges suffer badly. The ringing artifact attacks every hard boundary, so a clean logo picks up a dirty halo. Screenshots with text are the same story: the high-contrast edges of letters are exactly what JPEG handles worst, and small text turns fuzzy. For both, PNG keeps edges sharp and is usually smaller too, so the compress-png tool is the better home.

Anything that needs transparency cannot use JPEG at all, since the format has no alpha channel and fills transparent areas with solid color. To move a JPEG photo to a transparency-capable or generally smaller format, you can convert to WebP, which often beats JPEG at the same visual quality. The png-to-jpg tool handles the reverse trip when you need it.

EXIF, location data, and your privacy

Photos taken on a phone carry a hidden payload called EXIF metadata. It records the camera or phone model, the exposure settings, the date and time down to the second, and very often the exact GPS coordinates where the shot was taken. Post such a photo to a forum, a marketplace listing, or a public profile, and anyone who downloads it can read the location of your home or workplace straight out of the file.

Re-encoding a JPEG strips that metadata as a side effect. When imgkilo runs your photo through the Canvas API, it builds a fresh image from the pixels alone, and the EXIF block does not survive the trip. GPS coordinates, timestamps, and camera model are gone from the output.

You get this for free on every compress, so a quick pass through the tool before sharing a photo publicly removes the location trail with no extra steps. Because the whole process runs in your browser, the original photo with its location data never reaches a server in the first place.

A batch workflow for catalogs, email, and forms

When you have many images to handle, consistency matters more than squeezing every last byte. Pick one quality setting for the whole set and apply it across the batch. A catalog compressed at a single quality level gives you predictable file sizes and even page-load behavior, which beats hand-tuning each photo to its own number. imgkilo processes up to 100 files at once, each up to 50 MB, and compresses them on separate threads so a large batch finishes without locking up the page.

For e-commerce, quality 75 to 80 usually lands product shots comfortably under 300 KB, keeping storefront pages quick even with dozens of images on screen. For email, work backward from the limit: most mail servers reject attachments over about 10 MB, so a setting that brings each photo to 500 KB or 1 MB lets you attach several without trouble.

Job portals and government forms often set strict caps. The quality slider gets you close, but when the rule is a hard ceiling like 100 KB or 200 KB, you can compress to an exact KB size, which searches for the right quality automatically and lands at or under your target. Drop the batch, set your number, download the ZIP, and the whole set is done in one pass.

Frequently asked questions

Honest answers to what people ask before using this tool.

Further reading

Independent references if you want to go deeper on the formats and tradeoffs.

Compress JPG to an exact size

Pages tuned for JPG and JPEG photos at a specific KB target.

Compress for a specific place

Short guides tuned to where the image is headed, with the size limits that matter there.