Miles to Pixels (CSS) (mi to px)

1 mile equals 6,082,560 pixels (CSS) exactly.

1 mile = 6,082,560 pixels (CSS)

How to convert miles to pixels (CSS)

To convert miles to pixels (CSS), multiply the number of miles by 6,082,560. This factor is exact. To go the other way, multiply pixels (CSS) by 1.644044613×10⁻⁷ (rounded).

pixels (CSS) = miles × 6,082,560

Example: 10 miles = 60,825,600 pixels (CSS).

About these units

Mile (mi)

US & ImperialCurrent unit

5,280 feet or 1,760 yards, exactly 1,609.344 meters. This is the statute (international) mile used on US and UK roads.

A thousand paces gave the mile its name. It descends from the Latin mille passus, the Roman mile, by way of Old English mil and Middle English myle. For centuries after Rome, miles of many lengths coexisted; a sixteenth-century Mercator map, for example, shows small, medium and large Flemish miles on a single scale bar. The English statute mile was fixed by an Act of Parliament under Elizabeth I in 1593, which declared that a mile contains eight furlongs, or 5,280 feet.

The 1959 international yard and pound agreement made that mile exactly 1,609.344 meters. A slightly longer US survey mile, about 1,609.347 meters, lingered in American land surveys and was slated for retirement from 1 January 2023. Today the mile is the road unit of the United Kingdom, the United States, Liberia and Myanmar, along with several territories such as the Bahamas, Belize, Guam and the US Virgin Islands. In Canada it survives chiefly in rail transport and horse racing.

1 mile = 1,609.344 meters (exactly).

Sources: Wikipedia: Mile; Wikipedia: Foot (unit); NIST Guide to the SI, Appendix B.8: conversion factors

Pixel (CSS) (px)

Typography & screenCurrent unit

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.

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.

1 pixel (CSS) = 0.0002645833333 meters (approximately).

Sources: W3C: CSS Values and Units Module Level 3, absolute lengths; Wikipedia: Pixel

Related conversions

See all length units.