20px to rem
20 pixels expressed in rem, the unit that scales when a user changes their browser's font size.
20px=1.25rem
20 ÷ 16 = 1.25 — rem is just pixels divided by the root font size, which defaults to 16px.
| root size | 20px in rem |
|---|---|
| 14px | 1.4286rem |
| 16px | 1.25rem |
| 18px | 1.1111rem |
| 20px | 1rem |
Different value? Use the converter.