CSS px ↔ rem / em Converter

Type in px or rem — the other field updates live. em uses the same base as rem here; in real CSS, em is relative to the parent element's font size.

Formula: rem = px ÷ base  |  px = rem × base

Common px → rem reference

Updates live when you change the base above.

pxrem / em