📏

PX to REM Converter

Convert pixels to rem and rem to pixels for CSS

🔄 ConvertersFreeRuns in your browser
1rem
rem
1em
em (same root)
12pt
points
Pixelsremem
8px0.5rem0.5em
10px0.625rem0.625em
12px0.75rem0.75em
14px0.875rem0.875em
16px1rem1em
18px1.125rem1.125em
20px1.25rem1.25em
24px1.5rem1.5em
28px1.75rem1.75em
32px2rem2em
36px2.25rem2.25em
40px2.5rem2.5em
48px3rem3em
56px3.5rem3.5em
64px4rem4em

About the PX to REM Converter

The PX to REM Converter translates CSS lengths using the root font size. It helps when a design is measured in pixels but the stylesheet should scale with the user's browser settings.

Designers usually hand over pixel measurements while the codebase uses rem. Converting at the start avoids mixed units, and keeping the root size explicit makes the maths obvious to the next developer.

  • ✓Both px to rem and rem to px
  • ✓Custom root font size
  • ✓Reference table for common sizes

How to use the PX to REM Converter

  1. 1

    Enter the value and choose the direction.

  2. 2

    Adjust the root font size if it is not 16px.

  3. 3

    Copy the rem, em, or pixel result.

Frequently asked questions

Why convert pixels to rem at all?+

rem values follow the root font size, so text and spacing grow for visitors who increase their browser font size, which pixels do not do.

What if my project uses a 62.5% root size?+

That sets the root to 10px. Enter 10 as the root font size and the conversion matches a 1rem = 10px setup.

Save PX to REM Converter to your favorites, or keep browsing converters.

Browse all 45 converters →