Lines (typographic) to Pixels (CSS) Converter

1 line (typographic) (line (typographic)) equals 8 pixels (CSS) (px).

Quick answer

  • 1 line (typographic) = 8 pixels (CSS)
  • 1 pixel (CSS) = 0.125 lines (typographic)
  • Formula: px = line (typographic) × 8

1 line (typographic) = 8 pixels (CSS)

How to convert lines (typographic) to pixels (CSS)

px = line (typographic) × 8

To convert lines (typographic) to pixels (CSS), multiply the number of lines (typographic) by 8.

Example: 1 line (typographic) to px

  1. Start with the value in lines (typographic): 1 line (typographic).
  2. Multiply by 8: 1 × 8 = 8.
  3. Result: 1 line (typographic) = 8 pixels (CSS).

Going the other way, 1 pixel (CSS) = 0.125 lines (typographic), so to convert pixels (CSS) back to lines (typographic) you divide by the same number. See pixels (CSS) to lines (typographic).

Lines (typographic) to pixels (CSS) conversion table

Lines (typographic) (line (typographic))Pixels (CSS) (px)
1 line (typographic) 8 px
2 line (typographic) 16 px
3 line (typographic) 24 px
4 line (typographic) 32 px
5 line (typographic) 40 px
6 line (typographic) 48 px
7 line (typographic) 56 px
8 line (typographic) 64 px
9 line (typographic) 72 px
10 line (typographic) 80 px
100 line (typographic) 800 px

What is a line (typographic)?

The line was 1/12 inch, used for button and early type sizes.

More about lines (typographic) →

What is a pixel (CSS)?

The CSS pixel (px) is the basic unit of length on the web, defined as exactly 1/96 of an inch, or 0.75 points.

More about pixels (CSS) →

Frequently asked questions

How many pixels (CSS) are in a line (typographic)?

One line (typographic) is 8 pixels (CSS).

How many lines (typographic) are in a pixel (CSS)?

One pixel (CSS) is 0.125 lines (typographic).

What is the formula to convert lines (typographic) to pixels (CSS)?

px = line (typographic) × 8.