Pixels to Inches

Convert in either direction between pixels and inches at a density you choose.

px
PPI

Physical length

20 in
Density used
96 PPI

CSS uses 96 reference pixels per inch. Enter the actual screen density or chosen print PPI for a physical measurement.

Worked example

At 300 PPI, a 2400 px image spans 8 inches. At 150 PPI, it spans 16 inches.

How it works

Divide pixels by PPI to get inches. Multiply inches by PPI to get pixels.

What to check

Use the PPI of the output you are planning. A CSS inch is defined as 96 CSS pixels, while the physical size depends on the display or print density.