Convertitore gratuito da PX a REM

Convert pixels to rem and back with a configurable base font size.

Ad Space
px (browser default is 16)

Reference Table

PXREM
Ad Space

How It Works

REM stands for "root em" and is relative to the root element's font size. By default browsers use 16 px. The formula is simple: rem = px ÷ base and px = rem × base. Change the base font size above if your project uses a different root.

Frequently Asked Questions

Why use rem instead of px?

REM units scale with the user's browser font-size setting, improving accessibility. If a user increases their default font size, rem-based layouts adjust automatically while pixel values stay fixed.

What is the difference between em and rem?

EM is relative to the parent element's font size and can compound in nested elements. REM is always relative to the root (<html>) element's font size, making it more predictable.

What base should I use?

Most projects use the browser default of 16 px. Some developers set html { font-size: 62.5%; } (10 px) for easier math. Use whatever your project's root font-size is set to.

Related Tools