What does this tool calculate?
Convert CSS pixels to em units or em units to pixels using a chosen base font size.
Convert CSS pixels to em units or em units to pixels using a chosen base font size.
Complete the fields below, then select Calculate.
How to use PX to EM Converter, plus the formulas and logic behind the results.
Convert CSS pixels to em units or em units to pixels using a chosen base font size. It provides an immediate educational result using the definitions shown below.
em = px ÷ base font pxpx = em × base font pxThe value is divided or multiplied by the supplied CSS base font size.
An em is relative to the relevant element’s computed font size; inherited CSS can change the effective base.
Common questions about this conversion and how to interpret the result.
Convert CSS pixels to em units or em units to pixels using a chosen base font size.
Complete the input fields, choose the required options, and select Calculate.
em = px ÷ base font px
Calculations use full floating-point precision; displayed values are formatted for readability.
Yes. Numeric fields accept decimal values unless a field specifically represents text.
No. It is an educational estimate; verify critical engineering, billing, health, or safety work independently.