Convert px to in
1px = 0.010417in. Both are absolute CSS units, so this ratio is fixed — the root font size does not affect it.
Guide & FAQFormula · PX to IN conversion table · About px · About in · Which unit should you use? · Frequently asked questions
Formula
in = px × 0.010417
px = in × 96
Both units are absolute in CSS, so this ratio never changes regardless of font size or user settings.
PX to IN conversion table
| px | in |
|---|---|
| 1px | 0.010417in |
| 10px | 0.104167in |
| 50px | 0.520833in |
| 100px | 1.0417in |
| 150px | 1.5625in |
| 200px | 2.0833in |
| 250px | 2.6042in |
| 300px | 3.125in |
| 400px | 4.1667in |
| 500px | 5.2083in |
| 600px | 6.25in |
| 800px | 8.3333in |
| 1000px | 10.4167in |
| 1080px | 11.25in |
| 1200px | 12.5in |
| 1500px | 15.625in |
| 1920px | 20in |
About px
The CSS pixel is the reference unit of the web. It is not a physical device pixel — it is an angular measure standardised at 1/96th of an inch, which the browser scales for device pixel ratio and zoom.
About in
CSS defines one inch as exactly 96 pixels. On screen this is a nominal measure, not a guarantee of physical size; in print stylesheets it maps to a real inch.
Which unit should you use?
| Property | Recommended unit | Why |
|---|---|---|
| Font size | rem | Scales with the user's browser font-size preference, which px ignores — an accessibility requirement. |
| Padding and margin | rem or em | rem for a consistent global rhythm; em when the spacing should track the component's own text size. |
| Borders and hairlines | px | You almost always want exactly one crisp pixel, not a value that scales. |
| Media query breakpoints | em | Historically the most reliable across browsers when the user zooms. |
| Print stylesheets | pt, cm, mm | These map to real physical measurements on paper. |
Frequently asked questions
What is 16px in in?
16px equals 0.166667in, and that does not change with the font size because both units are absolute.
How do I convert px to in?
Multiply the px value by 0.010417. Going the other way, multiply the in value by 96.
Does browser zoom change the result?
No. Both units are absolute in CSS and keep the same ratio at any zoom level, though the rendered size on screen changes.
Why does CSS use 96 pixels per inch?
The 96 figure is a historical convention from early desktop displays that became the fixed CSS reference. It has nothing to do with your monitor's real pixel density — the browser scales CSS pixels to physical ones for you.