Calculators · Tool
CSS Length Converter
Enter a value, its CSS unit, and the two reference font sizes in pixels.
How to use it
- Enter a value, its CSS unit, and the two reference font sizes in pixels.
- Run the tool, then copy the result if needed.
How it works
Rem follows the root font size. Em is calculated from the reference you enter, which depends on the property you are styling.
Use it for
- Convert a design measurement into relative CSS units before coding.
Questions
Does this run locally?
Yes. This tool processes its inputs in your browser.