Resize Image Online in Pixels, CM or Inches

Resize in pixels, cm or inches with DPI and KB limit.

This tool lets you resize image files to an exact width and height in pixels, centimetres or inches. It is built for the photo and signature rules in Indian exam and job forms, which often give dimensions like 3.5 cm × 4.5 cm together with a size limit in KB. You can lock the aspect ratio, choose the DPI and set a maximum file size in one step. Your photo is processed in your browser and never uploaded.

How to resize photo in cm, inches or pixels

  1. Choose a photo. The original size in pixels appears below the upload box.
  2. Pick the unit: pixels, centimetres or inches. For cm and inches, choose a DPI (200 is a good default for forms).
  3. Type the width. With Lock aspect ratio on, the height updates automatically. Turn the lock off to enter both values.
  4. Optional: enter a maximum size in KB and choose JPG, PNG or WebP.
  5. Press Resize image and download.

How centimetres become pixels

Screens and image files only know pixels. To turn a physical size into pixels the tool uses DPI, the number of dots per inch:

pixels = centimetres ÷ 2.54 × DPI

At 200 DPI, 3.5 cm becomes 3.5 ÷ 2.54 × 200 ≈ 276 pixels and 4.5 cm becomes about 354 pixels. At 300 DPI the same photo would be 413 × 531 pixels. For inches the formula is simply inches × DPI.

Worked example: change image dimensions for a form

A form asks for a photo of 3.5 cm × 4.5 cm, JPG, maximum 50 KB. Choose cm and 200 DPI, turn off the aspect lock and type 3.5 and 4.5. Enter 50 in the maximum KB box and keep JPG selected. The tool resizes the photo to 276 × 354 pixels and lowers the JPG quality only as much as needed, giving a file of around 35–45 KB. Because the target shape is fixed, crop your photo to roughly the same proportions first so the face is not stretched.

Tips

  • Crop before resizing when you need an exact shape. Resizing with the lock off stretches the image to fit.
  • Downsizing is safe; upsizing is not. Making an image bigger adds pixels but not detail.
  • PNG ignores the KB limit. It is lossless, so pick JPG when a size limit applies.
  • DPI is just a ruler. It changes the pixel count for a given cm size but does not by itself change quality.

Common uses

Resize passport photos and signatures for exam and visa forms, prepare product images with equal dimensions for online shops, make profile pictures with exact pixel sizes, and shrink large photos before emailing them. After resizing, you can fine-tune the file size with the image compressor, or go straight to the 50KB photo page.

Last updated:

Resize Image FAQ

How do I resize image files to centimetres?

Pick cm as the unit, type the width and height, and choose the DPI. The tool converts cm to pixels using pixels = cm / 2.54 x DPI.

What DPI should I choose?

Use 200 DPI for most online forms. Choose 300 DPI only if the form or a print shop asks for it.

What does the aspect ratio lock do?

When it is on, changing the width updates the height automatically so the photo is not stretched.

Can I resize and set a maximum file size together?

Yes. Enter a maximum KB value and the tool lowers the JPG quality after resizing until the file fits.

Will resizing to a bigger size improve quality?

No. Enlarging adds pixels but not detail, so the photo can look soft. Start from the largest original you have.