← Free Everyday Tools

PX to REM Converter

Convert pixels to rem, or rem to pixels, using your own base font size. Nothing leaves your browser.

How it works

rem = px ÷ base font size. px = rem × base font size. The default base is 16px.

FAQ

How do I convert px to rem?

Divide the pixel value by the root font size. With the common browser default of 16px, 24px is 1.5rem.

What is the default rem size?

Browsers default to 16px for the root font size unless the page or the user's settings change it. You can set a different base above.

Why use rem instead of px?

rem units scale with the root font size, so text and spacing respect a user's browser font-size setting.

How do I convert rem to px?

Multiply the rem value by the root font size. 2rem at a 16px base is 32px.

Tell us what to fix

Please do not enter your name, email, or personal information.

How useful was this tool? (1–5)

May we quote your comment anonymously?

Free tool, provided as is, with no guarantee. Results are for general information. Please do not enter personal information in feedback.