Formula
in = px ÷ 96
16px = 0.1667in. CSS defines this ratio as fixed.
In CSS an inch is defined as exactly 96 px, regardless of what the display actually measures. For physical output size, divide by the real DPI instead.
Converter
—
px to in conversion table
| px | in | Rounded |
|---|---|---|
| 1px | 0.01042in | 0.01in |
| 2px | 0.02083in | 0.02in |
| 4px | 0.04167in | 0.04in |
| 6px | 0.0625in | 0.06in |
| 8px | 0.08333in | 0.08in |
| 10px | 0.10417in | 0.1in |
| 12px | 0.125in | 0.13in |
| 14px | 0.14583in | 0.15in |
| 16px | 0.16667in | 0.17in |
| 18px | 0.1875in | 0.19in |
| 20px | 0.20833in | 0.21in |
| 22px | 0.22917in | 0.23in |
| 24px | 0.25in | 0.25in |
| 28px | 0.29167in | 0.29in |
| 32px | 0.33333in | 0.33in |
| 36px | 0.375in | 0.38in |
| 40px | 0.41667in | 0.42in |
| 44px | 0.45833in | 0.46in |
| 48px | 0.5in | 0.5in |
| 56px | 0.58333in | 0.58in |
| 64px | 0.66667in | 0.67in |
| 72px | 0.75in | 0.75in |
| 80px | 0.83333in | 0.83in |
| 96px | 1in | 1in |
| 112px | 1.16667in | 1.17in |
| 128px | 1.33333in | 1.33in |
| 144px | 1.5in | 1.5in |
| 160px | 1.66667in | 1.67in |
| 192px | 2in | 2in |
| 224px | 2.33333in | 2.33in |
| 256px | 2.66667in | 2.67in |
| 320px | 3.33333in | 3.33in |
| 384px | 4in | 4in |
| 448px | 4.66667in | 4.67in |
| 512px | 5.33333in | 5.33in |
Questions
How do I convert px to in?
in = px ÷ 96. So 16px = 0.1667in.
Is the px to in conversion exact?
Yes, for CSS. The specification fixes 1in = 96px, which pins every absolute unit to a fixed ratio regardless of the physical display. It is not a physical measurement — a CSS inch on a phone is not an inch of glass. For real-world output size use the DPI calculator instead.
How do I convert in back to px?
Invert the formula, or use the in to px converter.
Other conversions
Conversions follow the CSS Values and Units specification, in which 1in is defined as exactly 96px. Values are computed, not tabulated by hand.