CSS Pixels to Light Years: the quick answer
To convert CSS pixels to light years, multiply the value by 2.79665 × 10⁻²⁰. To go the other way, multiply light years by 3.57571 × 10¹⁹ to get CSS pixels.
To convert CSS pixels to light years, multiply the value by 2.79665 × 10⁻²⁰. To go the other way, multiply light years by 3.57571 × 10¹⁹ to get CSS pixels.
| CSS Pixels (px) | Light Years (ly) |
|---|---|
| 1 px | 2.79665 × 10⁻²⁰ ly |
| 5 px | 1.39832 × 10⁻¹⁹ ly |
| 10 px | 2.79665 × 10⁻¹⁹ ly |
| 25 px | 6.99162 × 10⁻¹⁹ ly |
| 50 px | 1.39832 × 10⁻¹⁸ ly |
| 100 px | 2.79665 × 10⁻¹⁸ ly |
| 250 px | 6.99162 × 10⁻¹⁸ ly |
| 500 px | 1.39832 × 10⁻¹⁷ ly |
| 1,000 px | 2.79665 × 10⁻¹⁷ ly |
| 2,500 px | 6.99162 × 10⁻¹⁷ ly |
| 5,000 px | 1.39832 × 10⁻¹⁶ ly |
| 10,000 px | 2.79665 × 10⁻¹⁶ ly |
| 100,000 px | 2.79665 × 10⁻¹⁵ ly |
| 1,000,000 px | 2.79665 × 10⁻¹⁴ ly |
25 px × 2.79665 × 10⁻²⁰ = 6.99162 × 10⁻¹⁹ ly
Try this example →250 px × 2.79665 × 10⁻²⁰ = 6.99162 × 10⁻¹⁸ ly
Try this example →CSS pixel (px). A CSS pixel is defined as 1/96 of an inch (about 0.2646 mm) and is used in screen layouts.
Light year (ly). A light year is the distance light travels in one year, about 9.46 trillion kilometers.
There are 2.79665 × 10⁻²⁰ light years in one CSS pixel.
Multiply the number of CSS pixels by 2.79665 × 10⁻²⁰. For example, 10 CSS pixels equal 2.79665 × 10⁻¹⁹ light years.
One light year equals 3.57571 × 10¹⁹ CSS pixels.
2.79665 × 10⁻¹⁷ light years. Other common values: 100 CSS pixels = 2.79665 × 10⁻¹⁸ light years and 10,000 CSS pixels = 2.79665 × 10⁻¹⁶ light years.