Skip to content
ImageRuns in your browserPopular

Image Compressor

An image compressor that reduces file size without a visible drop in quality, entirely in your browser.

Upload
Batch upload supported · 25 MB max
Privacy
Nothing is uploaded
Cost
Free · no sign-up · no watermark

Loading tool…

The tool is loading its code on your device. This happens once and is cached for later visits.

Processed entirely on your device

Your file is read, transformed and re-encoded inside this browser tab using JavaScript. There is no upload endpoint — nothing leaves your machine, nothing is stored, and the result is created as a local object URL that disappears when you close the page.

Overview

About the Image Compressor

Compress JPG, PNG and WebP images by re-encoding at a target quality and optionally resizing. See the exact saving per file before you download.

Image compression is a negotiation between three things: how big the file is, how sharp it looks, and how large it is displayed. Most people only touch the first two and forget that dimensions dominate everything. A 4000×3000 photograph compressed to perfection still weighs more than a 1200×900 version at mediocre quality — which is why this image compressor puts a size cap next to the quality slider instead of pretending quality is the only lever. Used in the right order, a simple image compressor clears most upload limits without visible damage.

The order to work in

When you compress images, the order of operations decides how much you can save:

  1. Resize first. Match the image to its largest real display size. Retina screens want roughly double the CSS pixel width, so a 600-pixel column needs about 1200 pixels of image.
  2. Pick the right format. Photographs go to JPEG or WebP lossy. Logos, charts and screenshots go to PNG or WebP lossless.
  3. Then lower quality. Only after the dimensions and format are correct does the quality slider become the efficient lever.

Target-size mode: compress images to an exact size

Some situations have a hard ceiling rather than a preference: a 500 KB portal upload, a 100 KB hero image for a performance budget, a 2 MB email attachment. Type that number into the target field and the image compressor stops guessing on your behalf and starts measuring.

It works as a descending ladder rather than a clever search. The first attempt encodes at 90% and the result is weighed. If it is still over your number the next attempt runs at 80%, then 70, 60, 50 and finally 40. The moment an attempt lands under the target the ladder stops, so a photograph that only needed a nudge is never flattened by a setting it did not require. Target mode is what turns a quality slider into a real image compressor: it weighs every attempt instead of trusting a number.

Two consequences are worth knowing. First, a target overrides the quality slider completely — set both and the slider is ignored for that run. Second, 40% is the floor. If even a 40% encode is larger than your target you receive the 40% version rather than an error, because a slightly oversized file you can look at is more useful than a failure message. When that happens the fix is dimensional rather than tonal: set a maximum dimension of 1600 or 1200 pixels and run it again. Quality changes shave bytes; pixel counts move them in blocks.

What image compression actually removes

JPEG and WebP lossy compression works in the frequency domain. It keeps the broad shapes and tones that your eye latches onto and discards fine high-frequency detail that it mostly ignores. That is why smooth skies survive brutal compression while hair, foliage and text fall apart — those are almost entirely high-frequency information.

If your image is mostly text or thin lines, do not use lossy compression on it at all. Keep it PNG, or resize it instead. The image compressor will happily flatten a screenshot if you let it; the format choice is the guardrail that stops it. To compress images well is to discard what the eye ignores and keep what it latches onto — that is the whole discipline in one sentence.

Verifying the result

Always compare at 100% zoom, not fit-to-screen. Browsers downscale previews in a way that hides exactly the artefacts compression introduces. Open the original and the compressed image in two tabs, zoom both to actual size, then flick between them while watching one small thing — an eyelash, a brick wall, the edge of a caption. Damage that is invisible at fit-to-screen is obvious at 100%, and 100% is what a reader who taps to enlarge will see. That habit costs ten seconds, and it is the only reliable way to check what an image compressor actually did to the file.

The maximum-dimension cap

The maximum-dimension field caps the longest edge, whichever edge that happens to be. A 4000 × 3000 landscape photo capped at 1600 comes out 1600 × 1200; the same photo rotated to 3000 × 4000 comes out 1200 × 1600. You never have to work out which side is which and you never have to touch the ratio, because the other edge follows automatically. It is the strongest single control when you compress images for the web, because dimensions dominate everything.

It also only ever shrinks. A 900-pixel image with the cap set to 1600 is left at 900, so a mixed batch of screenshots and camera files can go through one setting without the small ones being blown up. That single field usually does more than any quality change: dropping 12 megapixels to 1.9 removes 84% of the pixels before the encoder has done anything at all.

What you get back

Each finished row shows the output dimensions and the exact before and after size, so you can judge file by file whether the trade was worth taking — an image compressor that reports its own numbers instead of promising them. The strip above the batch adds both figures up and prints the percentage saved across everything you dropped in. Results are renamed with a -compressed suffix, so beach.jpg arrives as beach-compressed.jpg and a PNG kept as PNG arrives as beach-compressed.png — your originals are never at risk of being overwritten.

Batch image compression, privately

Twenty files per batch, 25 MB each, and not one of them leaves the tab. That last clause is the point of a browser-based image compressor: the usual online route means uploading the very photographs you are trying to fit somewhere else, which inverts the purpose of the exercise. This one will compress images where they already are — on your machine — with no account, no queue and no watermark. Application portals, email attachments and CMS media libraries all impose caps; drop the batch, set a target, read the numbers, download the results. If the balance is not right yet, adjust and re-run — the originals are untouched either way.

Step by step

How to use the Image Compressor

  1. Add the images you want to shrink — several at once is fine.

  2. Set the quality slider, or type a target file size in KB to aim for instead.

  3. Optionally set a maximum dimension so the longest edge of huge photos is capped.

  4. Press Compress and read the before and after size printed on every row.

  5. Download the results, or adjust and re-run until the balance is right.

Why use it

Benefits and common use cases

What this tool is good for, and what it deliberately does not try to do.

Target size, hit by stepping down

Type a size in KB and the compressor encodes at 90%, weighs the result, then steps down through 80, 70, 60, 50 and 40 until it fits. The first attempt that fits is the one you download.

Four outputs, or keep the original

Keep original reads the file's own bytes rather than its extension, so a PNG stays a lossless PNG and everything else becomes JPG. You can also force JPG, WebP or PNG for the whole batch.

Measured, not promised

Every row prints the output dimensions and the exact before and after size, and the strip above the batch totals both figures with the percentage you saved overall.

Meets real upload limits

Application portals, email attachments and CMS media libraries all impose caps. Target-size compression is built to hit them exactly.

Questions

Frequently asked questions

Short, honest answers about quality, limits and privacy.

How much can I compress an image before it looks bad?

For photographs, quality 70–85% is usually indistinguishable on screen. Below 60% you will start to see blocking in gradients and smearing around sharp edges. Resizing gives far bigger savings than dropping quality, so reduce dimensions first.

Can I compress a PNG without losing transparency?

Yes — choose PNG or WebP as the output and the alpha channel survives. With PNG the quality slider switches off, because PNG is lossless and the only lever that shrinks it here is the maximum dimension. For a large saving on a transparent image pick WebP instead: it keeps transparency and compresses far harder than PNG can.

Why did my image get bigger after compression?

It happens when a small flat graphic is re-encoded as JPEG, or when an already-squeezed source is re-encoded at a higher quality than it was saved with. Leave the keep-the-original checkbox ticked — it is on by default — and any file that would have grown is handed back untouched, with its row marked as kept.

Does resizing reduce quality?

Downscaling discards pixels, so fine detail is lost — but the result is still sharper than a full-size image squashed to the same file size. Always downscale to the largest size you actually display.

Is there a limit on how many images I can compress?

You can add up to 20 files per batch with no account and no daily cap. Because processing is local, the only real constraint is your device's available memory.

Guides & tutorials

Guides for the Image Compressor

Practical walkthroughs, settings, and troubleshooting for your next step.