Compress an image to an exact size in KB
Shrink a JPG, PNG, WebP or HEIC photo to a set size in KB, or a range like 20–50 KB, for an online form. Runs in your browser.
Type the limit your form gives, or a range such as 20–50 KB, and get a JPG that fits it. The tool lowers JPG quality first and makes the picture smaller only when quality 30 is still too big. You can also set the size in pixels, or in cm or mm at a DPI, for forms that ask for a 3.5 × 4.5 cm photo.
Your photo is decoded and compressed in this browser tab. The page's security policy blocks it from sending the file anywhere.
Questions
- Why is the result always a JPG?
- Almost every exam and government portal accepts only JPG or JPEG, and JPG is the format whose size can be tuned to the kilobyte. A PNG of a photo is often ten times larger at the same pixel size.
- Can the file come out over my limit?
- No. Every attempt is measured, and only one at or under the limit is kept. If no size reaches the limit, you get an error instead of a file that is too big.
- Is a KB 1,000 or 1,024 bytes here?
- Both, whichever is stricter. A 20 KB limit means at most 20,000 bytes, and a 10 KB minimum means at least 10,240 bytes, so the file passes a form that counts either way.