CSS Unit Converter (px ↔ rem ↔ em ↔ pt)
Convert between CSS units. Set your project's root font size for accurate rem calculations.
Features
How to Use
1. Set the root font size (default 16px).
2. Type a value into any unit field.
3. All other units update automatically.
About this tool
Pixels are easy to reason about, but rem units scale with the user's preferred font size, which matters for accessibility. This converter keeps px, rem, em and pt in sync based on a root font size you choose — 16px by default, which is the browser standard. Type a value in any field and the others update, so you can translate a design handed over in pixels into rem for your stylesheet, or check what a 12pt print size equals on screen. The conversion assumes em is measured against the same base size as rem, which is true for elements whose parent uses the root font size; nested components with their own font sizes will differ.