Converter Web ToolsConverter WebTools

Line Counter

Create a Line Counter in your browser, free and instantly.

0Lines
0Non-empty lines
0Words
0Characters
Paste text to count its lines, including how many are non-empty, plus the total words and characters. Tick the numbering option to add a line number to the start of each line — handy for referencing lists, logs and code. Runs in your browser.

About counting lines

This tool counts the lines in your text — the total, how many are non-empty — plus the word and character counts. You can also number every line. It runs entirely in your browser.

How Line Counter works

How to use it

  1. Paste your text or list.
  2. Read the line, word and character counts.
  3. Tick numbering to add a number to each line.

How it works

The text is split on line breaks to count lines, and non-empty lines exclude blank ones. Numbering prefixes each line with a right-aligned number.

Common uses

  • Count lines in a file
  • Count items in a list
  • Number lines of text
  • Check log line counts
  • Count non-empty lines
  • Reference list positions
  • Count words and characters
  • Prepare numbered output

Frequently asked questions

How do I count lines?
Paste the text and the line count is shown instantly.
Does it count blank lines?
It shows both total lines and non-empty lines.
Can I number the lines?
Yes — tick the numbering option.
Is my text uploaded?
No — it runs in your browser.
Does it count words too?
Yes — words and characters as well.
Can I copy the numbered version?
Yes — use the copy button.
Is it free?
Yes — completely free with no sign-up.