Convert units
All conversions
Results appear here.
em is relative to the base font size entered. % is relative to the parent size entered.
Convert between CSS units instantly: px, rem, em, pt, percent, and viewport units, with custom base font size and viewport.
Results appear here.
em is relative to the base font size entered. % is relative to the parent size entered.
Type a value in any CSS unit and see it converted to all the others at once: absolute units like px, pt, and in; font-relative units rem and em; percentage against a parent you define; and viewport units vw and vh against your viewport size.
The row matching your input unit is highlighted so you can sanity-check the round trip.
Relative units only make sense with context: rem and em resolve against the base font size (16px by default), % against the parent element's size, and vw/vh against the viewport. Set those three inputs to match your design and the conversions follow.
The math uses the CSS standard of 96px per inch, so print units convert exactly as browsers compute them.