OneJobKit

HomeImage ToolsCompress imageBrowser

Compress an image to an exact file size

Set any ceiling you like, or jump to one of the common limits below. The tool searches for the highest encoding quality that still fits, so you get the best picture the limit allows rather than an arbitrarily degraded one.

Drop an image hereor click to choose · nothing is uploaded

Common presets

Each one has its own page explaining where that requirement comes from and what to expect.

Coming from TinyPNG or iLoveIMG?

They decide how small your image gets. If a form demands exactly 100 KB, that is a problem. Here you name the size, and the tool finds the best-looking version that fits under it. Your photo also stays on your device — nothing is uploaded.

How to use it

  1. 1Drop a JPG, PNG or WebP onto the box, or click it to pick a file.
  2. 2Type the ceiling you have to stay under and choose KB or MB.
  3. 3Leave the output as JPEG, or switch to WebP for a noticeably smaller file at the same quality.
  4. 4Press Compress, check the before-and-after sizes, and download the result.

Frequently asked questions

Is my photo uploaded anywhere?
No. The encoding runs on a canvas inside your browser, so the file never leaves your device — the page works offline once it has loaded.
Why does the result come out a little under my target instead of exactly on it?
JPEG and WebP cannot be told to produce an exact number of bytes. The tool binary-searches the encoder quality for the highest setting that still fits under your ceiling, so you land just below it rather than just above — which is what a form with a size limit actually needs.
Why are the pixel dimensions smaller than the original?
Only when they had to be. If the lowest usable quality still misses the target, the tool shrinks the image by 25% and tries again, up to five times. Below roughly 20 KB a smaller, sharper picture looks far better than a full-size one covered in compression artefacts.
Can I keep the PNG as a PNG?
The output is JPEG or WebP. PNG compression is lossless, so there is no quality dial to trade against size — it cannot be steered towards an arbitrary ceiling. WebP is the closest thing: it keeps sharp edges much better than JPEG.
What if the size I asked for is impossible?
The tool tells you instead of quietly handing back something too big. Try WebP rather than JPEG, or raise the limit a little.