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.
| CSS pixel | Inch (96 DPI) |
|---|---|
| 1 px | 0.010417 in |
| 2 px | 0.020833 in |
| 3 px | 0.03125 in |
| 4 px | 0.041667 in |
| 5 px | 0.052083 in |
| 10 px | 0.104167 in |
| 15 px | 0.15625 in |
| 20 px | 0.208333 in |
| 25 px | 0.260417 in |
| 50 px | 0.520833 in |
| 100 px | 1.041667 in |
| 500 px | 5.208333 in |
| 1000 px | 10.416667 in |
| Inch (96 DPI) | CSS pixel |
|---|---|
| 1 in | 96 px |
| 2 in | 192 px |
| 3 in | 288 px |
| 4 in | 384 px |
| 5 in | 480 px |
| 10 in | 960 px |
| 15 in | 1440 px |
| 20 in | 1920 px |
| 25 in | 2400 px |
| 50 in | 4800 px |
| 100 in | 9600 px |
| 500 in | 48000 px |
| 1000 in | 96000 px |
| Situation | From | To |
|---|---|---|
| Icon | 24 px | 0.25 in |
| Button height | 48 px | 0.5 in |
| Phone width | 390 px | 4.062 in |
| Tablet width | 768 px | 8 in |
| Laptop width | 1,440 px | 15 in |
| Full HD width | 1,920 px | 20 in |
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.
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.
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.
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.
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.
| Situation | From | To |
|---|---|---|
| Icon | 48 px | 0.5 in |
| Small button | 96 px | 1 in |
| Phone width | 360 px | 3.75 in |
| Tablet width | 768 px | 8 in |
| Laptop width | 1,366 px | 14.23 in |
| Full HD width | 1,920 px | 20 in |
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.
The CSS reference pixel is fixed at 1/96 inch. That value was chosen so screens and print share one scale.
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