Loona Automation logoLoona Developer Tools
Home › CSS Tools

REM to PX Converter

In short: convert rem 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

Going from rem back to px multiplies by the root font size — useful when a design tool, an email client with poor rem support, or a canvas/SVG context demands absolute pixels. Remember the result is only as universal as the root size assumption: at a user-enlarged root of 20px, 1rem is 20px, not 16.

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.