How to use this image compressor
- Drop in one or more images — or tap the box to pick files from your device. JPG, PNG, WebP, GIF and BMP all work.
- Set a target size — for example 100 KB for a form upload, or 200 KB for a website. Or switch to “Quality only” and pick a quality level instead.
- Resize if you need to — set a max width or height in pixels. Leave both at 0 to keep the original dimensions.
- Pick an output format — keep the original, or convert to JPEG, PNG or WebP. WebP usually gives the smallest file at the same quality.
- Press “Compress images” — each image gets a result card with its before/after size, savings and a download button. Nothing is uploaded at any point.
How target-size compression works
JPEG and WebP let you choose a quality level from 1 to 100. Lower quality means a smaller file, but the relationship is not a straight line — so this tool uses a binary search: it tries a quality in the middle, checks the resulting file size, then tries halfway up or halfway down, repeating about 8 times. Each round halves the gap, so it quickly lands on the highest quality that still fits just under your target size. If even the lowest quality is still bigger than your target, the tool says so honestly instead of pretending it hit the target — try a smaller target, resize the image, or switch to WebP.
JPEG vs PNG vs WebP — which should you use?
- JPEG — best for photos. Lossy compression makes files small, but every save loses a little detail. Ideal when you need an exact KB target.
- PNG — best for screenshots, logos and graphics with sharp edges or text. Lossless, so quality never drops — but files stay large, and PNG cannot be squeezed to an exact KB target by changing quality. Resizing is the only way to shrink a PNG here.
- WebP — best for the web. Usually 25–35% smaller than JPEG at the same visible quality, and it supports transparency like PNG. Use it unless the site you are uploading to only accepts JPG or PNG.
Worked example
A phone photo of 2,400 KB (2.34 MB) at 4032 × 3024 px, compressed to a 100 KB target as JPEG: the binary search settles near quality 62, and the result is about 98 KB — a saving of 95.9%. Resize the same photo to a max width of 1600 px first and the same 100 KB target is reached at a visibly higher quality, because there are far fewer pixels to store.
Tips for the best result
- Resize before you squeeze. A 4000 px photo shown at 800 px on a website wastes most of its bytes. Set a max width first, then the target size.
- Quality 80 is a good default. Most people cannot tell quality 80 from quality 95 on a screen, but the file is often half the size.
- Use WebP for websites, JPEG for forms. Many upload forms still only accept JPG or PNG — check the form's rules before converting.
- Keep the original. Compression throws detail away and cannot be undone. Download the compressed copy and keep your original file.