20px in em · 16px root
1.25 em
em = px ÷ parent font size — shown here at the browser default root font size of 16px.
20px at every root font size
| Root font size | 20px equals | CSS |
|---|---|---|
| 10px | 2em | font-size: 2em; |
| 12px | 1.66667em | font-size: 1.6667em; |
| 14px | 1.42857em | font-size: 1.4286em; |
| 16px default | 1.25em | font-size: 1.25em; |
| 18px | 1.11111em | font-size: 1.1111em; |
| 20px | 1em | font-size: 1em; |
Converter
—
Nearby values
Questions
What is 20px in em?
20px = 1.25em at the browser default root font size of 16px. em = px ÷ parent font size.
What is 20px in em at a different root size?
At 10px root: 2em. At 12px root: 1.6667em. At 14px root: 1.4286em. At 16px root: 1.25em. At 18px root: 1.1111em. At 20px root: 1em.
How is 20px calculated?
em = px ÷ parent font size. Here: 20 ÷ 16 = 1.25.
All px values
Computed from the CSS Values and Units specification. See the full px to em table.