EM to PX Converter

Convert EM units to Pixels (PX) based on parent font size.

32px

Default is 16px.

About EM to PX Converter

The EM to PX converter is a free online tool designed for web developers and designers to accurately convert EM units to pixels. EM is a relative CSS unit that scales based on the parent element's font size, while pixels (PX) are absolute units. This converter helps you visualize exact pixel values for your EM-based designs.

Formula

PX = EM × Base Font Size

Examples

2em (16px base) = 32px
1.5em (20px base) = 30px
0.875em (16px base) = 14px

Reference

  • W3C CSS Values and Units Module
  • MDN Web Docs - CSS Units
  • CSS-Tricks - Font Size Idea
  • EM scales with parent font size

Frequency Asked Questions

What is an EM unit?

A relative unit based on parent font size. 1em = parent font size.

Default base font size?

Usually 16px in browsers unless changed.

Why convert EM to PX?

To visualize exact pixel dimensions for debugging or design specs.

EM vs PX?

Use EM for scalable typography, PX for fixed dimensions.

Do nested EMs compound?

Yes. 1.2em inside 1.2em = 1.44em total scale.