Line Length Checker

Find lines exceeding limit for code style and prose.

Check line lengths instantly. Free tool shows max, avg, and over-limit lines.

Calculator Inputs

About Line Length

Find lines exceeding limit for code style and prose.

Counts grapheme length per line.

Where it is used

Linting commits, checking 80-col, finding long log lines.

How to use the Line Length

  1. Text — enter the value (e.g. line one longer line two).
  2. Limit (chars) — enter the value (e.g. 80).
  3. Calculate — press the Calculate button to see the result instantly above.

Formula

Per-line [...line].length; max/avg/over count.

Examples

Example

inputText:hi hello world
limit:5
Result: Max 11, 1 over

Frequently Asked Questions

Tabs?
Count as 1 char; expand first if needed.