Em vs Pixel
UNIT COMPARISON
Relative to parent font size (default 16px)
CSS reference pixel at 96 DPI
HOW THEY RELATE
1 em = 16.0000 px
1 px = 0.062500 em
REFERENCE TABLE
| Em (em) | Pixel (px) |
|---|---|
| 1 em | 16 px |
| 5 em | 80 px |
| 10 em | 160 px |
| 25 em | 400 px |
| 50 em | 800 px |
| 100 em | 1,600 px |
| 250 em | 4,000 px |
| 500 em | 8,000 px |
| 1,000 em | 16,000 px |
FAQ
What is the difference between Em and Pixel?
Em (em) and Pixel (px) are both units of typography. 1 em = 16.0000 px, and 1 px = 0.062500 em.
Which is bigger, Em or Pixel?
1 Em equals 16.0000 Pixel. So Em is the larger unit.
How do I convert Em to Pixel?
Multiply the value in Em by 16.0000. 1 em = 16.0000 px.
Glossary
-
Point (Typography)
A unit of type size. The desktop publishing point equals 1/72 of an inch.
-
Pixel
A pixel (picture element) is the smallest individually addressable point of color on a digital display or in a digital image.
-
DPI & PPI
DPI (dots per inch) measures print output resolution; PPI (pixels per inch) measures screen display resolution—both describe spatial density of image elements.
-
Em
The em is a relative typographic unit equal to the current element's font size; in a 16 px context, 1 em equals 16 px.
-
Pica
The pica is a typographic unit equal to 12 points or exactly 1/6 of an inch (approximately 4.233 mm), used primarily to measure column widths and other layout dimensions.