Compress Image to KB

Shrink a photo to an exact file size in KB, with an optional pixel size and minimum, right in your browser. Everything runs locally in your browser - your files are never uploaded to a server, no registration is required, and the tool is completely free.

How to Compress Image to KB

  1. Choose one or more images (JPG, PNG, WebP or HEIC) or drop them onto the page.
  2. Type the maximum size in KB or tap a preset such as 20, 50, 100, 200 or 500 KB. Add a minimum too if your form rejects files that are too small.
  3. Optionally enter the exact width and height in pixels the form asks for, and pick JPEG or WebP.
  4. Click Compress, check the before and after size and dimensions, then download the image, or all of them as a ZIP.

Features

Frequently asked questions

Does 1 KB mean 1000 or 1024 bytes here?
Forms differ, so the maximum is read as 1000 bytes per KB and the minimum as 1024. A file made this way passes a form that counts either way.
Why was my image made smaller in pixels?
When even low quality cannot reach the target, the tool can shrink the pixel size step by step. This only happens if 'Allow shrinking' is on, and never when you have set an exact pixel size.
Will the photo lose quality?
JPEG and WebP are lossy, so a smaller file always means some detail is lost. The tool picks the highest quality that still fits, and shows a before and after preview so you can judge it. An image that already fits in the chosen format is left untouched.
Is my photo uploaded anywhere?
No. The image is decoded and re-encoded by your browser on this device. Re-saving also removes EXIF data such as camera details and GPS location - except when the image already fits and is returned untouched. To be sure, run it through Remove Photo Metadata.

Presets of this tool

Related tools