Compress JPG & PNG images to an exact file size

Drag in your photos, pick a target like 100 KB or 200 KB, and download the smaller image. Everything runs inside your browser — your files are never uploaded to any server.

100% private No uploads No watermark Free Batch mode

Drop images here or click to choose files

JPG, PNG, WebP, GIF, BMP, AVIF · multiple files supported

Compression happens locally on your device using the Canvas API. Nothing is sent to a server — you can even disconnect from the internet after the page loads.

How to compress an image in 3 steps

1

Add your images

Drag and drop one or many photos onto the box above, or click to browse your device.

2

Pick a target size

Choose a preset like 100 KB, enter a custom value, or switch to quality mode for manual control.

3

Download the result

Each compressed image shows its new size and savings. Click Download — no watermark, no sign-up.

Why compress your images?

Image files are the single largest resource on most web pages. A modern phone camera produces JPGs between 3 and 8 MB, yet most use cases — blog posts, online forms, email attachments, marketplace listings — only need a fraction of that. Compressing images before you publish or send them makes pages load faster, keeps visitors on your site longer, and stays within strict upload limits on platforms that enforce them.

Common situations with hard file-size limits

  • Government and immigration forms that reject photos above 100–240 KB
  • Job portals and scholarship applications capping uploads at 100–500 KB
  • Email attachments that fail silently when images are several MB each
  • Website speed: Core Web Vitals and LCP scores depend heavily on image weight

How target-size compression works

JpegDiet encodes your image repeatedly at different quality levels and uses a binary search to find the highest quality that still fits under your chosen file-size budget. If the target can't be reached through quality alone — for example, a huge 6000×4000 photo squeezed to 50 KB — the image is also scaled down gradually until it fits. You always get the best possible image for the size you asked for.

For a deeper walkthrough, see our guides on compressing a JPG to exactly 100 KB and compressing PNG files.

Frequently asked questions

Are my images uploaded to a server?

No. All compression runs locally in your browser with JavaScript and the HTML5 Canvas API. Your files never leave your device, which makes this safe for private photos, IDs, and business documents.

Can I compress images to exactly 100 KB?

Yes. Select "100 KB" as the target size (or enter any custom value). The compressor automatically finds the highest quality that fits under your limit, and the result is guaranteed to be at or below the target size.

Does compression reduce image dimensions?

Only when needed. By default the original resolution is kept and only quality is reduced. If the target is unreachable at minimum quality, dimensions are gradually scaled down. You can also cap dimensions manually with the "Max dimensions" option.

What image formats are supported?

You can input JPG, PNG, WebP, GIF, BMP and AVIF files. Output is JPG (universal compatibility) or WebP (smaller files, supported by all modern browsers).

Is there a file size or quantity limit?

Because processing happens on your own device, there is no server-side limit. Very large batches are limited only by your device's memory.

Is it really free?

Yes — no sign-up, no watermark, no hidden fees. The site is supported by advertising.