Pixel Calculator

Convert CM, MM, and Inches to Pixels accurately based on DPI.

72 (Web) 96 (Windows) 150 (Draft) 300 (Print)
3000
Width (px)
×
3000
Height (px)

How to Convert Physical Size to Pixels

Whether you are designing a banner for print or adjusting an image for a website, knowing the correct pixel dimensions is crucial. This calculator helps you convert physical units (centimeters, millimeters, inches) into digital pixels (px) based on the image resolution (DPI/PPI).

What is DPI?

DPI (Dots Per Inch) or PPI (Pixels Per Inch) determines the density of pixels in an image.

Conversion Formulas

If you want to calculate pixels manually, here are the formulas used by designers:

Conversion Formula
Inches to Pixels Pixels = Inches × DPI
CM to Pixels Pixels = (CM × DPI) ÷ 2.54
MM to Pixels Pixels = (MM × DPI) ÷ 25.4

Common Print Resolutions

Use this quick reference guide for common paper sizes at 300 DPI: