Text Counter

Count words, characters, and lines in your text

Runs in your browser

0
Characters
0
Words
0
Lines
0
Sentences

What is a text counter?

The text counter shows four live totals for anything you type or paste: characters (spaces and line breaks included), words, lines and sentences. Counting happens in your browser as you type, so the text is never sent anywhere. Characters are counted as UTF-16 code units, the same rule JavaScript and the HTML maxlength attribute use, so most emoji count as 2.

Use cases

  • Keep an SMS to 160 characters so it goes out as one message, or 70 if it contains an emoji or a character outside the GSM alphabet, such as Chinese
  • Fit a post on X into 280 characters, or trim a meta description to about 155 characters so search results do not cut it off
  • Hit a required word count for an essay, a 250-word abstract or a cover letter
  • Check how many rows a pasted list or CSV block has before you import it

When to use?

Use it to check a draft against a hard limit before you paste it into a form, an app or a submission system. It counts but does not change your text; to remove extra spaces and broken line breaks first, use Text Cleaner. Platforms count in their own ways (X, for example, counts every link as 23 characters and CJK characters as 2), so treat the total as a close estimate for those.

Examples

  1. Check a short post before publishing

    Input

    Shipping the new release tonight. Release notes are live on the blog!

    Output

    Characters
    69
    Words
    12
    Lines
    1
    Sentences
    2
  2. Count a short email

    Input

    Dear team, The report is attached. Can you review it by Friday? Thanks!

    Output

    Characters
    71
    Words
    13
    Lines
    3
    Sentences
    3

Questions and answers

Are spaces counted as characters?

Yes. The character count includes everything you type or paste, including spaces, line breaks and punctuation.

How are words counted?

Any group of characters separated by spaces or line breaks counts as one word, so "e-mail" is one word and "3 PM" is two.

How are sentences counted?

A sentence ends at a period, question mark or exclamation mark. Abbreviations such as "e.g." contain periods, so they can add to the sentence count.

Why does an emoji count as 2 characters?

The counter uses UTF-16 code units, like JavaScript and the HTML maxlength attribute. Most emoji and some rare Chinese characters take two units, and combined emoji such as flags or family groups take more, so the total can be higher than the number of symbols you see.

Are wrapped lines counted as separate lines?

No. Only real line breaks, made with Enter, start a new line, so a long line that wraps on screen counts once. A line break at the very end adds one empty line to the total.

Sources and standards

All Tools