Pixels, CM, Inches and DPI Explained Simply (With Conversion Formulas)
Why does an official passport guideline specify "3.5 × 4.5 cm", an online portal require "413 × 531 pixels", and a printing lab demand "300 DPI"? Demystify the mathematical bridge connecting physical real-world measurements to digital screen matrices with clear, step-by-step formulas and zero confusion.
Need to Convert Units Instantly?
Our Image Resizer automatically computes pixel dimensions from centimeters, millimeters, or inches at any target DPI. Lock aspect ratio, format in JPG, and download for free.
Launch Free Image Resizer →1. The Unit Puzzle: Physical Reality vs. Digital Pixels
When filling out an official recruitment or passport form, applicants encounter instructions written in completely disparate measurement systems:
- The Pakistan Directorate General of Immigration & Passports (DGIP) specifies: "Photo size must be exactly 35 × 45 mm."
- The US Department of State DS-160 visa form instructs: "Photograph dimensions must be 2 × 2 inches (51 × 51 mm)."
- The Staff Selection Commission (SSC) portal requires: "Upload a JPEG image measuring exactly 100 pixels wide by 120 pixels high."
- The Union Public Service Commission (UPSC) portal specifies: "Image must be 350 × 350 pixels at 300 DPI."
How do centimeters and inches relate to pixels? The fundamental concept to grasp is that pixels have no fixed physical size. A digital image measuring 1000 pixels wide could measure 3 inches across on a high-density smartphone display, 10 inches across on an old desktop monitor, or 30 feet wide when projected onto a cinema screen!
To anchor floating digital pixels to the tangible physical universe of centimeters, paper sheets, and rulers, we require a conversion factor: DPI (Dots Per Inch).
2. What Is DPI / PPI Really? (Spatial Dot Density)
DPI stands for Dots Per Inch. Historically derived from the printing press and commercial phototypesetters, it describes the number of individual microscopic ink dots a physical printer sprays along a linear inch (2.54 centimeters) of paper.
In digital imaging and computer monitor architecture, the technically precise term is PPI (Pixels Per Inch), which denotes the number of discrete red-green-blue (RGB) light-emitting diode subpixel triplets manufactured along one linear inch of display screen.
In the context of competitive exam notifications and online passport tools, DPI and PPI are used synonymously to indicate raster resolution density. DPI answers the critical question: "How densely packed should our pixels be when printed onto real paper?"
3. The Universal Mathematical Conversion Formulas
All dimension calculations in digital graphic design and web development are governed by four straightforward mathematical formulas based on the international imperial-metric definition: 1 Inch = 2.54 Centimeters = 25.4 Millimeters.
Formula 1: Inches to Pixels
Multiply the physical length in inches directly by the desired dots-per-inch density.
Formula 2: Centimeters to Pixels
Divide centimeters by 2.54 to convert to inches, then multiply by target DPI.
Formula 3: Millimeters to Pixels
Divide millimeters by 25.4 to convert to inches, then multiply by target DPI.
Formula 4: Pixels to Physical Centimeters
Divide digital pixels by DPI to get inches, then multiply by 2.54 to get printed centimeters.
4. Step-by-Step Practical Calculations
Let us apply these formulas to the two most ubiquitous document photography requirements across Pakistan and India:
Calculation Example 1: The 3.5 × 4.5 CM Passport Photo at 300 DPI
Government instructions for Pakistan passports (DGIP), Indian passports (PSK), and university admit cards specify 3.5 cm width by 4.5 cm height at 300 DPI.
Width_Inches = 3.5 / 2.54 = 1.3779527 inches
Width_Pixels = 1.3779527 × 300 = 413.385 → 413 Pixels
// Calculating Height:
Height_Inches = 4.5 / 2.54 = 1.7716535 inches
Height_Pixels = 1.7716535 × 300 = 531.496 → 531 Pixels
This is why every official application portal requiring a 3.5×4.5 cm photo demands 413 × 531 pixels!
Calculation Example 2: The 2 × 2 Inch US Visa / OCI Photo at 300 DPI
The US Department of State requires a square 2×2 inch photo:
Height_Pixels = 2.0 inches × 300 DPI = 600 Pixels
For high-definition archival scanning at 600 DPI, the calculation doubles: 2.0 × 600 = 1200 × 1200 pixels.
5. Why 72 DPI Fails on Paper: The Biology of Human Vision
A frequent source of bewilderment for students is this: "My photo looks razor-sharp on my smartphone screen, but when the exam authority printed my admit card, my face looked grainy, pixelated, and blurry. Why?"
The explanation lies in the difference between screen viewing vs. physical printing physics:
- The 72 DPI Screen Illusion: Computer monitors historically display around 72 to 96 pixels per linear inch. A 3.5×4.5 cm photo at 72 DPI measures only
99 × 128 pixels. On a mobile phone screen, backlit illuminated pixels create an illusion of crispness because the screen itself is small. - The 300 DPI Print Reality: When that 99×128 pixel image is sent to an office laser printer, the printer must stretch those 99 pixels across 3.5 centimeters of paper. The printer has only
99 / 1.38 = 71 dots per inchto work with. Individual pixels become clearly visible blocks (0.35 mm wide each), producing severe pixelation! - The Human Visual Acuity Limit: At a standard reading distance of 12 inches (30 cm), human eye foveal vision can resolve details down to approximately 1/300th of an inch. At 300 DPI, individual ink dots measure a microscopic 0.08 mm—exceeding human visual acuity and creating a flawless, continuous photographic tone.
6. Master Conversion Reference Chart (10 Standard Formats)
Bookmark this definitive cheat sheet for every official document size calculated across standard resolutions:
| Document Type | Metric Size | Inch Size | Pixels @ 300 DPI (Print) | Pixels @ 72 DPI (Web) |
|---|---|---|---|---|
| Passport (Pak / India / UK) | 3.5 × 4.5 cm | 1.38 × 1.77 in | 413 × 531 px | 99 × 128 px |
| US Visa / DS-160 / OCI | 5.1 × 5.1 cm | 2.00 × 2.00 in | 600 × 600 px | 144 × 144 px |
| Schengen Visa (Europe) | 3.5 × 4.5 cm | 1.38 × 1.77 in | 413 × 531 px | 99 × 128 px |
| Exam Signature (SSC / SBI) | 3.5 × 1.5 cm | 1.38 × 0.59 in | 413 × 177 px | 140 × 60 px (Fixed) |
| Thumbprint (IBPS / Postal) | 3.0 × 3.0 cm | 1.18 × 1.18 in | 354 × 354 px | 85 × 85 px |
| CNIC / Identity Card (Full) | 8.56 × 5.40 cm | 3.37 × 2.13 in | 1011 × 638 px | 243 × 153 px |
| ISO A4 Document Page | 21.0 × 29.7 cm | 8.27 × 11.69 in | 2480 × 3508 px | 595 × 842 px |
| 4×6 Photo Print Card | 10.2 × 15.2 cm | 4.00 × 6.00 in | 1200 × 1800 px | 288 × 432 px |
7. How to Convert & Resize Effortlessly with Pagla Tool
You never have to perform manual algebraic conversions by hand on exam day. Pagla Tool provides purpose-built, free client-side calculators:
- Need Exact Passport Dimensions? Use the Passport Size Photo Maker. Choose preset
3.5x4.5 cm (300 DPI)or2x2 inch. The tool automatically handles all coordinate cropping and pixel calculations. - Need Custom Units (CM, Inches, Percent)? Open the Image Resizer. Select your unit (Pixels, Centimeters, Inches, or Percentage), enter your target DPI (e.g. 300), and watch the pixel counts calculate dynamically in real time.
- Need File Weight Optimization? Once resized, if your form imposes a strict kilobyte ceiling, use our 20KB or 50KB compressors to lock file size safely below the portal limit.
8. Frequently Asked Questions
What is the exact mathematical formula to convert centimeters to pixels?
The universal formula is: Pixels = (Centimeters / 2.54) * DPI. For instance, to calculate the width of an official 3.5 cm passport photo at standard 300 DPI print density: (3.5 / 2.54) * 300 = 1.37795 * 300 = 413.38 pixels, rounded to 413 pixels.
Why is 300 DPI considered the universal standard for physical printing?
At a normal reading distance of 10 to 12 inches (25 to 30 cm), the human eye has an angular resolution limit of approximately 1 arcminute (1/60th of a degree). This optical threshold corresponds to approximately 300 distinct cycles or dots per linear inch. At 300 DPI (90,000 dots per square inch), individual ink droplets blend into continuous photographic tone, making pixelation invisible to the naked human eye.
Does changing the DPI of an image change its file size?
Changing only the DPI metadata header inside an existing JPEG or PNG without resampling does not change the file size or pixel dimensions. If an image is 1000x1000 pixels, it remains 1,000,000 pixels whether labeled as 72 DPI or 300 DPI. However, if you resample an image to maintain a physical size (e.g., printing a 4x4 inch photo at 300 DPI instead of 72 DPI), the pixel count increases from 288x288 px to 1200x1200 px, dramatically increasing the file size.
What is the difference between DPI and PPI?
PPI (Pixels Per Inch) refers to digital display screens and raster sensors, describing how many digital pixel elements exist per linear inch. DPI (Dots Per Inch) refers to physical printing technology, describing how many physical droplets of cyan, magenta, yellow, or black ink a printhead sprays per inch. In web development and government exam instructions, the terms are frequently used interchangeably to mean raster density.
How many pixels is a 2x2 inch passport photo?
At standard 300 DPI, a 2x2 inch photo is exactly 600x600 pixels (2 inches * 300 DPI = 600 px). At high-definition 600 DPI (used by some passport scanning systems), a 2x2 inch photo equals 1200x1200 pixels.
9. Conclusion & Key Takeaways
Understanding the mathematical relationship between physical units (centimeters, inches) and digital raster units (pixels) transforms digital document preparation from a guessing game into exact science. Remember the golden rule:
The Golden Imaging Axiom:
Pixels = (Centimeters / 2.54) × DPI
At 300 DPI: Multiply Centimeters by 118.11 to get Pixels.
At 300 DPI: Multiply Inches by 300 to get Pixels.