CSS Unit Converter

Convert between px, rem, em, %, vw, vh, pt and physical units.

WebRuns in your browser

About this tool

Convert a CSS length between px, rem, em, %, vw, vh, pt, in, cm and mm. The root font size can be changed because rem values depend on it; the default is the browser standard of 16px.

Percent is treated as a percentage of the parent font size and viewport units assume a 1440 by 900 viewport, since those depend on the page where the value is used.