PX to REM Converter

Calculate REM values from pixels based on your root font size

Safe conversion with no data sent to server

px
em

Reference Table

Pixels (px)RemEm
1px0.0625rem0.0625em
2px0.125rem0.125em
4px0.25rem0.25em
8px0.5rem0.5em
10px0.625rem0.625em
12px0.75rem0.75em
14px0.875rem0.875em
16px1rem1em
18px1.125rem1.125em
20px1.25rem1.25em
24px1.5rem1.5em
32px2rem2em
48px3rem3em
64px4rem4em

What is REM in CSS?

REM stands for "Root Em". It is a relative unit of measurement that bases its value on the root element of the HTML document (the `<html>` tag). By default, most browsers set the root font size to 16px. So, if your root font size is 16px, 1rem is equal to 16px.

Why Use REM Instead of PX?

Using REM units helps you build highly accessible and responsive designs. If a user changes their browser's default font size (for readability reasons), your entire layout will scale proportionally because elements dimensioned in REM scale with the root element, whereas elements dimensioned in PX do not.

How to Convert PX to REM Manually

The formula is simple: REM = PX ÷ Base Font Size. Conversely, to find Pixels from REM: PX = REM × Base Font Size.