Unit-To-Unit Pixels conversion

PX to Inches

1 CSS pixel = 0.010416667 inches

Exactly 96 CSS pixels to the inch, by definition. The figure is a specification constant, so a "1in" box in CSS is not guaranteed to measure an inch on the glass.

Formula in = px × 0.010416666667

=

Type in either field — the other updates on every keystroke. Need other units? Open the full pixels converter.

PX to Inches — quick reference
CSS pixelInch (96 DPI)
1 px0.010417 in
2 px0.020833 in
3 px0.03125 in
4 px0.041667 in
5 px0.052083 in
10 px0.104167 in
15 px0.15625 in
20 px0.208333 in
25 px0.260417 in
50 px0.520833 in
100 px1.041667 in
500 px5.208333 in
1000 px10.416667 in
Inches to PX — reverse
Inch (96 DPI)CSS pixel
1 in96 px
2 in192 px
3 in288 px
4 in384 px
5 in480 px
10 in960 px
15 in1440 px
20 in1920 px
25 in2400 px
50 in4800 px
100 in9600 px
500 in48000 px
1000 in96000 px

Worked examples

Common values
SituationFromTo
Icon24 px0.25 in
Button height48 px0.5 in
Phone width390 px4.062 in
Tablet width768 px8 in
Laptop width1,440 px15 in
Full HD width1,920 px20 in

Mental-math shortcut

Divide by 96. For a quick estimate, divide by 100, which reads about 4% low.

Where this conversion comes up

Print planning is where this matters. At 300 PPI, a 1800 px wide image prints 6 inches wide, while the same 1800 px is 18.75 CSS inches on a screen.

Common mistakes

A CSS inch is not a measured inch on the glass, because browsers scale CSS pixels to the device. Use PPI, not 96, when working out print size.

Background

The CSS reference pixel is fixed at 1/96 inch. That value was chosen so screens and print share one scale.

Learn more

A CSS pixel is 1/96 of an inch, so divide pixels by 96. For print, resolution matters more: a 1200 px wide image at 300 PPI prints 4 inches wide.

Related guides: Digital and print layout units: px, rem, em, points and DPI

Frequently asked

How many inches are in a CSS pixel?
1 CSS pixel = 0.010416667 inches. In the other direction, 1 inch = 96 CSS pixels.
What is a CSS pixel?
A CSS pixel is a reference unit of 1/96 inch, not a physical device pixel. Browsers scale it by the device pixel ratio, so one CSS pixel may cover four hardware pixels on a 2× display.
What is a inch?
One CSS inch is exactly 96 CSS pixels by definition — a fixed ratio that has nothing to do with the physical size of the screen.
How many inches is 1920 px?
At 96 px per inch it is 20 CSS inches, and printed at 300 PPI it is 6.4 inches.