Text Counter
Count words, characters, and lines in your text
Runs in your browser
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
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
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
Related tools
All ToolsText Cleaner
Clean pasted text by removing messy spacing, weird line breaks, and hidden characters.
TextLorem Ipsum Generator
Generate lorem ipsum placeholder text by paragraphs, sentences or words
TextText to Speech
Convert text to speech with sentence-by-sentence playback. Choose a voice and click any sentence to play from there.
TextJSON Formatter
Format and validate JSON data
Formatting