Free online text tool

Count Each Line

Count Each Line shows how many characters are in every line of your text. Paste one item per line and get the characters, characters without spaces and words for each line, plus the longest and shortest line. It is free and runs in your browser.

Count Each Line Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Characters in Each Line

LineCharactersWithout spacesWordsText

Count Each Line Example

Text

Hello World ↵ Good morning, Pakistan! ↵ OK

Characters per line

Line 1: 11 · Line 2: 23 · Line 3: 2

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Count Each Line do?

Count Each Line counts the characters in every line of your text, not just the total. Each time you press Enter a new line starts, and the tool lists the length of every one of them.

For each line you get the characters, the characters without spaces and the number of words. A summary shows the longest line, the shortest line and the average length, so it is easy to spot a line that is too long.

It works well for lists with one item per line, such as page titles, meta descriptions, product names, subtitles or lines of a poem or code.

Count each line examples

Each line is counted on its own. Spaces count as characters, and empty lines have a count of 0.

LineCharactersWithout spacesWords
Hello World11102
Good morning, Pakistan!23213
(empty line)000
I love coding.14123

How to count the characters in each line

  1. 1
    Enter your text
    Type or paste text into the box, one item per line, or import a text file.
  2. 2
    Read the table
    Characters, characters without spaces and words are listed for every line.
  3. 3
    Check the longest and shortest
    The summary names the longest line, the shortest line and the average length.
  4. 4
    Copy the results
    Click Copy Results to copy the table, or Clear to start again.

When to count each line

Good for

Checking a list of titles or meta descriptions against a limit, keeping subtitle and caption lines short, checking line length in code or poems and finding the longest line in a list.

Check first

Only real line breaks start a new line. Text that wraps in the box is still one line. Paste your list with one item on each line.

Other tools

For the total count use Character Counter. To count words use Word Counter. To count the lines themselves use Line Counter.

Count each line FAQ

What does Count Each Line do?

Count Each Line shows the number of characters in every line of your text. For each line it also shows the characters without spaces and the number of words, plus the longest and shortest line.

How do I count the characters in each line?

Type or paste your text into the box, with one item on each line. The table below the box updates as you type and lists the counts for every line. Click Copy Results to copy the table.

What counts as a line?

A new line starts each time you press Enter, so lines are separated by line breaks. Text that only wraps to the next row because the box is narrow is still one line.

Do spaces count as characters?

Yes. The Characters column includes spaces and punctuation. The Without spaces column leaves out spaces and tabs.

What happens to empty lines?

By default empty lines are listed with a count of 0, so the line numbers match your text. Untick Include empty lines to hide them. The original line numbers are kept.

Why would I count characters line by line?

It is useful for checking a list of titles or meta descriptions against a limit, keeping subtitle or caption lines short, checking the line length of code or poems, and finding the longest line in a list.

How are emoji and special characters counted?

The tool counts each Unicode character once. A simple emoji counts as one, but some emoji are made of several characters joined together and count as more than one. Other platforms may count them differently.

Does it handle Windows and Mac line endings?

Yes. Windows (CRLF), Mac and Linux line endings are all treated as a single line break.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server. Still, avoid pasting passwords or other secrets into any web page.

Looking for more text tools?

Browse Counter Tools

Last updated: 25 October 2026