Toolman

Convert in to px

At the browser default root font size of 16 px, 1in = 96px. Change the base below if your project uses a different root size.

Formula

px = in × 96
in = px × 0.010417

Both units are absolute in CSS, so this ratio never changes regardless of font size or user settings.

IN to PX conversion table

inpx
8in768px
10in960px
12in1152px
14in1344px
16in1536px
18in1728px
20in1920px
24in2304px
28in2688px
32in3072px
36in3456px
40in3840px
48in4608px
56in5376px
64in6144px
72in6912px
80in7680px
96in9216px
128in12288px

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.

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.

Which unit should you use?

PropertyRecommended unitWhy
Font sizeremScales with the user's browser font-size preference, which px ignores — an accessibility requirement.
Padding and marginrem or emrem for a consistent global rhythm; em when the spacing should track the component's own text size.
Borders and hairlinespxYou almost always want exactly one crisp pixel, not a value that scales.
Media query breakpointsemHistorically the most reliable across browsers when the user zooms.
Print stylesheetspt, cm, mmThese map to real physical measurements on paper.

Frequently asked questions

What is 16in in px?

16in equals 1536px at a 16 px root font size.

How do I convert in to px?

Multiply the in value by 96. Going the other way, multiply the px value by 0.010417.

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?

It 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.

Related CSS unit conversions

All CSS unit converters · All converters