Convert CSS em units to pixels based on your base font size. Enter a value and the result appears instantly.

The CSS em unit is relative to the font size of the parent element. If the parent font size is 16px (browser default), then 1em = 16px, 1.5em = 24px, 2em = 32px.
Em units are commonly used in responsive web design for typography, spacing, and layout. Converting to pixels helps understand the actual rendered size.
Unlike rem (which is relative to root), em compounds: if a parent is 1.5em and a child is 1.5em, the child renders at 1.5 × 1.5 = 2.25× the base size.
All calculations run locally in your browser — nothing is sent to any server.
px = em × parent font size. By default, the browser base font size is 16px.
Em compounds through the DOM tree. If body is 16px and a div is 1.5em (24px), a paragraph inside at 1.5em will be 1.5 × 24 = 36px.
For predictable sizing, consider using rem units instead — they always reference the root element font size.
| Feature | em | px |
|---|---|---|
| Reference | Parent font size | Fixed pixel |
| Compounds | Yes (nests) | No |
| Responsive | Yes | No |
| Accessibility | Respects user settings | Fixed size |
| Predictability | Context-dependent | Always consistent |

Have an idea, found a bug, or want to suggest a feature? Drop us a message – we respond within 24 hours.