Free Line Counter

| RewriteMax
  • Free, counted in your browser
  • Blank lines included
  • Counts line breaks, not wrapped rows
Try an example:
0 words · 0 characters
Live text analysis
0Words
0Letters
0Characters
0Without spaces
0Sentences
0Words per sentence
0Paragraphs
0Lines
0.0 minReading time
0.0 minSpeaking time
0.0Estimated pages
0English syllables (est.)
—English reading ease

Words count Unicode letter/number groups and individual Han characters. Reading: 225 words or 300 Han characters/min; speaking: 130 words or 250 Han characters/min; pages: 250 words/page. English syllables are estimated. Reading ease needs at least 10 English words and no Han text. Frequent words skip common English stop words, and the phrase lists skip phrases that start or end with one. Actual speed and formatting vary.

A better writing workflow

Count the lines in a list, a data file or a poem

Paste text and the line counter shows how many lines it has: the line breaks plus one, so blank lines and a break at the very end each add a line. Paragraphs, sentences and words sit next to it. Text that only wraps because the box is narrow stays one line. Here is what people use it for.

01

Count items in a list

Names, email addresses, product codes or keywords pasted one per line.

02

Check rows in a data export

Each row of a CSV file is a line, so the count is the rows plus the header, and one more if the file ends with a line break.

03

Measure code, lyrics or a poem

Get a raw line total for a code snippet, a song you are drafting or a poem with a set length.

How to count lines in 3 steps

  1. The line counter with a short CSV of bus boardings pasted in: a header, three rows, a blank line and three more rows

    Paste your text

    Paste the list, file or poem as it is. Every line break starts a new line.

  2. Figures for the CSV as pasted: 9 lines, 2 paragraphs and 7 sentences

    Read the line count

    Lines counts every line, blank ones included. Paragraphs counts blocks between blank lines.

  3. Figures after removing the blank line and the final line break: 7 lines, 1 paragraph and 7 sentences

    Remove what should not count

    Delete blank lines and the line break after the last row, and Lines falls to the lines that hold text.

Screenshots and counts from a run on November 28, 2026.

A real line counter example

We pasted a short CSV export of bus boardings at two stops: a header row, six data rows, a blank line between the stops and a line break after the last row. Then we deleted the blank line and the final break.

As pastedCleaned up
Lines97
Paragraphs21
Sentences77
Characters159157

Counted on November 28, 2026. The two line breaks we deleted were also 2 characters.

What it counted, and what to check

  • Nine lines held seven rows of text. The blank line between the stops counted as one, and the break after the last row added an empty ninth line.
  • Cleaned up, Lines showed 7: the header plus six data rows. Subtract the header and you have the number of records, 6.
  • Sentences showed 7 both times, one per line with text, because a line break ends a sentence and these rows have no full stops. In prose, periods split lines further, so do not use Sentences as a line count.
  • Paragraphs went from 2 to 1 once the blank line was gone, since paragraphs are counted between blank lines.
  • On the Paragraph Counter, the same CSV with Paragraphs end at set to Every line break showed 7 paragraphs: one per line with text, blank lines skipped. That is the quickest way to count only lines with text without editing anything.

Line breaks versus wrapped lines

A line, here, is everything between two line breaks. How it looks on screen does not matter: we pasted a 53-word sentence with no break in it, which wrapped across several rows of the box, and the counter showed 1 line.

  • Pressing Enter puts a line break in the text. A word processor wrapping a paragraph to fit the page does not, so a paragraph copied from a document is one line however many rows it filled.
  • Text copied from a PDF often has a break at the end of every printed line, so one paragraph can count as many lines.
  • Windows, classic Mac and Unix files end lines differently (CR LF, CR or LF). Each kind counts as one break.
  • A line holding only spaces looks blank and counts like any other line.
  • Microsoft Word’s Word Count dialog also lists Lines, but that figure depends on the document’s layout and formatting, so it can differ from a count of line breaks.

Counting lines of code

The counter gives a raw total: code, comments and blank lines all count. We pasted a short Python function (four lines of code, a comment line and a blank line), saved with a line break after its last line.

  • With that final break, Lines showed 7: the six lines you can see plus the empty line after the break. Without it, Lines showed 6.
  • For the same two files, “wc -l”, the command-line line count, printed 6 and 5: one fewer each time, because it counts line break characters rather than lines.
  • To count only code, delete comment and blank lines first, or use a tool that counts source lines.

Counted on November 28, 2026; “wc -l” from GNU coreutils 8.32.

Answers for your next draft

Line Counter FAQ

Does the line counter count blank lines?

Yes. Every line break starts a new line, so empty lines and lines holding only spaces are counted. To leave them out, delete them, or paste the text into the Paragraph Counter and choose Every line break, which counts only lines with text.

Why is my line count one higher than expected?

The text probably ends with a line break, and the counter counts the empty line after it. In our CSV, nine lines held seven rows of text: one extra for the blank line and one for the final break. Delete the last break and count again.

How do I count the rows in a CSV file?

Paste the file and read Lines. It includes the header row and, if the file ends with a line break, one empty line, so subtract those to get the number of records. A quoted field that contains a line break adds a line too.

What is the difference between a line and a sentence?

A sentence ends at a full stop, question mark or exclamation mark as well as at a line break, so one line of prose can hold several sentences. In a list without full stops the two counts match, as they did in our CSV example once the blank line and the final line break were gone.

Can I count the lines in a Word document?

Copy the text in, and each paragraph usually arrives as one line. You can also upload the DOCX file with a free account, but an uploaded DOCX comes in with a blank line after each paragraph, so Lines counts those blank lines too; read Paragraphs for the number of paragraphs.

Is there a limit on how many lines it can count?

Not on lines as such. The box takes up to 50,000 characters, so a list of short items can run to thousands of lines; split a larger file and add the counts.

Count your lines

Paste a list, a data export or a code snippet, then decide whether blank lines and the final break belong in your total.

Count lines ↗
Keep your draft moving

Related writing tools

Explore all tools ↗

Last updated