How Physical Units (CM, MM, Inches) Convert to Digital Pixels
Understanding Pixels vs. Centimeters & DPI Resolution
Digital screens display images using discrete dots called pixels (px), whereas passport agencies, exam boards, and print shops specify dimensions in physical units like centimeters (cm), millimeters (mm), or inches (in). Bridging the gap between physical measurements and digital pixels requires a density factor known as DPI (Dots Per Inch) or PPI (Pixels Per Inch). For example, a 3.5 × 4.5 cm passport photograph scanned at 300 DPI requires far more pixels than the same physical size viewed on a 96 DPI computer monitor. PureWebKits performs this conversion locally in your browser using bicubic canvas interpolation so your resized photos stay crisp, proportional, and completely private.
How to Resize an Image in 3 Easy Steps
- Upload Your Photo: Drag and drop any
.jpg,.png, or.webpimage into the box above. - Select Units & Dimensions: Choose Pixels (px), Centimeters (cm), Millimeters (mm), or Inches (in), set your DPI, and enter your desired width or height (or click a quick preset).
- Pick Format & Download: Choose .JPEG, .PNG, or .WEBP, verify the live preview and file size, and click Download Resized Image.
Centimeters & Inches to Pixels Conversion Formula + Worked Example
Because 1 inch = 2.54 centimeters = 25.4 millimeters, our resizer calculates exact pixel dimensions from any physical unit using these standard formulas:
Worked Example: Suppose an online visa or exam application requires a 3.5 cm × 4.5 cm photograph at 300 DPI, and your camera photo is currently 3000 × 4000 pixels.
Target Width in pixels = (3.5 × 300) / 2.54 = 1050 / 2.54 = 413 pixels.
Target Height in pixels = (4.5 × 300) / 2.54 = 1350 / 2.54 = 531 pixels.
Entering 3.5 cm × 4.5 cm at 300 DPI automatically scales your photo to 413 × 531 px, ready for immediate upload or printing.