Skip to content
Line Height Calculator

Line Height Calculator

v1.0

Give it a font size and a measure — characters per line, or a container width — and it recommends a comfortable line-height, with an acceptable range either side of the number.

Runs locally — nothing leaves your browser.

Inputs
Font size (px)
Measure
Characters per line
Typeface feel
Root font-size (px)
Recommended
1.48acceptable range 1.33 – 1.68
Line-height (unitless)
CSS output
Preview
Baseline rhythm overlay
Sample text

Typography is what language looks like. Line-height sets the vertical rhythm a paragraph reads by — too tight and lines collide, too loose and the eye loses its place hunting for the next one. This paragraph is long enough to wrap across several lines, so you can see the rhythm the current settings actually produce.

The overlay marks each line-height interval — a rough rhythm guide, not a font-metric-accurate baseline grid.

Building a whole responsive scale? Try Fluid Typography → Need a static type scale instead? Try Typography Scale →

The recommendation is a starting point, not a rule — eyeball it against the real typeface. Your inputs are remembered on this device and never leave the tab.