Calculators · Tool
CSS Line Height Calculator
Enter the font size, the root size, and either desired pixels or a multiplier.
How to use it
- Enter the font size, the root size, and either desired pixels or a multiplier.
- Run the tool, then copy the result if needed.
How it works
A unitless line height multiplies an element's own font size, while the root size is used for the rem result.
Use it for
- Turn a design's baseline spacing into a reusable CSS value.
Questions
Does this run locally?
Yes. This tool processes its inputs in your browser.