Line-height calculator

Find a comfortable line height for a font size and line length, in pixels, rem and unitless CSS, with a live preview.

Runs in your browser. Your files and data never leave your device.

A rule of thumb, not a standard: about 1.5 for body text at 16 px and 66 characters, tighter as the type gets bigger, looser as lines get longer.

Line height in pixels
Line height in rem
Unitless value
Snapped to the grid
Line width

Preview

The quick brown fox jumps over the lazy dog. Good body text is set so the eye finds the start of the next line without effort: not so tight that lines crowd each other, not so loose that they fall apart into stripes. Long lines need more room between them than short ones, and big headings need less than small text.

Keyboard shortcuts

//Ctrl K
Search
?
Show this list
Esc
Close the open dialog, menu or search
Ctrl Enter
Run the main action of a tool (where it has one)