LocalPDF

Pixels, CM and DPI Explained: Resize an Image for Any Form

Forms ask for sizes in pixels, cm, mm or inches. Learn how they relate through DPI, convert between them, and resize your image exactly — free and offline.

Quick answer

Pixels measure an image on screen; cm, mm and inches measure it on paper. DPI (dots per inch) links them: pixels = inches × DPI. A 3.5 × 4.5 cm photo at 300 DPI is 413 × 531 pixels. Use Resize image to set the exact size in any unit.

How do pixels and cm relate?

Pixels = inches × DPI, and 1 inch = 2.54 cm. So at 300 DPI, 1 cm ≈ 118 pixels.

Size200 DPI300 DPI
3.5 × 4.5 cm276 × 354 px413 × 531 px
2 × 2 inch400 × 400 px600 × 600 px
4 × 2 cm315 × 157 px472 × 236 px

Which DPI should I use?

  • 300 DPI for printing photos.
  • 200 DPI when a form says so (PAN does, for example).
  • For online-only forms, the pixel size and KB matter more than DPI.

How do I resize to an exact size?

  1. Open Resize image.
  2. Enter width and height and choose the unit: px, cm, mm or inch.
  3. Choose the DPI.
  4. Choose what happens if the shape differs: Crop, Fit or Stretch.
  5. Click Resize and download as JPG or PNG.

Leave height empty to keep the original shape.

Then fit the KB limit

If the form also has a KB limit, finish with Resize image to KB.

Frequently asked questions

Try it now

Resize image — right in your browser.

Free, no sign-up, and your file never leaves your device.

LocalPDF Team

We build free PDF tools that run entirely in your browser, so your documents never leave your device.