Skip to content
Kilnfile

Compress JPG

Reduce JPG file size in your browser with a quality slider and optional max width.

Processed on your device, nothing uploadedLast updated

To compress a JPG, drop the file on Kilnfile's Compress JPG tool, set Quality (75 is a good default) and an optional Max width, then click Compress JPG and download the smaller file. Everything runs in your browser, so photos never leave your device. Quality 75 typically cuts a phone photo by 60 to 80% with little visible change.

Your file stays in this tab.On your device
Options

0 keeps the original size. Otherwise the longest side is limited.

Add several files to get a single ZIP back.

How do I compress a JPG?

  1. Drop one or more JPG files onto the drop zone, or click it to browse.
  2. Set Quality. 75 is the default and suits most photos; go lower for email attachments.
  3. Optionally set Max width in pixels. Leave it at 0 to keep the original dimensions.
  4. Click Compress JPG.
  5. Download the result, or use Download all as ZIP when you compressed several files.

Compress JPG decodes each photo with createImageBitmap inside a Web Worker, redraws it on an OffscreenCanvas and re-encodes it as a new JPEG at the quality you choose. JPEG is lossy, so the encoder discards fine detail the eye is least likely to notice, and the lower the quality number the more it discards. Because the work happens in a worker, the page stays responsive while a batch of 50 holiday photos is processed.

Quality 75 is the sweet spot for most uses: a 4 MB phone photo typically lands between 0.8 MB and 1.6 MB, a 60 to 80% saving, and side by side with the original the difference is hard to spot. Use 85 to 90 for prints or portfolio images where you want a safety margin, and 50 to 60 for thumbnails or images that will be viewed small. Below 40 you will start to see blocking around edges and banding in skies.

Max width is the other big lever. A 12 megapixel photo is around 4000 pixels on its longest side, yet most web pages display images at 1200 to 2000 pixels and email clients shrink them further. Setting Max width to 1600 limits the longest side to 1600 pixels while keeping the aspect ratio, and that alone can remove three quarters of the file before quality even comes into it. Leave it at 0 to keep the original pixel dimensions. The tool never enlarges an image.

Re-encoding writes a fresh JPEG, so EXIF metadata such as camera model, capture date and GPS location is stripped as a side effect. That is usually welcome when sharing, but keep the original if you need the data. Colour profile information is not carried across either, so images saved in a wide gamut profile may look slightly different in colour-managed software. Progressive and baseline JPEGs are both accepted.

Nothing is uploaded. The file is read from disk into browser memory, processed there and offered back as a download, which is why there is no size limit beyond what your device can hold in memory and why a 20 MB file finishes in a second or two. Close the tab and nothing remains.

How it works: this tool uses your browser's Canvas and WebCodecs APIs, plus libheif for HEIC. No server is involved, so Kilnfile never sees your file. Last reviewed 20 September 2026.

Frequently asked questions

How much smaller will my JPG be?

At the default quality of 75, a typical phone photo shrinks by 60 to 80%. Screenshots and graphics saved as JPG compress less predictably because they are often already small. Adding a Max width gives the biggest extra saving on large camera images.

Does compressing a JPG reduce the quality?

Yes, JPEG compression is lossy, so some detail is always discarded. At quality 75 or above the change is rarely visible at normal viewing sizes. Avoid compressing the same file repeatedly, because each pass loses a little more.

Are my photos uploaded to a server?

No. The tool runs entirely in your browser using a Web Worker and OffscreenCanvas. Files never leave your device, and you can use it offline once the page has loaded.

Can I compress many JPGs at once?

Yes. Drop as many files as you like, set the options once and click Compress JPG. When there is more than one output you get a Download all as ZIP button.

Does it remove EXIF data and location from the photo?

Re-encoding creates a new JPEG without the original metadata, so camera details, dates and GPS coordinates are dropped. If you want to remove metadata without touching the pixels at all, use the Remove EXIF Data tool instead.

Cite this page: “Compress JPG Online Free, No Upload”, Kilnfile, https://kilnfile.com/image/compress-jpg/

Guides