Formula
px = in × 96
7in = 672px. CSS defines this ratio as fixed.
Ninety-six CSS pixels to the inch, always.
Converter
—
in to px conversion table
| in | px | Rounded |
|---|---|---|
| 0.25in | 24px | 24px |
| 0.5in | 48px | 48px |
| 0.75in | 72px | 72px |
| 1in | 96px | 96px |
| 1.5in | 144px | 144px |
| 2in | 192px | 192px |
| 2.5in | 240px | 240px |
| 3in | 288px | 288px |
| 4in | 384px | 384px |
| 5in | 480px | 480px |
| 6in | 576px | 576px |
| 7in | 672px | 672px |
| 8in | 768px | 768px |
| 8.5in | 816px | 816px |
| 10in | 960px | 960px |
| 11in | 1056px | 1056px |
| 12in | 1152px | 1152px |
| 14in | 1344px | 1344px |
| 16in | 1536px | 1536px |
| 17in | 1632px | 1632px |
| 20in | 1920px | 1920px |
| 24in | 2304px | 2304px |
Questions
How do I convert in to px?
px = in × 96. So 7in = 672px.
Is the in to px 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 px back to in?
Invert the formula, or use the px to in 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.