PX to EM Converter
Enter pixel values and get the equivalent EM values instantly. Set the parent element font size — default is 16px — and convert single values or a bulk list at once.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is PX to EM Converter?
EM is a CSS unit relative to the current element's parent font size. Unlike REM (which is always relative to the root), EM cascades — a child element inheriting 1.5em from a parent already at 1.2em gets 1.8em of the root size.
The formula is: **em = px ÷ parent font size**. So 24px at a 16px parent = 1.5em. Use EM for padding, margins, and line-heights when you want them to scale proportionally with the element's own font size.
How to Use PX to EM Converter
Enter one or more px values in the input box (comma or newline separated)
Set the parent element's font size if different from 16px
Copy individual results or the full output
Use the reference table for common px to em lookups
Common Use Cases
- Front-end developers converting design specs from px to EM for scalable typography.
- Developers setting padding and margin in EM so they scale with the element font size.
- Teams migrating legacy px stylesheets to relative units.
- Students learning the difference between EM and REM in CSS.
- Designers handing off measurements in px that developers need as EM values.
- Developers debugging EM cascading issues by checking the pixel equivalent.
Example Input and Output
Convert common design sizes from px to EM at the default 16px parent size.
12
16
24
3212px → 0.75em
16px → 1em
24px → 1.5em
32px → 2emPrivacy
All conversions run in your browser. No data is sent to any server.

