Pixel (CSS) (px)
The CSS reference pixel, defined as 1/96 of an inch. Physical screens vary, but browsers use this value to convert pixels to print units.
1 pixel (CSS) = 0.0002645833333 meters (approximately).
About the pixel (CSS)
Pixel is a contraction of picture element, itself built from pix, a 1930s shortening of pictures. The idea is older than the word: Paul Nipkow's 1888 German patent spoke of a Bildpunkt, or picture point, and the phrase picture element appears in US patents filed as early as 1911. Frederic C. Billingsley of the Jet Propulsion Laboratory published pixel in 1965, writing about scanned images from space probes to the Moon and Mars, and said he had learned it from Keith E. McFarland, who reported it was already in use around 1963.
A pixel in a photograph is a sample, not a fixed length, and screens vary widely in size. CSS therefore defines px as an abstract reference pixel of exactly 1/96 inch, based on the visual angle of one pixel on a 96 dpi device held at arm's length. The CSS specification gives that angle as about 0.0213 degrees for a nominal arm's length of 28 inches, which works out to about 0.26 mm. On sharper screens a single CSS pixel spans several device pixels. Earlier CSS versions did not fix the ratio, but too much existing content assumed 96 dpi.
Sources: W3C: CSS Values and Units Module Level 3, absolute lengths; Wikipedia: Pixel
Pixel (CSS) conversion chart
1 pixel (CSS) expressed in every other length unit:
| Unit | 1 pixel (CSS) |
|---|---|
| Meters | 0.0002645833333 |
| Kilometers | 2.645833333×10⁻⁷ |
| Centimeters | 0.02645833333 |
| Millimeters | 0.2645833333 |
| Inches | 0.01041666667 |
| Feet | 0.0008680555556 |
| Yards | 0.0002893518519 |
| Miles | 1.644044613×10⁻⁷ |
| Micrometers | 264.5833333 |
| Nanometers | 264,583.3333 |
| Nautical Miles | 1.428635709×10⁻⁷ |
| Light-years | 2.79664804×10⁻²⁰ |
| Picometers | 264,583,333.3 |
| Femtometers | 264,583,333,333 |
| Decimeters | 0.002645833333 |
| Hectometers | 0.000002645833333 |
| Decameters | 0.00002645833333 |
| Thou | 10.41666667 |
| Points | 0.75 |
| Picas | 0.0625 |
| Twips | 15 |
| Astronomical Units | 1.768630343×10⁻¹⁵ |
| Light-seconds | 8.825550019×10⁻¹³ |
| Light-minutes | 1.470925003×10⁻¹⁴ |
| Light-hours | 2.451541672×10⁻¹⁶ |
| Parsecs | 8.57456187×10⁻²¹ |
| Megaparsecs | 8.57456187×10⁻²⁷ |
| Angstroms | 2,645,833.333 |
| Fathoms | 0.0001446759259 |
| Cable Lengths | 0.000001428635709 |
| Leagues | 5.480148709×10⁻⁸ |
| Nautical Leagues | 4.76211903×10⁻⁸ |
| Furlongs | 0.00000131523569 |
| Chains | 0.0000131523569 |
| Rods | 0.00005260942761 |
| Links | 0.00131523569 |
| Hands | 0.002604166667 |
| Barleycorns | 0.03125 |
| Palms | 0.003472222222 |
| Spans | 0.001157407407 |
| Cubits | 0.0005787037037 |
| Ells | 0.0002314814815 |
| US Survey Feet | 0.0008680538194 |
| US Survey Miles | 1.644041325×10⁻⁷ |
| Stadia | 0.000001378038194 |
| Roman Inches | 0.01075542005 |
| Roman Feet | 0.0008938626126 |
| Roman Cubits | 0.0005959084084 |
| Roman Paces | 0.0001787725225 |
| Roman Stadia | 0.00000143018018 |
| Roman Miles | 1.787725225×10⁻⁷ |
| Roman Leagues | 1.191816817×10⁻⁷ |
| Greek Feet | 0.0008268229167 |
| Royal Cubits | 0.000503968254 |
| Egyptian Palms | 0.003527777778 |
| Egyptian Fingers | 0.01411111111 |
| Khet | 0.00000503968254 |
| Biblical Cubits | 0.0004899691358 |
| Sabbath Days' Journeys | 2.449845679×10⁻⁷ |
| Sun | 0.00873125 |
| Shaku | 0.000873125 |
| Ken | 0.0001455208333 |
| Jō | 0.0000873125 |
| Chō | 0.000002425347222 |
| Ri (Japanese) | 6.737075617×10⁻⁸ |
| Fen (Chinese) | 0.079375 |
| Cun (Chinese) | 0.0079375 |
| Chi (Chinese) | 0.00079375 |
| Zhang (Chinese) | 0.000079375 |
| Li (Chinese) | 5.291666667×10⁻⁷ |
| Vershoks | 0.005952380952 |
| Arshins | 0.0003720238095 |
| Sazhens | 0.0001240079365 |
| Versts | 2.48015873×10⁻⁷ |
| Lignes | 0.1172887333 |
| Pouces | 0.009774061111 |
| Pieds Du Roi | 0.0008145050926 |
| Toises | 0.0001357508488 |
| Lieues | 6.787542438×10⁻⁸ |
| Varas | 0.0003165251027 |
| Leguas | 4.74787654×10⁻⁸ |
| Wa (Thai) | 0.0001322916667 |
| Sen (Thai) | 0.000006614583333 |
| Scandinavian Mil | 2.645833333×10⁻⁸ |
More Typography & screen units
Browse all length units.