Pixels, detail and quality
Three things set the file size. The first is the number of pixels: a 4000 × 3000 px phone photo has 12 million of them, while a 400 × 300 px copy has 120,000, a hundred times fewer. The second is how much detail the picture holds, since fine texture costs more to store than a clear sky. The third is the quality setting, which decides how much of that detail JPG and WebP are allowed to simplify.
KB and pixels are different limits
Many forms ask for both, for example “200 × 230 pixels and under 50 KB”. Pixels describe the width and height of the picture. KB describes how much space the file takes. Fix the pixel size first with the image resizer, then bring the file under the KB limit here. Doing it in that order keeps the most detail.
How the tool reaches your limit
It starts at high quality and checks the size. If the file is too big, it searches for the highest quality that still fits. If that would mean a quality so low that blocks and smudges start to show, it shrinks the pixel size a little instead and tries again. The new pixel size is always shown next to the result, so nothing changes without you seeing it.
Is 1 KB 1,000 or 1,024 bytes?
Both are in use. Windows File Explorer counts 1 KB as 1,024 bytes, and this tool does the same. macOS Finder and many websites count 1 KB as 1,000 bytes. A file Windows calls 50 KB is 51,200 bytes, which a strict 50,000-byte check would reject. Aiming a few KB under the limit avoids the problem.
Which format to choose for a size limit
- JPG gives the smallest files for photos and is accepted by almost every form.
- PNG suits signatures and scanned text. Below quality 100 the tool reduces the number of colors, which keeps edges crisp in a small file.
- WebP is about a quarter smaller than JPG at the same quality, but many government and exam portals do not accept it yet.