Pixel (CSS) (px)
The CSS reference pixel: exactly 1/96 inch, or 0.75 point. Real screen pixels vary in size.
What is a CSS pixel?
- Symbol
- px
- Quantity
- Typography
- Unit system
- other
- Definition
- The CSS reference pixel: exactly 1/96 inch, or 0.75 point. Real screen pixels vary in size.
- Exact
- Yes, the value is exact by definition
- Source
- W3C CSS Values and Units Module Level 3 (absolute lengths)
Common applications
Used for sizes and layouts in web design and app interfaces.
Pixel (CSS) in other typography units
- 1 px ≈ 0.2645833333 mmPixel (CSS) to Millimeter converter
- 1 px ≈ 0.02645833333 cmCentimeter
- 1 px ≈ 0.0002645833333 mMeter
- 1 px ≈ 0.01041666667 inInch
- 1 px = 0.75 ptPixel (CSS) to Point (desktop publishing) converter
- 1 px = 0.0625 pcPica (desktop publishing)
- 1 px ≈ 1.058333333 QQuarter-millimeter (Q)
- 1 px ≈ 0.7528125075 pt (printer's)Point (printer's, traditional)
- 1 px ≈ 0.06273437563 pc (printer's)Pica (printer's, traditional)
Pixel (CSS) quick reference
| Pixel (CSS) | Millimeter | Point (desktop publishing) | Centimeter |
|---|---|---|---|
| 1 px | ≈ 0.2645833333 mm | = 0.75 pt | ≈ 0.02645833333 cm |
| 10 px | ≈ 2.645833333 mm | = 7.5 pt | ≈ 0.2645833333 cm |
| 100 px | ≈ 26.45833333 mm | = 75 pt | ≈ 2.645833333 cm |
| 1000 px | ≈ 264.5833333 mm | = 750 pt | ≈ 26.45833333 cm |
Where the CSS pixel fits
The next smaller typography unit is the quarter-millimeter (Q). 1 px ≈ 1.058333333 Q, and 1 Q ≈ 0.9448818898 px.
The next larger typography unit is the printer's point (pt (printer's)). 1 px ≈ 0.7528125075 pt (printer's), and 1 pt (printer's) = 1.328352 px.
Frequently asked questions
- How many millimeters are in one CSS pixel?
- One CSS pixel ≈ 0.2645833333 mm (millimeters).
- How many points are in one CSS pixel?
- One CSS pixel = 0.75 pt (points).
- How many centimeters are in one CSS pixel?
- One CSS pixel ≈ 0.02645833333 cm (centimeters).