CSS unit converter
How to use
Enter a length and pick px, rem, em or pt. Set the root font size (for rem) and the parent font size (for em). The page lists all four units. Nothing is stored or sent anywhere.
About
Conversions use the CSS reference pixel: 1 inch = 96px = 72pt, so
1pt = 4/3 px and 12pt = 16px. rem is relative to the
root font size (default 16px). em is relative to the
parent font size (default 16px). This is separate from the unit
converter, which covers physical length, mass, temperature and time
zones, not CSS units. Zero is allowed for a size; root and parent
font sizes must be greater than zero. Nothing is stored or sent
anywhere.