About the CSS Unit Converter
CSS Unit Converter converts between px, rem, em and pt based on a configurable root font size, so you can switch units with confidence.
Conversions update live and run locally.
Convert between px, rem, em and pt
Note: em is shown relative to the base font size. In practice em is relative to the parent element's font size.
CSS Unit Converter converts between px, rem, em and pt based on a configurable root font size, so you can switch units with confidence.
Conversions update live and run locally.
Browsers default to 16px, so rem values are relative to 16px unless you change the root font size.
CSS treats 1pt as 1/72 inch and 1px as 1/96 inch, so 1pt β 1.333px.
rem is relative to the root font size; em is relative to the elementβs own/parent font size.