Image Compressor - Compress to an Exact File Size
Shrink JPG, PNG and WebP images to a target size in KB, or set the quality yourself. Choose JPG, WebP or PNG output, limit the width, and process up to 50 files in your browser. Nothing is uploaded.
Shrink JPG, PNG and WebP images to an exact size in KB, or set the quality yourself. Up to 50 images, processed on your device.
1 KB here means 1,024 bytes, so 100 KB is 102,400 bytes. Compression happens in your browser; photos are never sent anywhere.
Saved data on this device
Checking storage...
Found a Bug or Missing a Feature?
Report any problems or suggest new features you want. You can write in English, Urdu, Hindi, or any language! Our AI will analyze your feedback and upgrade the tool.
About This Tool
Shrink JPG, PNG and WebP images to a target size in KB, or set the quality yourself. Choose JPG, WebP or PNG output, limit the width, and process up to 50 files in your browser. Nothing is uploaded.
The upload form says "maximum 200 KB" and your photo is 3 MB. You try again, it fails again, and the deadline is tonight. This page is made for that moment: tell it the size you need, and it works out the best quality that still fits.
Why a size limit rejects a perfectly good photo
A phone photo of 4000 by 3000 pixels holds twelve million pixels, and even a clever format needs a lot of bytes to describe them. A 200 KB limit is 204,800 bytes, or 1,638,400 bits. Spread over twelve million pixels that is about 0.14 bits per pixel, far less than a normal photo needs. The only way down is to throw away detail your eye barely notices, or to use fewer pixels. The tool does both carefully.
How target-size mode finds the quality
JPEG and WebP have a quality dial. Quality 95 looks nearly untouched but is heavy; quality 10 is tiny but blocky. The tool first tries a high quality. If the file already fits, you are done. If not, it tests a lower setting, then a point halfway between the good and the too-big results, and keeps narrowing for a handful of rounds. It ends on the highest quality whose file still fits under your target. You never have to guess a number and retry.
When quality alone is not enough
Sometimes even the lowest sensible quality is too big, for example a 12-megapixel image with fine texture and a 50 KB target. With "Allow smaller dimensions" on, the tool shrinks the picture a little at a time and searches again. If you need control, set Max width yourself, for example 1200 px for a web page. PNG works differently: it has no quality dial, so a PNG target is met only by reducing dimensions, and the result note says so.
Choosing the format
- JPG: best for photographs. Transparent areas are filled with the background colour you pick, white by default.
- WebP: usually smaller than JPG at the same look, and it supports transparency. Some older browsers cannot save it, and the tool warns you instead of failing.
- PNG: best for logos, screenshots and flat graphics where crisp edges matter.
- Same as original: keeps each file in its own format.
Working through a whole folder
Add up to 50 images at once by dragging, choosing or pasting from the clipboard. Each image shows a thumbnail, its before and after size, the percentage saved and the final dimensions. Press Compare for a side by side look at the original and the result, and download single files or everything as one ZIP. If a batch is slow, press Cancel and the finished images are kept.
Next steps for your pictures
If the dimensions are the real problem, the Bulk Image Resizer sets exact pixel sizes for many files at once. If the website insists on a format your camera does not produce, the Image Format Converter switches between PNG, JPG, WebP and AVIF. When your images are going into a document, compress first and then bundle the PDFs with Merge PDF Files.
Questions about compressing to a size
Is 100 KB exactly 100,000 bytes?
Here 1 KB is 1,024 bytes, so 100 KB is 102,400 bytes. That is how file sizes are shown by most computers, and it is the number the tool aims under.
Why did my PNG not shrink like a JPG?
PNG is lossless, so it has no quality dial. To hit a target, the tool can only reduce the dimensions. If you do not need transparency, choose JPG or WebP output instead.
What if the target is impossible?
The tool tells you the closest size it reached. Allow smaller dimensions, set a max width, or raise the target a little.
Will it make my image bigger?
Not by default. If the new file would be larger than the original in the same format, the original is kept and you are told so.
Are my photos uploaded?
No. Compression runs in your browser, the files never leave your device, and only your settings and a running total of space saved are remembered.
