CompressPictureAdvanced compression editor

Photo resizer in KBResize and shrink in one go

Set the width, height and KB limit — get one photo that meets all three.

Photo resizer in KB: set width × height (or cm at a DPI) and a cap like 50 KB, solved in one run. Nothing is uploaded. Never enlarged unless you allow it.

  • Open the photo
  • Set the pixels
  • Set the cap
  • Check and download
A photographer sliding landscape prints into a paper envelope on a wooden desk — the compressed copy, which looks the same as the original.Looks the same
studio-prints.jpg261 KB261 KB down to 49.8 KB−81%
Squeezed to 49.8 KB for a 50 KB field
or drop it here and give the width, height and KBOne photo at a time, up to 120 MB, in any common format

Cap to aim for

Set it now or after opening. Photograph and signature fields usually sit in the 20 to 50 KB band; each body publishes its own figure, so read the form.

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.

  1. 1Open the photo. Its size, pixels and format are printed straight away.
  2. 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.
  3. 3If the box has a different shape, choose crop to fill or fit with padding. Nothing is stretched.
  4. 4Type the cap. The search aims under it by a small margin and lists every encode it tried.
  5. 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?
Because every resize re-encodes the picture and changes its size. Set the pixels after the bytes and the file lands back over the cap. This page fixes the pixels first, then searches the quality for the largest file under your cap, in one run.
The form wants 3.5 × 4.5 cm. How many pixels is that?
It depends on the DPI. At 200 DPI, 3.5 cm is 275.6 pixels, rounded to 276, and 4.5 cm is 354. Choose cm, mm or inches under Dimensions, type the size and a DPI, and the page prints the exact figure and the rounding before it encodes. The DPI is written into the file's header too, without touching a pixel.
My photo has a different shape from the box. Will it be stretched?
Never. You choose: crop to fill the box (with a slider for where the crop sits) or fit the whole picture inside it with white padding. The page says which one is in use.
The form wants more pixels than my picture has. What now?
The resizer warns you and offers the largest box of that shape your picture really fills. Growing a picture past its own size needs a second, deliberate switch, off until you press it, because a stretched-up photo gains pixel count but no sharpness.
Is 50 KB 50,000 bytes or 51,200?
51,200 by default: this page reads a kilobyte as 1,024 bytes because the smaller cap is the safer one to meet. If your form defines a kilobyte as 1,000, flip the kilobyte setting beside the cap; the cap in plain bytes sits under the field whichever you pick.

Elsewhere on this site