Resize an image to exact pixels or centimetres

Set the width and height a form asks for, in pixels, centimetres or inches. The crop frame keeps the right shape, so your photo is never stretched.

Add a photo

Drop it here, paste it, or choose a file.Choose from your gallery or take one now.

JPG, PNG, WebP, HEIC (iPhone), GIF, BMP, AVIF

Your photo stays on this device. Nothing is uploaded.

Optional. Leave empty for the best quality.

We aim just under your limit and measure the real file.

Dimensions

Pixels, centimetres and DPI

A digital image only has pixels. Centimetres appear when it is printed, and DPI (dots per inch) links the two: at 200 DPI, one inch of paper holds 200 pixels. So 3.5 cm at 200 DPI is 3.5 / 2.54 x 200, which is 276 pixels.

When a form gives pixels, use pixels. When it gives centimetres, choose the DPI it mentions, or 200 if it says nothing, and enter the centimetres.

Why the frame changes shape

If you ask for 200 x 230 px but your photo is a wide landscape, something has to give. Instead of squeezing the photo, the frame takes the shape you asked for and you drag it over the part you want. Under Advanced you can also let the frame go past the edges of the photo and fill the gap with a colour.

Questions people ask

How do I resize a photo to 3.5 x 4.5 cm?

Open Dimensions, choose Centimetres as the unit, pick the DPI your form mentions (200 is common, 300 for printing), and type 3.5 and 4.5. The frame changes to that shape so nothing gets squashed.

What DPI should I choose?

If the form says a DPI, use that. For online forms the pixel numbers are what count; DPI only matters when you give the size in centimetres or inches. For printing passport photos, 300 DPI is the usual choice.

Will resizing stretch my photo?

No. If the new shape is different from the photo, the crop frame takes the new shape and you choose which part to keep. The tool never stretches or squashes.

Can I make a small image bigger?

Yes, but it will look soft, because new detail cannot be invented. The tool warns you when it has to enlarge.

Related tools