Width × height and a byte cap, solved together: pixels first, then the largest file under the cap — measured, never estimated.
Pixels first, bytes last
A form that asks for 350 × 350 pixels and at most 50 KB is asking for two different things, and the order matters. Bytes depend on pixels: a resize after the byte search re-encodes the file and moves its size. So this page always works in the same order — orientation, crop, resize, encode, byte search, header writes — and the file you download is the file that was measured.
- 1Open the photo. Its size, pixels and format are printed straight away.
- 2Under Dimensions, choose W × H, a long edge, a percentage, a megapixel figure, or a physical size in cm, mm or inches at a DPI.
- 3If the box has a different shape, choose crop to fill or fit with padding. Nothing is stretched.
- 4Type the cap. The search aims under it by a small margin and lists every encode it tried.
- 5Read the pre-upload check before you leave the page. It opens the very file you are about to upload and reads back its real type, its extension, its bytes, its width and height, any DPI stamp, whether the JPEG is baseline, its colour mode and which way up it is.
Physical sizes and DPI
- Pixels = size × DPI, with centimetres divided by 2.54 first. The exact figure and the rounding are printed before the encode.
- The DPI is written into the JFIF header of a JPEG or the pHYs chunk of a PNG. It changes no pixel and costs at most 21 bytes, which are taken off the cap before the search.
- Without a DPI, a physical size is turned into pixels at 300 DPI and nothing is written to the header — the page says so.
A small photo stays small unless you say otherwise.
When the box asks for more pixels than the photo holds, the photo is kept at the largest size it can fill and the check names the gap. Scaling it up is a switch of its own: resampling can make a form's pixel count, but the picture gains no sharpness from it.
Questions people arrive with
Why resize first and compress second?
The form wants 3.5 × 4.5 cm. How many pixels is that?
My photo has a different shape from the box. Will it be stretched?
The form wants more pixels than my picture has. What now?
Is 50 KB 50,000 bytes or 51,200?
Elsewhere on this site
- Photo size in KB for formsWhen the exam or service is known: its sourced pixels, range and format set in one tap.
- Compress image to KBWhen only the byte cap matters and the pixels must stay exactly as they are.
- Check image size in KBWhat a file already is — bytes, pixels, DPI — before you change anything.


