Turn pixel values into relative EM units. Pick a base font size, enter your px value, and get the em result for scalable, accessible CSS.
EM = Pixels ÷ base font size. Use a base (often 16px) and divide your pixel value by it. The result scales with the parent element.
EM compounds when nested. If a parent is 1.2em and the child is 1.5em, the child is 1.2 × 1.5 relative to the root. For root-relative sizing, use rem and convert with our PX to REM converter.