About this tool
Convert CSS length units using px as the base and a configurable root font-size, all in your browser.
Enter a value, pick its unit and set the root font-size in pixels. All seven units are shown at once: px, rem, em, pt, pc, in and cm. Results update as you type, are rounded to six decimal places, and clicking one copies its number without the unit.
rem and em are treated identically, both equal to the root size, so the tool cannot model an em inside a parent with a different font-size. The root defaults to 16 and must be above zero. A blank value, a non-number or an invalid root shows an error and hides the results. Negative values convert normally.