8px in em · 16px root
0.5 em
em = px ÷ parent font size — shown here at the browser default root font size of 16px.
8px at every root font size
| Root font size | 8px equals | CSS |
|---|---|---|
| 10px | 0.8em | font-size: 0.8em; |
| 12px | 0.66667em | font-size: 0.6667em; |
| 14px | 0.57143em | font-size: 0.5714em; |
| 16px default | 0.5em | font-size: 0.5em; |
| 18px | 0.44444em | font-size: 0.4444em; |
| 20px | 0.4em | font-size: 0.4em; |
Converter
—
Nearby values
Questions
What is 8px in em?
8px = 0.5em at the browser default root font size of 16px. em = px ÷ parent font size.
What is 8px in em at a different root size?
At 10px root: 0.8em. At 12px root: 0.6667em. At 14px root: 0.5714em. At 16px root: 0.5em. At 18px root: 0.4444em. At 20px root: 0.4em.
How is 8px calculated?
em = px ÷ parent font size. Here: 8 ÷ 16 = 0.5.
All px values
Computed from the CSS Values and Units specification. See the full px to em table.