The quick answer

em converts to px by multiplication: px = em × the inherited font size. Against the common 16px parent, 1.5em = 24px, 0.75em = 12px, and 1em is exactly the parent's size. The converter takes your em value plus the base font size (16px on load) and computes live in your browser; nothing uploads.

What an em-to-px converter is for

em values are ratios, not lengths: 1.5em means "one and a half times whatever font size this element inherits". Turning that into concrete pixels, for a design review, a debugger, or plain sanity, means knowing the parent size and multiplying. The em to px Converter does exactly that: enter the em value and the base font size, read the px answer, all locally in your browser.

The rest of the page backs that up: the method as documented, examples you can verify yourself, the limitations stated plainly, and answers to the common questions.

Converting em to px, step by step

The converter is deliberately minimal, but there is a right order of operations that gets you to a trustworthy result fastest.

  1. Enter the em value

    The Value field opens at 16; type the ratio from your stylesheet, 1.5 for example. The output line rewrites itself on every keystroke.

  2. Set the base font size

    em is meaningless without context: the Base font size field (16 by default) is the inherited size of the element you care about. Read it off the browser inspector if unsure. 1.5em is 24px under a 16px parent but 30px under a 20px one.

  3. Read the line

    The CSS output panel prints the whole multiplication, not just the answer: "1.5em × 16px base = 24.00px". The × 16 is exactly the arithmetic you would re-derive by hand.

  4. Copy the result

    The Copy button puts the line on your clipboard, ready for the bug report, the design review or the stylesheet.

  5. Close the tab when you are done

    The multiplication is local JavaScript: nothing was uploaded, nothing is stored, and closing the tab erases the values.

That is the entire workflow. Every intermediate value is visible and the formula is documented below, so you never have to trust a black box; you can check the working at any point.

The em-to-px formula, documented in full

The formula is one multiplication: px = em × parent font size. With the 16px parent that browsers default to, 1em = 16px, so 1.5em = 24px and 0.75em = 12px. The converter's Base font size field is the whole method in one input: change it to 20px and every result rescales around the new base, exactly as a real stylesheet would.

One detail worth knowing: unlike rem, which anchors to a single root value, em compounds through nesting. A 1.2em font inside another 1.2em font is 1.44em relative to the grandparent. The converter computes a single level, which is the right mental model for margins, padding and media-query thresholds even in nested trees.

Worked conversions you can check by hand

Check these against a 16px parent: 1.5em × 16 = 24px, 0.75em × 16 = 12px, 2em = 32px, and 0.5em = 8px. Reverse direction divides instead: 20px ÷ 16 = 1.25em. Each worked example below carries the multiplication alongside the answer in the same format the tool prints, so the arithmetic is auditable at a glance rather than trusted on faith.

Body text at 1.5em under a 16px parent

Input

Value 1.5, Base font size 16.

Output

1.5em × 16px base = 24.00px
A 0.875em widget under a 20px parent

Input

Value 0.875, Base font size 20.

Output

0.875em × 20px base = 17.50px

Who converts em to px daily

Frontend developers: inherited styles arrive in em (a framework's 0.875em body text, a widget's 1.2em headings) while the design spec and the browser inspector speak px. Converting at the known parent size, 0.875em × 16 = 14px, is the bridge between the two vocabularies.

QA engineers: a bug report that says "the label renders 24px" needs the em-to-px math reversed to find the culprit rule. 24px at a 16px parent is 1.5em, which greps straight to the line that set it. Deterministic conversion turns visual tickets into code locations.

The compounding catch: em depends on context

The converter is exact where its inputs are exact. The interesting question is what happens at the edges, which is what this section documents.

  • em compounds through nesting: a 1.2em font inside a 1.2em parent resolves to 1.44em against the grandparent, so deep em chains drift multiplicatively. rem (against the root) or px is safer for anything nested more than one level.
  • em on width, height and padding scales with the element's own font-size, not the parent's: padding: 1em means one times this element's font, a decisive difference from the font-size context the converter models.

Your values never leave the browser

Spacing values reveal layout intent, and unfinished layouts reveal product plans. The converter keeps them local: the multiplication happens in the tab, nothing is stored, and closing the page erases every value you entered. It is free, needs no signup, and has no usage meter.

em to px converter versus mental math

You have alternatives for this, and that is fine. The comparison shows what this converter trades and what it refuses to trade away.

AlternativeWhere it winsWhere this tool wins
one-pager em/px convertersInstant one-number conversion at the browser default, nothing to learnKeeps the parent size as a first-class input, because 1.5em is 24px or 30px depending on context, and shows the multiplication, not just the answer
CSS custom properties in a real codebaseSolve the em-context problem structurally: one --font-size variable instead of nested ratiosAnswers the one-off question in seconds, what this inherited 0.875em is in px right now, without touching the codebase
Design-tool specs and the browser inspectorFigma lists px natively and the inspector shows the computed px of any live element, no math involvedWorks from a spec or a stylesheet fragment with no running page and no file to open, and the result copies with one click

Tips, gotchas and quick fixes

When the converted value disagrees with the inspector, the causes are almost always one of these:

  • The parent size changed: a framework reset or media query can shift the inherited font size, so re-read the computed font-size in dev tools and set the converter's Base font size field to it.
  • Media queries and em: @media (min-width: 40em) uses the browser's initial size, 16px, which makes 40em equal 640px. Em-based breakpoints are stable but convert against 16px specifically, not the styled root.

When em to px work goes wrong in a way this page did not predict, the contact page is the fastest route to a fix.

Frequently asked questions

These are the questions people actually search about em to px conversion, answered directly.

Does the em to px Converter work on mobile?

It works everywhere current browsers run. The two number fields and the output line reflow to a phone screen, and the result recomputes on every keystroke the same way it does on desktop.

Do you store what I enter into the em to px Converter?

No. The multiplication runs as JavaScript in your browser tab, your inputs never become requests, and closing or refreshing the tab erases them. There is no server-side copy to leak.

Is the em to px Converter free to use?

Yes, with no signup and no usage limit. The conversion runs entirely in your browser, so each extra use costs this site nothing and costs you nothing either.

How reliable are the results from em to px Converter?

The conversion is one multiplication, so the result is exact: px = em × the base font size you set. There are no estimates involved. The one thing the tool cannot check for you is whether the base size you entered matches the element's actual inherited size; the browser inspector settles that.

Why does the same em value give different px values?

Because em is relative to the inherited font size: 1.5em is 24px under a 16px parent but 30px under a 20px parent. The converter's Base font size field exists for exactly this reason. Set it to the element's actual inherited size and the answer matches what the browser renders.

Can I use the em to px Converter offline?

After the first load, yes. The conversion code is already in the page, so the tool keeps working with the network disconnected; nothing in the em to px computation needs a round-trip.

Tools that pair well with relative sizing

These tools share the converter's workflow most often; the links exist because people chain them, not for keyword decoration.

  • px to rem Converter: once an em value is resolved to px, this is the next hop, px against the root size.
  • pt to px Converter: for specs that arrive from the print world in points, the same bridge with the fixed 96/72 factor.
  • Pixels to Inches (Print DPI): pixel counts against an output DPI instead of a font size.

Where to start

Start by setting the base size to the actual inherited font size of the element you care about; 16px only if nothing upstream overrides it. Then convert your em values one at a time, copy each result line, and verify one value by hand, 1.5em should read 24.00px at the default, before you act on the rest.

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.