2em in px · 16px root
32 px
px = em × parent font size — shown here at the browser default root font size of 16px.
2em at every root font size
| Root font size | 2em equals | CSS |
|---|---|---|
| 10px | 20px | font-size: 20px; |
| 12px | 24px | font-size: 24px; |
| 14px | 28px | font-size: 28px; |
| 16px default | 32px | font-size: 32px; |
| 18px | 36px | font-size: 36px; |
| 20px | 40px | font-size: 40px; |
Converter
—
Nearby values
Questions
What is 2em in px?
2em = 32px at the browser default root font size of 16px. px = em × parent font size.
What is 2em in px at a different root size?
At 10px root: 20px. At 12px root: 24px. At 14px root: 28px. At 16px root: 32px. At 18px root: 36px. At 20px root: 40px.
How is 2em calculated?
px = em × parent font size. Here: 2 × 16 = 32.
All em values
Computed from the CSS Values and Units specification. See the full em to px table.