CSS Unit Converter
Convert between px, rem, em, pt, pc, in, cm, mm, vw, and vh. Absolute/relative units account for the root and parent font sizes; viewport units (vw/vh) account for a configurable viewport width and height. Everything runs locally in your browser.
rem is relative to the root (html) font size; em is relative to the immediate parent's font size. Change the two font-size fields above to see them diverge.
| px (pixels) | 16px | |
| rem (root em) | 1rem | |
| em (parent-relative) | 1em | |
| pt (points) | 12pt | |
| pc (picas) | 1pc | |
| in (inches) | 0.1667in | |
| cm (centimeters) | 0.4233cm | |
| mm (millimeters) | 4.2333mm |