Line Counter

Count the lines in any text. Get totals for empty, unique and duplicate lines, the longest and average line length, lines over a limit and mixed line endings.

  • Free, no sign-up
  • Runs in your browser
  • Your data stays private

How to use the Line Counter

  1. Paste your text or upload a file.
  2. Set the line length you want to flag.
  3. Read the totals, longest lines and repeated lines.

Why use this Line Counter

  • Full line statisticsTotal, non-empty, empty, unique and duplicate lines.
  • Line lengthLongest, average and how many lines exceed your limit.
  • Line ending checkDetects Windows CRLF, Unix LF and old Mac CR, and warns about mixes.
  • Repeated linesA ranked list of lines that appear more than once.

Frequently asked questions

How do I count the lines in a text?

Paste it. The total appears at once, along with empty and unique counts.

What are CRLF and LF?

CRLF is the Windows line ending and LF is the Unix and Mac ending. Mixed endings can break scripts and diffs.

Are empty lines counted?

Yes in the total, and they are also shown separately.

Related tools

More Text Formatting tools

User Reviews

–
No ratings yet
Write a review
Your rating *

Your email is never published. Reviews are moderated, and links aren't allowed.

What users are saying

No reviews yet

Be the first to share your experience with this tool — your feedback helps others.