1. Home
  2. Text
  3. Line & Sentence Counter

Line & Sentence Counter

Count lines, paragraphs and sentences and spot the long ones at a glance.

Runs in your browser · No upload
Sentences longer than this many characters (spaces included) count as long.
Total lines
4
Lines with text
3
Empty lines
1
Paragraphs
2
Sentences
6
Avg characters per sentence
31.8
Avg words per sentence
5.5
Longest sentence (chars)
55
Shortest sentence (chars)
7
Long sentences
0
Sentence list
Sentence list
#SentenceCharsWords
1Hello there.122
2Today we count lines and sentences!356
3Several sentences on one line are counted separately.538
4Really?71
5This is the second paragraph.295
6A last line without a period still counts as a sentence5511

How to use

  1. Paste or type your text. A sample is already filled in so you can see results right away.
  2. Read the numbers at the top for lines, paragraphs, sentences and sentence length.
  3. Check the Sentence list below to see how the text was split and which sentences are long.
  4. If your text has line breaks but no periods (lists, poems, scripts), keep Treat line breaks as sentence ends on. If lines are just wrapped inside a paragraph (copied articles), turn it off.

What is counted

Item Rule
Total lines Every line split by line breaks, empty ones included. A trailing line break counts as one empty line
Lines with text / Empty lines A line with only spaces is empty
Paragraphs Blocks separated by blank lines
Sentences Chunks ending in . ! ? 。 ! ? …. A last chunk without punctuation still counts
Avg characters per sentence Total sentence characters (spaces included) ÷ number of sentences
Avg words per sentence Average number of space-separated chunks
Long sentences Sentences over the character limit (80 by default)

How sentences are split

Cutting at every period gives wrong answers often, so a few cases are handled.

  • Decimals, versions and domains: in 3.14, 2.0.1 and example.com a period followed directly by a letter or digit does not end a sentence.
  • English abbreviations and initials: periods in Dr., Mr., vs., e.g. and J. Smith are not sentence ends.
  • Numbered lists and dates: 1. at the start of a line and dates like 2024. 5. 1. stay in one sentence.
  • Runs of marks: ?!, ... and … count as a single end.
  • Quotes and brackets: a closing quote or bracket after the mark, as in "Let's go.", stays with the sentence before it.

For example Dr. Kim met Mr. Lee. They talked. is 2 sentences, and Really?! No way... I see… OK. is 4.

Good to know

  • The splitting is rule based, so it cannot be right in every case. Casual speech, shorthand and text run together without periods may differ from a human count. Check the sentence list to see how it was split.
  • The long sentence limit is only a guide for readable writing. Pick a number that suits your style, as there is no fixed rule.
  • For characters, bytes and words use the Character Counter, and for the most used words the Word Frequency Counter. To remove line breaks use Remove Line Breaks.
  • The table shows the first 200 sentences, while the numbers at the top are computed from the whole text.

FAQ

How are several sentences on one line counted?

Each period, question mark or exclamation mark ends a sentence. Three sentences on one line is 1 line and 3 sentences.

Is a line without a period a sentence?

Yes. A line with text counts as a sentence even without ending punctuation. With the line break option off, text up to the next blank line is treated as one block and sentences are split only inside it.

The line count differs from Word or Google Docs.

This tool counts the line breaks in the text. Word processors also count lines that wrap automatically at the page width, so their numbers can be higher.

How are paragraphs separated?

Blocks separated by one or more blank lines count as paragraphs. Text with line breaks but no blank lines is one paragraph.

Is my text sent anywhere?

No. Your text is processed only in your browser and is never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.