PX to EM Converter
Convert pixels to em relative to the parent font size.
Enter your values
Browser default is 16px
Result
em
1.5em
24px = 1.5em
- CSS
- font-size: 1.5em;
em = px ÷ parent font size. 24px ÷ 16px = 1.5em.
PX to EM chart (16px parent)
| PX | EM |
|---|---|
| 1px | 0.0625em |
| 2px | 0.125em |
| 4px | 0.25em |
| 8px | 0.5em |
| 10px | 0.625em |
| 12px | 0.75em |
| 14px | 0.875em |
| 16px | 1em |
| 18px | 1.125em |
| 20px | 1.25em |
| 24px | 1.5em |
| 28px | 1.75em |
| 32px | 2em |
| 36px | 2.25em |
| 40px | 2.5em |
| 48px | 3em |
| 64px | 4em |
How to use PX to EM Converter
- Enter pixels and parent font size.
- The result updates instantly as you type, with no button to press.
- Read the formula box to see how it was calculated, then copy the result.
Features
- Instant results
- Results update as you type, with no Calculate button and no page reload.
- Formula explained
- See exactly how the answer is worked out, so you can check it or learn the method.
- Private & free
- Everything runs in your browser. Nothing you enter is uploaded or stored.
Frequently asked questions
How do I convert em to px?
Multiply the em value by the parent element's font size. With a 16px parent, 1.5em = 24px; with a 20px parent, 1.5em = 30px.
Is em the same as rem?
Only when the parent font size equals the root font size. em is relative to the parent, rem to the root html element.
How does the PX to EM Converter work?
It uses this method: em = px ÷ parent font size. 24px ÷ 16px = 1.5em.
Is this PX to EM Converter free?
Yes. It is 100% free, needs no sign-up and works on mobile and desktop. Your numbers never leave your device.
Free, no sign-up. Your files and numbers are processed in your browser and are not uploaded.