Loona Automation logoLoona Developer Tools
Home › CSS Tools

EM to PX Converter

In short: convert em to px against any base font size (16px by default) — with a ready table of the common values at your base.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

About

em back to px multiplies by the element's computed parent font size. Because em compounds, the honest workflow is to read the computed font-size in DevTools for the exact element, use it as the base here, and only then convert — a number converted against the wrong base is worse than no number.

Frequently Asked Questions

Why is the default base 16?

Every major browser ships with a 16px default root font size; designs and frameworks (Tailwind's spacing scale among them) assume it unless the user or the CSS changes it.

Should I use px or relative units?

Relative units (rem for layout, em for component internals) respect user font preferences — an accessibility requirement in most guidelines. px survives for hairline borders and fixed media.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.