Skip to main content

Free Image Compressor Online

Compress JPG, PNG and WebP by quality or to a target size in KB — one image or a batch. Runs in your browser — the file is never uploaded.

Compression Settings

Drop, paste, or click to upload

One image or many — drop a whole folder's worth

Lower = smaller file, higher = better quality

Downscales image if width or height exceeds this

Original

—

Compressed

—

How to Compress an Image

  1. Drop in one image or a whole batch.
  2. Choose Quality to set a level yourself, or Target file size to give a budget in KB.
  3. Optionally change the output format or cap the maximum dimension.
  4. Click Compress — everything runs in your browser.
  5. Check the savings and download the file, or the whole batch as a ZIP.

Your images are never uploaded to a server. All compression happens locally.

Compress an image to a specific file size

Most size limits are handed to you rather than chosen: a form that refuses anything over 100 KB, a forum avatar capped at 50 KB, a job portal that wants a photo under 200 KB. A quality percentage is no help there, because the same 80% produces a 40 KB file from one photo and a 900 KB file from another.

Target file size mode works the problem backwards. Give it a budget and it encodes your image repeatedly, halving the search range each time, to find the highest quality that still comes in under the limit — then tells you which quality that turned out to be. If even the lowest quality overshoots, it reduces the pixel dimensions too and says so in the result, rather than quietly handing back a file that still breaks the limit.

One caveat worth knowing: a target is a ceiling, not a bullseye. Asking a detailed 12-megapixel photograph for 20 KB will get you something under 20 KB, but it will look like it.

What the quality numbers actually mean

Quality Band What you get
90–100 Archival Visually identical to the original for almost any photo. Files stay large — this band is for masters you will edit again, not for the web.
80–90 High The safe default for photography you care about. Artefacts are hard to spot even comparing side by side at full size.
70–80 Web Where most website images belong. Typically cuts a JPEG by half or more against quality 95 with no difference a reader would notice.
55–70 Aggressive Visible on close inspection — soft haloes around hard edges, faint blocking in skies and other flat areas. Fine for thumbnails.
Below 55 Last resort Obvious blocking and colour banding. Reach for a smaller pixel size before this band: halving the dimensions removes three quarters of the pixels and usually looks better than crushing the quality.

Deliberately no file sizes in this table. A quality step is worth wildly different amounts on a noisy photograph than on a flat screenshot, so any number printed here would be wrong for your image. Compress once and read the ladder next to the preview instead — that one is measured on your actual file.

Lossy vs Lossless Compression

Lossy (JPG, WebP)

Permanently discards some image data to achieve much higher compression, with the quality setting controlling how much. This is where nearly all the saving on a photograph comes from.

Lossless (PNG)

Rebuilds the image pixel-for-pixel, so the quality slider does nothing at all. If a PNG photo barely shrinks, that is why — convert it to JPG or WebP and the same picture usually drops by 80% or more.

Keep PNG when the image has sharp edges and flat colour — logos, icons, screenshots of text, or anything needing transparency. JPEG's artefacts cluster exactly around hard edges, which is where that kind of image lives.

Compressing versus resizing

These solve different problems and people reach for the wrong one constantly. Compression keeps every pixel and spends fewer bytes describing them. Resizing throws pixels away.

If a 4000 px-wide photo is destined for an 800 px-wide slot on a page, compression alone is the expensive way to get there — you are still paying to describe 4000 px of detail nobody will see. Resize it first, then compress: halving the width removes three quarters of the pixels before the encoder even starts, and the result beats crushing quality on the full-size original. The Max Dimension box above does both in one pass.

Going the other way, if the dimensions are already right and the file is merely heavy, this is the right tool and resizing would only cost you detail.

When to Compress Images

  • Before uploading to a website or blog to improve page speed
  • To get under a hard limit on an upload form — passport photos, job portals, forum avatars
  • Before attaching to emails with size limits
  • Batch-shrinking a folder of photos before sharing or archiving them
  • To reduce storage space on your device

Specifications

Accepts
Any image
Gives you
.auto, .jpg, .png, .webp download
Where it runs
Your browser — the file is never uploaded
Sign-up
None
Cost
Free, with no usage limits

FAQ

Is my image uploaded to a server?

No. Compression runs entirely in your browser using the Canvas API. Your image never leaves your device, which also means there is no upload wait and no size limit imposed by a server.

Can I compress an image to an exact file size?

Yes. Switch to Target file size mode and enter a budget — 100 KB, say. The tool re-encodes the image repeatedly, narrowing in on the highest quality that still fits under your target, then tells you the quality it settled on. If even the lowest quality is too big, it scales the image down as well and says so.

Can I compress multiple images at once?

Yes. Drop in as many as you like. Each is compressed with the same settings, the table shows what every file saved, and Download All gives you a ZIP. In target-size mode each image gets its own quality search, so every one lands under the budget rather than sharing a single setting.

Why does my PNG barely get smaller?

PNG is lossless, so the quality slider does nothing for it — there is no detail to discard. A photograph saved as PNG is the usual cause of "compression did nothing". Convert it to JPG or WebP with the Output Format dropdown and the same picture will typically drop by 80% or more.

What quality setting should I use?

For photographs on the web, 75–85 is the usual sweet spot. Below about 60 you start to see blocking around edges and in flat areas like skies. Rather than guessing, compress once and read the quality ladder under the result — it shows what your specific image weighs at each setting, because the answer depends on the picture.

What formats can I compress?

JPG, PNG, and WebP in, and you can convert between them on the way out. WebP is usually 25–35% smaller than JPG at a matching quality and is supported by every current browser.

Related Tools

Related guide

How to Reduce Image File Size for Web Without Losing Quality Background reading on this page's topic