How it works
A pixel has no fixed physical size, so you must choose the pixels per inch. Divide the pixel count by the PPI to get inches. CSS defines 96 pixels to the inch for web layout, and print often uses 300 PPI. Change the PPI to match your screen or file.
Formula
pixels = inches * ppi
cm = inches * 2.54
Sources
Example
1,920 px at 96 ppi = 1,920/96 = 20 in = 50.80 cm. Check: 20 x 96 = 1920 px. At 300 ppi: 6.4 in.
Frequently asked questions
How many pixels in an inch?
It depends on the PPI; CSS uses 96 and print often uses 300.
How do I convert inches to pixels?
Multiply by the PPI.
Is PPI the same as DPI?
Often used interchangeably; PPI is for screens, DPI for printers.
Where do I find my PPI?
In your screen specs, or the pixel-density-ppi calculator on this site.