Type size & line height

Convert pixel or rem font sizes and calculate a unitless line height for CSS.

How to use Type size & line height

  1. Enter a root size and your font size.
  2. Choose pixels or rem and enter the line height in pixels.
  3. Copy the resulting CSS.

Use the actual root computed size for the project rather than assuming 16 pixels.

Related tools