EM to PX Converter

Convert em units to pixels instantly at your chosen base font size (16px by default). EM-to-PX helps when a component uses em for scalability but you need the resolved pixel value for a mockup, canvas, or fixed-width export. The table converts common em values at a 16px base.

EM to pixels at a 16px font size

EMPixels
0.25em4px
0.5em8px
0.75em12px
0.875em14px
1em16px
1.25em20px
1.5em24px
2em32px
2.5em40px
3em48px
4em64px

When to use it

  1. Resolve an em-based spacing value to pixels for a design handoff.
  2. Check how large an em value renders at the default 16px base.
  3. Translate a scalable component's sizing into absolute pixels.

How to Use

  1. Type an em value into the EM field — for example, 1.5.
  2. The pixel equivalent appears in the PX field instantly.
  3. Adjust the Parent Font Size if you're converting against a context other than the default 16px.
  4. Use the reference table for common em values from 0.25em up to 6em.
  5. Copy either field with one click into CSS or design notes.

Features

  1. Multiplies em by a configurable parent font-size
  2. Default 16px parent matches the browser root
  3. Bidirectional conversion in one place
  4. Reference table covering 14 common em values
  5. Stays in the browser — nothing uploaded

FAQs

How does em-to-px conversion work?

Multiply the em value by the parent element's computed font-size. So 1.5em × 16 = 24px (if the parent is 16px), 1.5em × 20 = 30px (if the parent is 20px). The 'parent' for the em unit is whatever element is one level up in the DOM with its font-size in effect — usually a section, card, or button context. This calculator multiplies em × base for you.

Why is em-to-px useful when debugging?

Chrome DevTools shows the computed pixel value of any em property, which is great — but during code review or designer handoff you often see the source em value and need to know what it produces. This tool gives you the answer without spinning up a browser. Particularly useful for design-system audits where you're comparing em-based component styles to pixel-based Figma specs.

Does em compound through nesting?

Yes. If a parent uses font-size: 1.5em (computed to 24px against root 16px) and its child uses font-size: 0.8em, the child's font-size computes to 0.8 × 24 = 19.2px — not 0.8 × 16. This calculator gives you the single-step conversion; for deep nesting, run it once per level and multiply the results.

Should I switch from em to rem?

Not necessarily. Em has clear use cases (component-local proportional scaling, padding that should grow with font-size, em-based breakpoints) where rem can't do the same job. The right pattern in modern CSS is: rem for global typography and layout, em for component-internal scaling. Use this calculator to spot-check em values when you're auditing a component that mixes both.

Technical Details

EM to PX conversion applies px = em × parentFontSize. Like the PX→EM tool, the base defaults to 16px but is user-configurable. The shared CssUnitConverter component renders both directions from identical state logic — only the input emphasis (which field is primary) differs between the two tool exports.

Calculators & Converters

Calculators & Converters

  • PX to Percentage Converter
  • Percentage to PX Converter
  • Base Unit to PX Converter
  • PX to Base Unit Converter
  • PX to Tailwind Converter
  • Tailwind to PX Converter
  • Golden Ratio Calculator
  • Cost Estimation Calculator