What are EM and Pixels?
EM is a relative unit based on the font size of the parent element. Pixels are an absolute unit typically used for screen display.
Usage Instructions
- Set the parent element's font size (default is 16px)
- Input the EM value to convert
- Click the "Convert" button or press Enter to get the result
- Use the "Copy" button to copy the conversion result
px
em
0
px
Calculation formula: px = em × parent element font size
Common conversion examples
- 1em = 16px (when the parent element's font size is 16px)
- 2em = 32px
- 0.5em = 8px
- 1.5em = 24px