Unit-To-Unit Pixels conversion www.cupandgear.com

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

Which inch are you converting to?

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.

The answer to "how many inches is this many pixels" depends on what the pixels are. In CSS, one inch is defined as 96 pixels, so 192 px is 2 inches and 960 px is 10 inches, whatever the screen. For an image file or a screen, the number of pixels per inch (ppi) varies, and the formula is inches = pixels ÷ ppi.

That is why a picture 1,200 pixels wide is 12.5 CSS inches, but prints at 4 inches wide if you print it at 300 pixels per inch. The pixel count is a fixed property of the image; the physical size depends on the density you choose when you display or print it.

Print sizes and pixel dimensions

For print, 300 pixels per inch is the standard for photographs and brochures, and 150 ppi is acceptable for large posters viewed from a distance. A 4 × 6 inch photo at 300 ppi needs 1,200 × 1,800 px, an 8 × 10 print needs 2,400 × 3,000 px, and a full A4 page (8.27 × 11.69 in) needs about 2,480 × 3,508 px. A US Letter page at 300 ppi is 2,550 × 3,300 px.

If an image has fewer pixels than the print size requires, either the printer scales it up and it looks soft, or you must lower the ppi. A 1,200 px wide image printed at 8 inches wide has only 150 ppi, adequate for a poster but poor for a close-up print.

Screen density

Pixel density, in ppi, depends on screen size and resolution: ppi = √(width² + height²) ÷ diagonal. A 24 inch 1080p monitor has about 92 ppi, a 27 inch 4K monitor has 163 ppi and a 13.3 inch laptop at 2560 × 1600 has 227 ppi. On the 4K monitor, a 1,920 px wide window would measure about 11.8 physical inches, but on the 92 ppi monitor it would be 20.9 inches.

Operating systems hide these differences with scaling. A laptop at 227 ppi runs at 2× scaling, so a CSS inch (96 px) still comes out close to a physical inch, which is why web layouts hold their proportions.

Web design and images

In web design, you can ignore the ppi of the image and choose sizes in CSS pixels, but for sharpness on high-density screens, supply images at 2× or 3× the CSS size. A 600 CSS px wide image should be 1,200 px wide for a 2× display. In print layouts, convert CSS pixels to inches by dividing by 96, then use inches or millimetres for the paper size.

Working out pixel dimensions for any print size

To prepare an image for print, multiply the size in inches by the resolution in pixels per inch. A 24 × 36 inch poster at 150 ppi needs 3,600 × 5,400 pixels, an 11 × 14 inch print at 300 ppi needs 3,300 × 4,200 pixels, and a 5 × 7 inch print at 300 ppi needs 1,500 × 2,100 pixels. Most photo printers and labs publish the pixel dimensions they recommend for each size.

If your image is smaller than required, do not simply scale it up in software, as that adds no detail. Instead, choose a smaller print size or accept a lower resolution. Prints viewed from a distance, such as banners and billboards, can use much lower ppi, sometimes 30 to 100, because the viewer is far away.

Pixels to inches at 96 ppi (CSS)
SituationFromTo
Icon48 px0.5 in
Small button96 px1 in
Phone width360 px3.75 in
Tablet width768 px8 in
Laptop width1,366 px14.23 in
Full HD width1,920 px20 in

Mental-math shortcut and common mistakes

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

A CSS inch is not a measured inch on the glass, because browsers scale CSS pixels to the device.

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 · Unit conversion formulas by category · Where unit conversions come up in daily life

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.
How many pixels are in an inch?
In CSS, there are 96 pixels in an inch. For images and screens, it depends on the pixels per inch (ppi).
How many pixels do I need for a 4×6 print?
At 300 ppi, a 4 × 6 inch print needs 1,200 × 1,800 pixels.
How do I calculate ppi?
Divide the diagonal in pixels by the diagonal in inches, for example √(3840² + 2160²) ÷ 27 = 163 ppi.