Compress Image

Make a photo smaller — under a size you choose, such as 50 or 100 KB, or at a quality you set. JPEG, PNG and WebP, one picture or many.

Drop pictures here, or choose them. JPEG, PNG, WebP, GIF and BMP; HEIC and AVIF where your browser opens them.

Compress

Make it

Forms often ask for under 20, 50, 100 or 200 KB. 1 KB = 1,024 bytes, as they count it.

Made in this browser. Your pictures are not uploaded, and nothing is kept after you close the tab.

Runs in your browser — nothing you enter leaves this device.

About this tool

What it does

Compress Image makes photos smaller in file size while keeping them looking the same, which is what an application form, an email limit or a slow connection needs. Choose "Under a size" and type the most kilobytes allowed — 20, 50, 100, 200 or any other — and the tool finds the best file within it: first the highest quality that fits at the picture's full size, and only if no quality fits, the picture made a little smaller step by step, each time at the best quality that fits. Or choose "At a quality" and set it yourself. JPEG, PNG and WebP can be kept as they are or changed; add one photo or a whole folder and make them all at once, downloaded together as a ZIP. Every file is opened again and checked before it is offered, and its size is shown beside the original's.

How to use it
  1. Choose pictures, or drop them on the page. Each is listed with its size in pixels and kilobytes.
  2. Pick Under a size and type the limit in KB, or pick At a quality and move the slider.
  3. Keep the same format, or save as JPEG or WebP for the smallest files.
  4. Press Make it for the picture shown, or Make all to do every picture.
  5. Read the result: the new size, the quality used and whether the picture had to be made smaller. Download it, or the ZIP.
Limits and your data
  • A size that cannot be reached without making the picture rough — below 40% quality, or smaller than 64 pixels across — is not forced: you get the smallest file made, and are told it does not fit.
  • PNG has no quality setting, so a PNG under a size is only made smaller in pixels. For photos, saving as JPEG reaches far smaller sizes.
  • A compressed file is saved afresh, so the camera, time and location details of the original are not carried over. A GIF is saved as its first frame.
  • Kilobytes are counted as forms count them, 1 KB = 1,024 bytes, and sizes are rounded up, so a file shown as 50.0 KB is never over 50 KB.
  • Very large pictures are limited to what a browser can draw, about 16 megapixels on phones; larger ones are scaled to fit, and the result says so in its size.
  • Your pictures are decoded, compressed and saved in this browser tab, in a background worker; they are never uploaded to ToolsDev or anyone else, and nothing is kept after you close the tab. The page downloads only its own code from toolsdev.in.

Questions

Why is my compressed file not smaller?

Some files are already compressed as far as they sensibly go — a photo a phone saved at a low quality, or a small PNG. The result says when the new file is not smaller; keep the original then.

How do I get a photo under 50 KB for a form?

Choose Under a size, type 50 and save as JPEG. If the form also gives a size in pixels, resize first in Resize Image, which makes reaching the size easier and keeps the quality higher.

Does compressing reduce the number of pixels?

Not unless it has to. At a quality, the pixels stay the same. Under a size, the picture keeps its pixels if any quality from 92% down to 40% fits, and is only made smaller when none does — the result says by how much.

Is WebP better than JPEG?

For the same look WebP files are usually 25–35% smaller, and every current browser opens them. Some older programs and some upload forms accept only JPEG, so check what is asked for.