Pixel to REM Converter

Convert pixels to rem using the formula:
REM = Pixel / Base Font Size

How to Convert Pixels to REM

What is REM?

REM (Root EM) is a relative unit of measurement in CSS that is based on the font size of the root <html> element. By default, most browsers set the root font size to 16px, but this value can be changed in CSS.

Conversion Formula

To convert Pixels (px) to REM, use the following formula:

REM = Pixels ÷ Base Font Size

Example Calculations:

Custom Base Font Size

If the base font size is different (e.g., 20px instead of 16px), the formula adjusts accordingly:

Why Use REM Instead of Pixels?

When to Use Pixels vs. REM?

Video Tutorial: Pixel to Rem Converter

Pixel to REM Conversion Table

PixelREM
8 px0.5 rem
16 px1 rem
24 px1.5 rem
32 px2 rem
40 px2.5 rem
48 px3 rem
56 px3.5 rem
64 px4 rem
80 px5 rem
96 px6 rem
112 px7 rem
128 px8 rem