Convert Inches, Centimeters & Pixels
Convert inches or centimetres to pixels and back using a chosen DPI. Results are shown to four decimal places.
Result:
300.0000 pixels
How to Convert Inches, Centimetres and Pixels
Choose a direction, enter one measurement and a DPI value. The calculator uses 2.54 cm per inch and updates the result as you change valid inputs.
- 1
Choose a direction
Select physical size to pixels, or pixels to physical size.
- 2
Enter the value and unit
Enter a number and choose inches or centimetres. In the reverse direction, enter a pixel count and choose the result unit.
- 3
Set the DPI
Enter a positive DPI value; the default is 300. The result updates automatically and is displayed with four decimal places.
Frequently asked questions
How do I convert inches or centimetres to pixels?
Multiply inches by DPI. For centimetres, divide by 2.54 first, then multiply by DPI. At 300 DPI, 1 inch or 2.54 cm equals 300 pixels.
How do I convert pixels to inches or centimetres?
Divide pixels by DPI to get inches, then multiply inches by 2.54 to get centimetres. At 300 DPI, 600 pixels equals 2 inches or 5.08 cm.
Does changing the DPI here change my image?
No. This calculator only converts numbers. It does not open or edit an image, change its pixel dimensions or write DPI metadata.
Why does the result have decimals?
The calculator rounds both directions to four decimal places. Real image dimensions use whole pixels, so round a fractional pixel result for your intended use. CSS screen pixels are a separate sizing system.