EM to PX Converter

Convert between EM and PX units for responsive CSS. Set your base font size and convert values instantly.

Base Font Size
Set the base font size in pixels (typically 16px for most browsers)
px
EM to PX
Enter em value to convert to pixels
PX to EM
Enter pixel value to convert to em
Common Conversions
Common em to px conversions based on your base size (16px)
EMPXCommon Use
0.25em4.0pxVery small spacing
0.5em8.0pxSmall spacing
0.75em12.0pxSmall text
1em16.0pxBase size
1.125em18.0pxH6 heading
1.25em20.0pxH5 heading
1.5em24.0pxH4 heading
1.75em28.0pxH3 heading
2em32.0pxH2 heading
2.5em40.0pxH1 heading
3em48.0pxLarge heading
4em64.0pxExtra large
About EM and PX
  • EM: Relative unit based on the parent element's font size
  • PX: Absolute unit representing screen pixels
  • Base size: The root font size (typically 16px in browsers)
  • Formula: em × base size = px | px ÷ base size = em
  • EM units are responsive and scale with user font size preferences