Back to Text Tools

Line Counter

Count lines and add line numbers

0
Total Lines
0
Non-Empty
0
Empty Lines
0
Characters

About the Line Counter

Count lines in text instantly. See the total number of lines, non-empty lines, empty lines and characters. You can also add line numbers to every line — handy for code reviews, legal text and sharing logs — or remove existing line numbers from copied code.

How to use Line Counter

  1. Paste text. Paste text or code.
  2. Read the counts. Total, non-empty and empty lines update instantly.
  3. Add or remove numbers. Click “Add Line Numbers” or “Remove Line Numbers” and copy the result.

Features

  • Total line count
  • Empty and non-empty lines
  • Character count
  • Add line numbers
  • Remove line numbers

Frequently asked questions

How do I count lines in text?

Paste the text — the total number of lines appears immediately.

How do I remove line numbers from copied code?

Paste the code and click “Remove Line Numbers”.

Is it free?

Yes. It is completely free, with no sign-up, no watermark and no usage limits.

Related tools

Editor