LocalToolkit
HomeImage Tools › Image Compressor

Compress an Image Without Uploading It

Quality search runs in your browser, on your files. Close the tab and nothing remains anywhere.

🔒 Runs in your browser. Nothing is uploaded — verify it in the network panel, or disconnect and try again.

Why every other compressor wants your file

The familiar workflow — choose a file, wait for an upload of tens of megabytes, wait again for the download — has a second cost that is rarely mentioned. The image now exists on someone else's disk, in their logs, and in whatever backup or CDN copy sits behind them. For a photo of a passport, a medical scan, a client's unreleased product, or a child, that is a real disclosure. This page decodes the image with the browser's own codecs and re-encodes it in the same tab. Nothing is transmitted, which you can confirm in the Network panel while it works.

What actually shrinks an image

LeverTypical effectWhat it costs
Lowering JPEG qualityThe dominant lever — quality 75 is often 4–8× smaller than 95Visible blocking in flat areas and around edges
Chroma subsampling (4:2:0)20–35% smaller than 4:4:4Colour detail at sharp edges; rarely noticed in photos
Switching to WebP25–34% smaller than JPEG at matched qualityLoss of support in very old software
Switching to AVIFOften 40–50% smaller than JPEGSlowest to encode; still patchy in older editors
Dropping EXIF metadataA few KB to 100 KB+Losing camera settings, GPS coordinates, capture time
Resizing to fewer pixelsDirectly proportional to pixel countReal resolution, permanently

Every JPEG re-encode is lossy. Open a JPEG, save it at quality 90, repeat ten times, and the image visibly degrades even though each step seemed mild. Compress from the original every time — never compress an already-compressed file as your working copy.

How the target-size mode works

When you ask for 'under 100 KB', there is no formula: the relationship between quality and file size depends entirely on the image content. A portrait against a plain wall compresses far better than a photograph of foliage. The reliable approach is a search — encode at a high quality, measure the actual byte count, step down, and stop at the highest quality that fits. That is what this tool does, using a ladder of quality steps and reporting the quality it settled on, so you know how much you spent.

Which format to pick

What to check after compressing

How to use it

  1. Drop one or more images onto the drop zone.
  2. Choose a target quality, or enter a maximum file size in KB.
  3. Pick an output format — keep the original, or switch to WebP for the web.
  4. Download the results and compare the reported before-and-after sizes.

Worth knowing

  • Decoding and encoding both happen inside your browser; no upload occurs.
  • A quality ladder is searched so target-size mode reports the quality it used.
  • WebP is typically 25–34% smaller than JPEG at matched visual quality.
  • EXIF metadata can add tens of kilobytes to a phone photo before any pixels are considered.

Limitations

  • Compression is lossy for JPEG, WebP and AVIF — quality is spent, not merely optimised.
  • Browser codec support determines the output formats available.
  • Very large images are bounded by tab memory.
  • Metadata is not preserved through a canvas round-trip.
  • No server-side optimisation such as mozjpeg or libavif tuning is applied.

Frequently asked questions

Are my photos uploaded?
No. The file is read by the browser from your disk, decoded, re-encoded and handed back as a download. Open the Network panel and you will see no request carrying the image.
What quality should I use?
For photographs destined for the web, 75–82 is usually indistinguishable from the original at display size. For print, stay at 90 or above. Below about 60, artefacts become obvious in gradients and around text.
Why did compressing make my PNG bigger?
Because a photograph saved as PNG is a lossless encoding of noisy pixel data, and re-encoding it as PNG cannot help. Convert photographs to JPEG or WebP instead; keep PNG for screenshots and graphics with flat colour.
Does compressing remove EXIF data?
Yes, when the image is drawn to a canvas and re-encoded. That removes GPS coordinates and capture settings along with it, which is usually what you want before posting a photo publicly.
Related tools
Image ResizerImage Format ConverterImages to PDFPassport Photo MakerPhoto Size CalculatorCompress Image to 10 KB
Keep reading
How browser-only processing worksAll Image Tools toolsEvery tool on the site