Online forms that accept image uploads almost always come with a file size cap — 200 KB for a profile photo, 500 KB for an ID scan, 1 MB for a document. Hitting that limit exactly, without destroying the image quality, is trickier than it sounds. Here's a practical approach to doing it reliably.

Why you can't just "save at lower quality" and hit a precise size

JPEG quality settings are not linearly linked to file size. Saving at 70% quality vs 80% quality doesn't reduce the file by exactly 10%. The actual compression depends on what's in the image — a photo with lots of fine detail compresses very differently from a photo of a plain wall. This means any approach that just guesses a quality value will land somewhere unpredictable.

The reliable approach is binary search: start at a medium quality, check the output size, go higher or lower, check again, and repeat until you land on target. This is what compression tools do automatically behind the scenes.

The two levers: quality and dimensions

JPEG compression gives you two main ways to shrink a file:

  1. Reduce quality. Lowers detail and introduces compression artifacts, but keeps the image the same pixel size. Works well until quality gets obviously bad (usually below about 60–65%).
  2. Reduce dimensions. Shrinks the pixel count of the image. Has a more predictable effect on file size and often looks better than aggressive quality reduction, because a smaller image at decent quality looks sharper than a same-size image with heavy artifacts.

For very tight targets (say, under 100 KB for a medium-resolution photo), you'll often need both: a moderate dimension reduction combined with a moderate quality reduction, rather than either extreme alone.

When nothing seems to work

Some files genuinely cannot hit a target size without becoming unusable:

In these cases, it's worth checking what the form actually needs. If it's asking for a photo ID and has a 100 KB limit, that limit was set with normal phone photos in mind — a photo at 1–2MP of a flat, lit card should compress well under that. If you have trouble, check if the image is unusually large to start with, or whether you're uploading the right type of image.

Format matters as much as quality

PNG is lossless — you can't reduce its size via a quality slider the way you can with JPG. If you have a PNG that's too large and the form accepts JPG, converting it to JPG and then compressing will often get you much further than anything you can do to the PNG itself. The reverse is also true: if you have a JPG screenshot with text that already looks bad, converting to PNG won't make it better — it'll just make it larger.

A step-by-step approach

  1. Check what format the form accepts. If it accepts JPG/JPEG, use JPG. If it requires PNG, check whether you can use JPG instead (many forms that say "PNG" also accept JPG).
  2. If the image is a photo, convert to JPG first if it isn't already.
  3. Try compressing to the target size. If the tool can't reach the target, also reduce the maximum dimension (e.g., cap at 1500px wide).
  4. Check the result before uploading — open the compressed file and zoom in to make sure the important parts (faces, text, signatures) are still legible.
Need to compress an image to a target size right now? Use the compress tool →