Tested tool guide
Tested browser tools
Checked August 16, 2026
What CSS Unit Converter does, with a checked example
CSS Unit Converter translates a numeric CSS length among px, em, rem, vw, vh, pt, cm, mm, and in. The configured root font size supplies the baseline for root-relative results, while viewport-relative results require a viewport width or height. The common surprise is that em and rem are not universal synonyms: rem follows the root element's font size, while em depends on the font-size context where the CSS value is used.
Worked example
A concrete input and expected output from the current implementation.
Input
value: 32 px; convert to: rem; root font size: 16 px
->
At a 16 px root, one rem is 16 px. Dividing 32 px by 16 px per rem gives exactly 2 rem; multiplying 2 rem by the same root size returns 32 px.