Line Height Calculator

Convert a CSS line-height between a unitless ratio and a pixel value.

Ratio 1.500
Pixels 24.0px

Related tools

How it works

  1. 1

    Enter a font size

    In pixels.

  2. 2

    Enter a line-height ratio or pixel value

    Pick whichever you have.

  3. 3

    See the equivalent in the other unit

    Both forms are shown together.

FAQ

Why does CSS line-height accept both a ratio and a pixel value?
A unitless ratio (e.g. 1.5) scales with the element's own font size, which is usually what you want; a fixed pixel value stays constant even if the font size changes elsewhere.
What is a typical line-height ratio for body text?
Something in the 1.4 to 1.6 range is a common readable default for paragraph text.

Tool4U.net — every tool runs in your browser. No file ever leaves your device unless the tool says so.

© 2026 Tool4U.net