EM to PX Converter
Converts between em and pixels and shows how em sizes compound.
em in pixels
— px
Share sends a link that reopens these numbers. Copy details pastes the full breakdown as a list.
Pixels in em — em
After nesting — px
The formula
px = em × parent font size nested px = em ^ levels × parent font size
On font-size, em refers to the parent. On other properties, such as padding, it refers to the element’s own font size.
What to watch out for
Use rem when you do not want sizes to multiply as elements nest.
Frequently Asked Questions
How many pixels is 1.2 em?
19.2 px with a 16 px parent.
Why does my nested text grow?
Each level multiplies. Three levels of 1.2 em on a 16 px base give 27.65 px.