How to use Case Converter
- Enter a font size.
- Choose a line-height ratio.
- Copy the line height in pixels.
The line-height formula
Line height equals font size times the ratio. A 16-pixel font at a ratio of 1.5 has a line height of 24 pixels.
A ratio between 1.4 and 1.6 is comfortable for body text.
| Font size | Ratio | Line height |
|---|---|---|
| 16 px | 1.5 | 24 px |
| 20 px | 1.5 | 30 px |
| 16 px | 1.6 | 25.6 px |
FAQ
What is line height?
It is the vertical space between lines of text, also called leading.
What ratio is best for body text?
Between 1.4 and 1.6 is comfortable for most body text.
Does it upload anything?
No. It runs entirely in your browser.
Can I use the value in CSS?
Yes. Use it as pixels, or use the ratio itself as a unitless line-height.