Search the complete library

Find a useful next step.

Start typing to search the complete UtilHub library.

Developer tools · Free online tool

PX to REM converter

Convert pixels to rem (and rem to pixels) for CSS from any root font size, one value or a whole list.

No sign-upNo run limitPrivate inputsMobile-friendly

PX to REM converter workspace

Runs locally in your browser

Separate values with commas or spaces. Numbers without a unit are treated as px.

Result

First value—
Converted—
All conversions
Common sizes

Use it with confidence

How to use the PX to REM converter.

01

Add the requested inputs

Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.

02

Calculate and review

Use the main action when needed. rem = px ÷ root font size, and px = rem × root font size. em values convert the same way, relative to their parent element’s font size.

03

Try a worked example

With the default 16 px root size, 24px is 1.5rem and 1.25rem is 20px. With a 10 px root, 14px is 1.4rem.

04

Check the assumptions

Browsers default to 16 px, but readers can change it. That is why rem sizes help accessibility: they scale with the reader’s settings.

Helpful answers

PX to REM converter FAQs.

Is the PX to REM converter free?

Yes. Use it as often as you need, with no sign-up and no run limit. Your inputs stay in your browser.

Does UtilHub upload or save my inputs?

No. This tool runs in your browser and UtilHub does not receive or store the values you enter. Your browser or device may still retain normal local history or form data.

How does this PX to REM converter work?

rem = px ÷ root font size, and px = rem × root font size. em values convert the same way, relative to their parent element’s font size.

What should I check before using the result?

Browsers default to 16 px, but readers can change it. That is why rem sizes help accessibility: they scale with the reader’s settings.

Coming up