About the EM to PX Converter
Convert em units to pixels relative to the parent element’s font size.
Also known as: em to pixel, em px converter, css em to px.
How to use this calculator
- Enter em, parent font size.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
pixels = em × parent font size
Worked example
Using the values pre-filled in the calculator above:
- EM = 1.25 em
- Parent font size = 16 px
the calculator returns:
- In pixels: 20 px
- CSS value: 20px
- Rounded: 20 px
- As rem at a 16px root: 1.25 rem