← All tools

PX to REM Converter

Convert CSS pixels and rem in both directions using a root font size and common-size table.

px-to-rem-converterLOCAL WORKSPACE

Enabling local controls…

Settings

rem uses the root font size. The em value assumes its reference font size matches the root.

Results

24px = 1.5rem = 1.5em

Download rem

CSS

.converted-size { font-size: 1.5rem; }
Download CSS
Common sizes
pxremAction
8px0.5rem
12px0.75rem
14px0.875rem
16px1rem
18px1.125rem
20px1.25rem
24px1.5rem
32px2rem
40px2.5rem
48px3rem
64px4rem

How to use this tool

Choose a preset or edit the controls. Copy the result or download it when it is ready.

When not to use it

The em result assumes the same reference size as rem.