Compress Image to Size
Processing entirely on your device — large files may take a moment.
Upload limits are a fact of life: visa portals want under 240 KB, forums under 100 KB, some forms under 50 KB. Enter the target in kilobytes and the encoder walks the quality scale with binary search — seven encodes at most — keeping the highest quality that lands under the limit.
The output is a JPG at the best quality found — if even the floor quality exceeds your target, the smallest result is returned so you can resize down and retry.
How to compress to size
- 1
Select your files
Drag & drop your JPG files onto the area above, or click to browse. You can add multiple files at once for batch conversion.
- 2
Convert instantly
Click "Convert to JPG". The conversion runs entirely inside your browser using WebAssembly — no upload, no queue, no waiting.
- 3
Download results
Download each converted JPG file individually, or grab everything at once as a ZIP archive.
About the JPG format
JPG (short for JPEG, the Joint Photographic Experts Group committee that standardized it in 1992) has been the default photo format for over three decades. It compresses photographs using the discrete cosine transform: the image is split into 8×8 blocks, and details the human eye is bad at noticing are discarded. The result is files many times smaller than uncompressed data, at a quality level you control when saving.
In practice JPG is unbeatable for photographs and smooth gradients — camera memory cards, messaging apps and the web all assume it. It is a poor fit for screenshots, logos or anything with sharp edges and flat color, where compression leaves visible ringing around text. There is no transparency support, color depth is capped at 8 bits per channel, and every re-save with compression compounds tiny generational losses.
+Strengths
- ✓Opens on literally every device, app and browser made in the last 30 years
- ✓Compresses photos dramatically — typically 10:1 or better with little visible loss
- ✓Quality level is adjustable, so you can trade fidelity for file size
- ✓Mature ecosystem: EXIF metadata, ICC profiles and progressive loading all supported
!Limitations
- −Lossy — artifacts appear on text, sharp edges and flat areas
- −No transparency, so overlays and logos need PNG or WebP instead
- −Repeated re-saving at low quality permanently degrades the image
Frequently asked questions
Why not just lower the quality slider myself?
You can — but hitting 239 KB out of a 240 KB limit by hand takes many encode-check cycles. Binary search lands within a few KB of the target in one click.
What if my image is huge and the target tiny?
At extreme ratios (a 6000px photo into 20 KB) quality bottoms out. Resize the image smaller first — dimension reduction beats quality reduction at the same file size.
Does it work for PNG too?
The output is JPG (PNG is lossless and has no quality dial). If you need a PNG under a size limit, compress to JPG first and convert back — or accept the size PNG demands.