Make files smaller
How to Compress an Image to a Specific File Size
By PDFON team · Last reviewed:
Many online forms accept images only below a certain file size, stated in kilobytes. A phone photo is usually far larger than such a limit, so it needs to be compressed. Doing that by trial and error in a photo editor is tedious; a target-size setting does the searching for you.
This guide uses the Compress Image tool, which can work in two ways: with a quality slider you control, or with a maximum size that the tool tries to reach on its own.
Step by step
- Open Compress Image and add one or more images with browse from device. JPG, PNG, and WebP are accepted, among others.
- Under Compression Mode, choose Target File Size and type the limit from your form in Target Maximum Size (KB) *.
- If your form also has a minimum size, use the Resize Photo & Signature tool instead, which accepts a size range rather than only a maximum.
- Decide whether to tick Reduce dimensions if required to reach target size. Without it the tool only lowers quality.
- Choose an Output Format. Keep Original Format is fine for JPG and WebP; PNG files usually need conversion to shrink much.
- Select Compress Images, then Download File, and check the file size shown by your device before uploading.
Quality slider or target size?
The slider is the right choice when you care about how the image looks and the size is flexible. Values near the top of the range, up to 95%, keep the most detail; values near the bottom, down to 10%, produce small files with visible blocky artefacts.
The target mode is the right choice when a form gives you a hard limit. The tool searches for the highest quality that still fits under the limit, so you do not have to guess a slider value.
Why PNG files need special treatment
PNG is a lossless format: it stores every pixel exactly, and it has no quality setting to lower. Compressing a PNG while keeping it a PNG can only achieve small savings. Converting it to JPG or WebP allows real reductions, at the cost of exact pixel accuracy, which rarely matters for photos.
If the image has transparent areas, such as a logo, JPG cannot keep the transparency and will fill those areas with a colour. WebP can keep transparency, but some older upload forms do not accept WebP.
Reading a form's size rule
Forms phrase size rules in different ways: maximum 50 KB, between a minimum and a maximum, or less than a number of megabytes. A maximum alone is what the target mode is built for. A range needs a tool that can also push the size up, and very small images sometimes need that, because a tiny picture compressed well can fall below a minimum.
Some forms also limit the pixel dimensions or the shape, for example a portrait photo taller than it is wide. Compressing does not change the shape, so meet the dimension rule first and then the size rule. Doing it in that order avoids compressing an image twice, which costs quality each time.
When the target cannot be reached
A very low limit for a large, detailed image may be impossible to meet with quality alone. In that case the tool shows the closest result it found and tells you the limit was not reached. Allowing it to reduce dimensions usually solves this, because a smaller picture needs fewer bytes. Most forms display images small, so a modest reduction in pixel size is often invisible to the person reviewing it.
Limitations and things to check
- Heavy compression creates blocky areas and smeared edges, especially in text, signatures, and fine patterns. Zoom in before uploading.
- Some forms require exact pixel dimensions as well as a size limit. Use the Resize Photo & Signature tool for that combination.
- HEIC photos from some phones may only open in browsers that support the format.
- Devices and websites can count kilobytes slightly differently (1000 or 1024 bytes each), so aim a little below the stated limit.
Frequently asked questions
Will compressing a photo change its pixel dimensions?
Only if you allow the tool to reduce dimensions. Otherwise it keeps the width and height and lowers the image quality instead.
Can I compress many images at once?
Yes. You can add several images and they are processed with the same settings. Check each result, because the same limit can be easy for one photo and hard for another.
Are my photos uploaded to be compressed?
No. Compression happens inside your browser, and our code does not send your photos to a server.
Written by the PDFON team. Check results before relying on them.