Font size
Results update live.
Recommended line-heights
| Ratio | Use case | Pixels | CSS |
|---|
Find the ideal line-height for any font size. Compare proven ratios, see pixel values, preview the result and copy the CSS.
Results update live.
| Ratio | Use case | Pixels | CSS |
|---|
Line-height (leading) is the vertical space between lines of text. Too tight and lines collide into an unreadable wall; too loose and the eye loses its place jumping between lines. For body text, ratios between 1.4 and 1.75 hit the comfort zone, with 1.5 the classic default.
CSS best practice is a unitless ratio like line-height: 1.5, which scales with the font size automatically, even for nested elements. Pixel values lock the height and break when text is resized. The table shows both so you can see the math, but copy the unitless version.