Resize Image to Any Size in KB

Hit 20 KB, 50 KB or any limit a form asks for. Your photos never leave your device.

Home › Guides

KB vs MB, pixels and DPI: what form limits really mean

A form says "photo under 20 KB, 200 × 230 pixels, 300 DPI" and suddenly there are three different measurements. Here is what each one means, how they relate, and which one you actually need to fix.

KB and MB: file weight

KB (kilobyte) and MB (megabyte) measure how much storage a file takes, not how big the picture looks. A byte is the basic unit. Roughly:

UnitDecimal meaningBinary meaning
1 KB1,000 bytes1,024 bytes
1 MB1,000 KB = 1,000,000 bytes1,024 × 1,024 = 1,048,576 bytes
20 KB20,000 bytes20,480 bytes
50 KB50,000 bytes51,200 bytes

A photo straight from a phone camera is often a few MB. That's a hundred or more times bigger than a 20 KB limit, which is why you can't just attach it.

Why 1 KB can be 1,000 or 1,024 bytes

Computers work in powers of two, and 210 = 1,024 is close to 1,000, so for years "kilobyte" was used for 1,024 bytes. Standards bodies later fixed the names: kilo means 1,000, and the binary unit is the kibibyte (KiB), 1,024 bytes. The US National Institute of Standards and Technology (NIST) notes that both meanings are still in use.

Even your own devices disagree. Windows File Explorer counts 1,024 bytes as a "KB", while current iPhones and Macs count 1,000 (Apple says only older versions, such as iOS 10 and earlier, used the binary system). So the same file can show slightly different sizes on your phone and your PC. Upload portals don't say which one they use, and that matters near the limit:

To be safe both ways, our tool treats your maximum as 1,000 bytes per KB and stops slightly below it. A file it makes for "20 KB" is under 20,000 bytes, so it passes either kind of check.

Need a file under a limit right now?

Resize to 20 KBResize to 50 KBAny size

Why forms limit file size

Recruitment and exam portals collect photos from thousands, sometimes lakhs, of applicants. Small files keep storage and server load manageable, upload faster on slow mobile connections, and are enough to print a photo on an admit card or roll number slip. A passport-sized photo does not need millions of pixels to be recognisable.

Pixels: picture size

Pixels are the dots that make up the image. "200 × 230 pixels" means 200 dots wide and 230 tall. Pixels decide the shape and how much detail the picture can hold.

Pixels and KB are related but not the same thing. Two photos with exactly the same pixel size can have very different file sizes:

That's why our tool lowers JPG quality first and reduces pixels only if it has to. If you choose a fixed pixel size, it keeps those pixels and changes only quality, unless even the lowest quality is still too big.

DPI: a printing label

DPI (dots per inch) tells a printer how many pixels to fit in each inch of paper. It doesn't change the pixels or the file size on its own. A 413 × 531 px photo is the same file whether it's labelled 72 or 300 DPI; only the printed size changes.

DPI matters when a form gives a size in cm, mm or inches. To convert: pixels = (mm ÷ 25.4) × DPI. At 300 DPI, the usual print standard:

Printed sizeAt 300 DPIPreset in our tool
35 × 45 mm (passport)413 × 531 pxPassport 35×45 mm
2 × 2 inch600 × 600 px2×2 inch
3.5 × 4.5 cm413 × 531 pxPassport 35×45 mm
Signature 140 × 60 pxabout 12 × 5 mm if printedSignature 140×60 px

For any other size, choose Custom and enter it in cm, mm or inches; the tool converts at 300 DPI.

Which number should you fix first?

  1. Shape and pixels, if the form gives them. Crop first, then pick a preset or Custom.
  2. KB limit next. Set the maximum, and the minimum if there is one.
  3. DPI only if the form gives a printed size; otherwise ignore it.

For a walk-through on mobile, see resizing a photo to 20 KB on your phone. For Pakistani portals, see photo sizes for FPSC, PPSC, NTS and passport forms.

Questions

Is 1 KB 1,000 or 1,024 bytes?

Both are used. Standards define a kilobyte as 1,000 bytes and a kibibyte as 1,024, but many programs still call 1,024 bytes a KB. Since portals don't say which they use, keep your file under the limit counted as 1,000 bytes per KB.

How many KB are in 1 MB?

1,000 KB in decimal units, or 1,024 KB in binary units. Either way, a 1 MB photo is about 50 times bigger than a 20 KB limit.

Does changing DPI reduce file size?

No. DPI is only a printing label. To reduce file size you need to lower JPG quality, crop, or reduce the pixel dimensions.

What is 35 × 45 mm in pixels?

At 300 DPI it is 413 × 531 pixels. A 2 × 2 inch photo at 300 DPI is 600 × 600 pixels.

Sources

  1. NIST, Prefixes for binary multiples: https://physics.nist.gov/cuu/Units/binary.html
  2. Apple Support, How storage capacity is measured on Apple devices: https://support.apple.com/en-us/102119

More guides

Photo size for FPSC, PPSC, NTS and passport formsHow to resize a photo to 20 KB on your phoneHow to resize a signature to 10–20 KB