em to px converter

Convert em to px for any base font size. The output updates as you type, with a reference table covering common values.

em

Try 16, 24, 1.5

16
px

Updates as you type

px

Default 16px — change to match your project.

0.5em8px
0.75em12px
0.875em14px
1em16px
1.125em18px
1.25em20px
1.5em24px
2em32px
3em48px
4em64px

How to use this tool

  1. 1Enter the em value you want to convert.
  2. 2Set your project’s base font size (defaults to 16px).
  3. 3Read the px equivalent and copy it for your stylesheet.

About this tool

em scales with the parent’s font size. Converting to px gives you the absolute value at a given parent size, useful when handing off a component spec.

Related tools

FAQ

Frequently asked questions

What base font size does this converter use?

The default is 16px, which is the browser default for the root `html` element. You can change the base in the input below to match your project (for example, some designs use 10px so 1rem = 10px).

Why use px instead of em?

px is absolute and predictable. Use it when you need a value that won’t change with user font preferences: borders, hairlines, and pixel-snapped UI details.

Is the conversion exact?

Yes. With the base font size you specify, the conversion is a simple multiplication or division. The math is the same as what your browser does at runtime.

Does this work offline?

Conversion runs entirely in your browser. No values are sent anywhere, and once the page loads, it works offline.

Reviewing work with your team?

Pin comments directly on a live website or design — no extension, no setup.

Annotate live sites and screenshotsCapture browser, viewport, and CSS contextFree for your first project