Skip to content
LineOtter

Compress an image to a target file size

Many forms and websites reject images above a size limit. Enter the limit you need and this tool searches for the highest quality that still fits, reducing dimensions only if quality alone is not enough.

Runs in your browser. Nothing is uploaded.

Loading tool…

How to use

  1. Drop a JPG, PNG or WebP image onto the upload area, or choose one from your device.
  2. Enter the maximum file size in KB and pick JPG or WebP output.
  3. Select Compress, check the reported size and dimensions, then download the result.

Common uses

  • A job portal, visa form or school system rejects your photo for being over 200 KB, 500 KB or 1 MB. Enter the limit and get a file that is accepted the first time.
  • You want to email a batch of phone photos without hitting the attachment limit, but still keep them sharp enough to print.
  • A website you manage loads slowly because product photos are several megabytes each. Shrinking them to a few hundred kilobytes speeds up every page view.

Example

Input
photo.png, too large for a 200 KB form limit; target 200, output JPG
Result
photo-compressed.jpg at or under 200 KB. The result line states the quality used and whether the image was resized.

If 200 KB cannot be reached even at 10% of the original dimensions, you get the smallest version and a red “Still over the 200 KB limit” message instead.

Good to know

  • How it works: the tool tries quality settings from 95% down to 5% and keeps the best one that fits.
  • If it still does not fit: the image is made smaller in steps (85%, 70%, 55% … 10% of its size) and tried again. Select Keep original pixel dimensions to try quality changes only.
  • If nothing fits: you get the smallest version it could make, clearly marked as over the limit.
  • Output format: JPG or WebP. PNG keeps every pixel, so it cannot be squeezed to a target size. Transparent areas become white in JPG.
  • Hidden data removed: camera details and GPS location are not copied to the new file.
  • Files are processed by your browser and never uploaded. Closing or resetting the page discards them.

Questions

Why is the result slightly smaller than my target?

Each quality step changes the size in jumps, so the tool picks the best quality that stays at or under your limit rather than going over it.

Will my image look worse?

Lower targets need lower quality. Compare the preview before downloading; if it looks too soft, try a higher target or WebP output, which usually keeps more detail at the same size.

What is 1 KB here?

The tool uses 1,024 bytes per KB. Compare the exact byte counts if your upload form uses a different convention.