EM to PX Converter
Convert an em value to pixels using the parent font size.
Enter your details below.
How to use
- Enter the em value.
- Enter the parent font size in pixels.
- Press the button to see the pixel value.
About this tool
An em is relative to the font size of the element's parent, so the same em value can mean different pixels in different parts of a page. This tool multiplies an em value by the parent font size to give pixels. Nested elements compound, since each level's em is based on its own parent, so for deeply nested text you need the computed parent size at that level, not the root size.
Frequently asked questions
What is the difference between em and rem?
Em is relative to the parent element's font size, while rem is relative to the root element's font size. That makes rem more predictable across a page.
Why do nested em values grow unexpectedly?
Because each nested level multiplies again. An em inside an em compounds, so a value that looks small at the top can become large several levels down.