Line Height Calculator
Convert between unitless line-height and pixels.
Readable line spacing
Line-height controls how much air sits between lines of text, and it makes or breaks readability. A unitless value that multiplies the font size is the recommended, scalable way to set it.
A 16-pixel font with a 1.5 line-height renders 24-pixel line boxes. Body text usually reads best between 1.4 and 1.6; headings can go tighter. The tool shows both the ratio and the pixel value.
Practical and private
The calculation runs in your browser, so nothing you enter is uploaded.
Frequently Asked Questions
What is a unitless line-height?
A multiplier of the font size, like 1.5, which scales cleanly and is the recommended way to set line-height.
What is a good line-height?
For body text, roughly 1.4 to 1.6 times the font size. Headings often use tighter values.
How does it convert?
Line-height in pixels equals the font size times the unitless value; the tool goes both ways.
Browse the full set of free, private, in-browser tools.