Pixel (96dpi) to Em (12pt) (Pixel (96dpi) to Em (12pt))
Result
0.0625 Em (12pt)
Formula
Em (12pt) = Pixel (96dpi) × 0.0625
1 Pixel (96dpi) = 0.0625 Em (12pt), and 1 Em (12pt) = 16 Pixel (96dpi).
In CSS and desktop publishing, 1 inch = 72 points = 96 pixels, so 1 px = 0.75 pt. The em is relative to the current font size; this converter assumes a 12 pt base.
Worked examples
- 1 Pixel (96dpi) × 0.0625 = 0.0625 Em (12pt)
- 10 Pixel (96dpi) × 0.0625 = 0.625 Em (12pt)
- 100 Pixel (96dpi) × 0.0625 = 6.25 Em (12pt)
Common mistakes
- CSS pixels are reference units, not physical screen pixels; high-density displays draw several device pixels per CSS pixel.
- An em depends on the font size it is used in. Change the base and every em value changes.
Pixel (96dpi) to Em (12pt) table
| Pixel (96dpi) (Pixel (96dpi)) | Em (12pt) (Em (12pt)) |
|---|---|
| 1 | 0.0625 |
| 2 | 0.125 |
| 5 | 0.3125 |
| 10 | 0.625 |
| 20 | 1.25 |
| 50 | 3.125 |
| 100 | 6.25 |
| 1,000 | 62.5 |
The units
- Pixel (96dpi) (Pixel (96dpi))
- 1 Pixel (96dpi) = 0.75 Point.
- Em (12pt) (Em (12pt))
- 1 Em (12pt) = 12 Point.
Sources for these factors
Last reviewed against these sources. An automated check recomputes every factor from its definition on each build. How we check accuracy