Compress an image to a set size

Enter a size limit and choose images: each becomes a JPG at or under it. Nothing is uploaded to an outside server.

Common sizes:

or drop them here

or paste an image with Ctrl+V (⌘V on a Mac)

Files are processed on your device and never sent to an outside server.

Tips for fitting a size limit

  • Before compressing, crop to only the part the form needs: the fewer pixels around it, the more detail stays in it.
  • For a face photo, use a plain, light background: it takes fewer bytes than whatever else would show behind you.
  • Adjust brightness and colour before compressing: editing the result means compressing it again, which lowers the quality.
  • If the form also sets a minimum, check that the new, compressed file is not below it.
  • A document of several pages is easier to send as one PDF: Image to PDF combines the photos of each page.

How to use

  1. Enter the size limit the form asks for, in KB or MB. Tick “Keep the width and height” if the form also sets those.
  2. Click “Choose files” or drop images onto the box. JPG, PNG, WebP, AVIF, HEIC and JPEG XL are compressed on your device as soon as they are added.
  3. Check each file's new size in the list, then download them one by one, or all together as a ZIP file. Each is a JPG named after the original with the limit added, such as photo-100kb.jpg.

Frequently asked questions

What size should I enter?

The limit the form or site states, such as “100 KB or less”. Check its other requirements in its instructions too, such as the file format and the width and height in pixels: this tool sets only the file size, and saves JPG. When a range is given, such as 20 to 50 KB, enter the upper end; the file usually comes out just under it.

How are KB and MB counted?

1 KB is counted as 1,000 bytes and 1 MB as 1,000,000 bytes, so “100 KB” means at most 100,000 bytes. Some forms count 1 KB as 1,024 bytes; a file of at most 100,000 bytes is within the limit either way. The list shows each file's exact size in bytes and in KiB (units of 1,024 bytes, which Windows File Explorer labels “KB”).

Is the quality or the width and height lowered?

The quality first: the tool looks for the highest JPEG quality that fits the limit. Only when the image still does not fit at a quality that keeps faces and text clean does it shrink the width and height, keeping the proportions. With “Keep the width and height” ticked, only the quality is lowered; if that is not enough, the image is not saved and the list shows the smallest size reached. A file over the limit is never handed over.

Is the photo information (EXIF) kept?

No. The date, camera, location and other photo information are all removed: this saves space, and the place a photo was taken does not go out with it. The photo is turned upright first, so it shows the same way. A JPG already within the limit is not compressed again; only its photo information is removed.

Are my files uploaded to an outside server?

No. Everything runs in your browser, so your files never leave your device. The page only downloads the tool's own code when you add the first file.

Related tools