Advertisement

PX to REM Converter

Convert pixels to REM and REM to pixels instantly. Set your base font size for accurate results.

Converter
px (default: 16px = 1rem)

PX → REM

px

REM → PX

rem

Bulk Convert (one px value per line)

Results will appear here...
Reference Table (Base 16px)
Advertisement

How to Convert PX to REM

Divide the pixel value by your base font size. With a base of 16px: 24px ÷ 16 = 1.5rem. The formula is simple: REM = PX ÷ Base Font Size.

Why Use REM Instead of PX?

REM (Root EM) units scale relative to the root element's font size, making your layouts accessible and responsive. When users change their browser font size, REM-based layouts adapt correctly — PX-based layouts do not.

What is the Default Base Font Size?

Most browsers default to 16px. So 1rem = 16px by default. If your CSS sets html { font-size: 62.5% }, then 1rem = 10px, which makes calculations easier.