Pixel to REM Converter

Convert PX to REM and EM with a customizable root font size for responsive CSS.

Converter

PX → REM
REM → PX
PX → EM
REM 1rem
EM 1em
Pixel equivalent 16px
16 ÷ 16 = 1rem

Quick reference table (root: 16px)

PXREMEM

How it works

REM (root em) is relative to the <html> element's font size, while EM is relative to the parent element's font size. The conversion is simple: REM = PX ÷ root font size and EM = PX ÷ parent font size. By default browsers use 16px as the root font size, so 16px equals 1rem. Using REM keeps typography scalable and accessible — users who change their default font size see the whole layout adjust proportionally, improving responsive design across devices.

Frequently asked questions

What is the default root font size for REM conversion?
Most browsers default to 16px, which means 16px equals 1rem. You can change the root font size in CSS with html { font-size: ... } to set a different base.
What's the difference between REM and EM?
REM is relative to the root <html> font size, while EM is relative to the parent element's font size. REM is preferred for typography because it stays consistent regardless of nesting depth.
Why use REM instead of pixels in CSS?
REM units scale with user preferences for accessibility, adapt smoothly across devices, and keep responsive layouts predictable when the root font size changes via media queries.

Related tools

Free tools by TUNA — energy supply from vetted manufacturers