Skip to content

Compress an image to a target size in KB

Forms often refuse a photo that is one kilobyte over their limit. Enter the maximum size the form allows and this tool searches for the highest quality that still fits, reducing dimensions only if quality alone cannot get there.

Your file stays on your device. This tool runs entirely in your browser — nothing is uploaded to our servers, and nothing is stored.

JPG, PNG or WebP · up to 50 MB

How to compress an image to a target size in KB

  1. Choose your image.
  2. Pick a preset, or type the maximum size the form allows.
  3. If the form also fixes the pixel dimensions, enter those too and lock them.
  4. Press Compress. The tool tries several settings and keeps the best one that fits.
  5. Check the reported size, then download.

Supported formats

JPG / JPEG, PNG and WebP in. JPG out by default, because JPG is the only format that reliably reaches small targets and the only one most forms accept.

Important limitations

Worth knowing before you start, so nothing here comes as a surprise at the point you are submitting a form:

  • The result is at or under your target, not exactly your target. Browsers do not let a web page ask an encoder for a precise byte count, and any site promising exact bytes is padding the file to fake it.
  • Very small targets on a detailed photo may be unreachable while keeping usable quality. If so, the tool tells you the smallest size it managed rather than silently handing you a worse file.
  • Reaching a small target usually means reducing the dimensions too. Lock the dimensions if the form requires a specific pixel size.

How your files are handled

This tool does its work using your browser’s own image and document engine. Your file is read from your device into the page’s memory, processed there, and offered back to you as a download. It is never sent to Fyleit, never written to a server, and never stored anywhere we can reach.

You can verify that for yourself: load this page, disconnect from the internet, and the tool still works. That is also why there is no sign-up and no email field — we have nothing to attach an account to.

Common problems

It could not reach my target size.

The tool will not degrade an image past the point of being useless, so it stops and tells you what it achieved. Try allowing the dimensions to shrink, or crop the photo tighter — removing background is the most effective way to lose kilobytes.

The form still rejects my file.

Check what else the form asks for: the pixel dimensions, the format (JPG rather than PNG), or a minimum size as well as a maximum. Some forms also reject file names containing spaces or special characters.

My result came out far under the target.

That is normal when the image is simple or small to begin with — the tool never inflates a file to meet a number. A file under the limit is accepted just as readily as one at the limit.

Frequently asked questions

Are my photos uploaded to a server?
No. This tool uses your browser’s own image engine, so the photo is read, processed and saved entirely on your device. Nothing is sent to us, and nothing is stored. You can confirm this by opening your browser’s network tab, or by disconnecting from the internet after the page has loaded — the tool keeps working.
Can I get a file of exactly 50 KB?
Not honestly. Image encoders produce whatever size the content requires at a given quality, and the only way to land on an exact byte count is to pad the file with junk. This tool aims for the largest file that fits under your limit, which is what forms actually check.
Is KB here 1000 or 1024 bytes?
This tool uses 1 KB = 1024 bytes, which is what Windows, macOS and Android file managers display. Forms almost always measure the same way, so a file shown as 49 KB here will be read as under a 50 KB limit.
Why does the image look slightly different after compressing?
JPG compression works by discarding detail the eye is least likely to notice. Small reductions are invisible; large ones show up first as soft edges and blotchy patches around text and in smooth areas like sky or skin. If you can see the difference and you do not like it, raise the quality or allow a slightly larger file.