Skip to content

Fit a file to a KB limit

Set the limit, then add your file.

Photo or PDF, up to 25 MB

How it works

  1. Set the limit. Type the largest size the form accepts, and the smallest if it states one. Tick “less than” if that is how the form words it.
  2. Add your file. A photo (JPG, PNG, WebP or HEIC) or a PDF, up to 25 MB and 30 pages. It stays on your device.
  3. Download the result. The tool shows the new size in kilobytes and bytes. If it can’t reach your limit, it says so and offers the closest file.

A photo keeps its pixel size and is saved at the highest JPEG quality that fits. If an exam also sets pixel dimensions, use its page in the exam resizer instead, which handles both.

Common sizes

Exam certificates

Files never leave your device. Here’s how that works

Common questions

Is my file uploaded anywhere?
No. Everything happens in your browser. The tool’s code loads when you reach for the file picker, before you choose a file, and nothing is sent while your file is processed.
Why does a PDF sometimes lose its selectable text?
A PDF is first rewritten without changing its pages. If that isn’t enough, each page becomes a picture at the best quality that fits. Fine for scans, but the text can’t be selected afterwards, and the page says so.
Why two ways of counting a kilobyte?
A kilobyte can mean 1,000 bytes or 1,024 bytes, and forms rarely say which they use. The tool aims for a file that fits under both readings, so it passes whichever way the form counts.
What does “less than” change?
A form that says “less than 400 KB” doesn’t accept exactly 400 KB. Tick the box and the tool stays 2% under the limit, so the file is clearly below it.
What if my file can’t get that small?
The tool says so, gives you the closest file it could make, and suggests what to change: fewer pages, a closer crop, or a scan at a lower resolution. It never claims a file fits when it doesn’t.

This page was last checked against the official source on .