Report a problem

CONVERTER TOOL

PX to REM Converter

Convert CSS pixels to rem using a configurable root font size. Copy the CSS value.

PX to REM Converter

FREE ONLINE TOOL

1.5 rem

1.5rem

rem = px ÷ root font size. rem refers to the html element, not the parent element. The default 16 px is an assumption; browser settings and CSS can change it. Negative values are supported.

rem = px ÷ Root font size (CSS px)

Which tool fits your task?

Compare the purpose of these tools before choosing.

  • PX to REM Converter · You are here

    Convert CSS pixels to rem using a configurable root font size. Copy the CSS value.

  • PX to VW Converter →

    Convert CSS pixels to viewport width units using a chosen viewport width.

  • VW to PX Converter →

    Convert viewport width units to CSS pixels for a chosen viewport width.

WHEN IT HELPS

Common uses

  • Prepare CSS values for a web design.

IN PRACTICE

Example

24 px ÷ 16 px root font size = 1.5 rem. With a 20 px root, the same 24 px equals 1.2 rem.

GOOD TO KNOW

What assumptions should I check?

rem = px ÷ root font size. rem refers to the html element, not the parent element. The default 16 px is an assumption; browser settings and CSS can change it. Negative values are supported.