// text
Text Counter.
Real-time character, word, line, and paragraph counter with reading-time estimates.
Text
Why count words and characters?
Word and character limits are everywhere in software: database columns have max lengths, SEO meta descriptions should be 150“160 characters, social media posts have character caps, API request bodies have size limits, and legal documents often require specific word counts. A text counter gives you instant feedback without manually counting or writing scripts.
The reading time estimate uses 200 words per minute — a common average for technical content. For non-technical audiences, 250 wpm is typical. For dense academic content, 150 wpm may be more accurate. Use the estimate as a rough guideline, not a precise measurement.
What each metric means.
Characters counts every character including spaces and punctuation. Characters (no spaces) excludes whitespace — useful for testing against fixed-width field limits. Words counts whitespace-separated tokens. Sentences counts sentence-ending punctuation (periods, exclamation marks, question marks). Lines counts newline characters. Paragraphs counts double-newline-separated blocks.
Each metric updates live as you type. The tool processes your input client-side, so even very large texts (100KB+) count instantly without server round-trips.
Common use cases.
SEO. Meta descriptions should be 150“160 characters. Twitter/X posts allow 280 characters. LinkedIn posts allow 3,000 characters. Use this tool to trim your copy to the right length before publishing.
API testing. When building an API that accepts text input, you need to know how large user submissions can be. Paste the largest expected input into this tool to see the character count and compare against your API's max request body size.
Writing and editing. Blog posts, essays, and reports often have target word counts. Track your progress in real time as you write, or paste a finished draft to check the final count.
Word count standards across platforms.
Different platforms enforce different text limits, and knowing them prevents frustrating rejections. Twitter/X allows 280 characters per tweet. Instagram captions support 2,200 characters. LinkedIn posts allow 3,000 characters. Facebook posts have a 63,206 character limit, but posts under 250 characters get more engagement. Google meta descriptions should be 150“160 characters — anything longer gets truncated in search results. Twitter card descriptions should be under 200 characters.
Academic and professional writing also has standards. A typical blog post is 1,000“2,500 words. A Ph.D. dissertation abstract is 150“300 words. A press release is 400“500 words. A standard business email should be under 200 words. College application essays typically require 250“650 words. Knowing the exact word count before submission saves time and ensures compliance.
Reading time and readability metrics.
The average adult reads 200“300 words per minute, with technical content typically falling at the lower end. The Flesch-Kincaid readability tests use word length and sentence length to estimate the grade level required to understand a text. Shorter sentences and simpler words lower the grade level. This tool provides a word count that you can use with readability formulas to assess your content's accessibility.
For SEO purposes, content length correlates with search rankings — the top-ranking pages for competitive keywords typically contain 1,500“2,500 words. However, quality matters more than quantity. A concise 800-word post that fully answers a user's question will outperform a 3,000-word post that pads with filler. Use the word count as a guide, not a target.
Character encoding and byte counts.
This tool counts characters, not bytes. In UTF-8 encoding, ASCII characters take 1 byte, while emoji and non-Latin scripts can take 4 bytes. If your application has a byte limit (such as database column sizes or API request limits), the character count may underestimate the actual storage requirement. A string of 100 emoji characters is 100 characters but 400 bytes in UTF-8. For precise byte counting, encode the text as UTF-8 and measure the resulting buffer size.
The tool also distinguishes between characters with and without spaces, which is useful for fixed-width fields. Database columns like VARCHAR(255) count characters, not bytes (for most modern databases with UTF-8 support). However, some legacy systems count bytes. If you are working with constrained storage, verify which counting method your system uses.
FAQ
How do I count words and characters in a large document?
In the terminal: `wc -w file.txt` for words, `wc -m file.txt` for characters (or `-c` for bytes); Python: `len(text.split())` for words, `len(text)` for characters.
What is the character limit for Twitter/X posts?
Free tier: 280 characters (or 25,000 for Premium); posts with URLs count URLs as 23 chars regardless of length; threads aren't subject to the limit per post.
How do I count words excluding code blocks or HTML tags?
Strip tags first: `re.sub(r'<[^>]+>', '', html)` then `len(text.split())`; for markdown, remove fenced code blocks with `re.sub(r'```.*?```', '', text, flags=re.DOTALL)`.
What is the difference between word count in Google Docs vs Microsoft Word?
Word counts trailing spaces and hyphenated words differently; both count words as sequences separated by whitespace, but Word treats hyphenated words as one, Google Docs splits them.
How do I find the reading time for my article based on word count?
Average reading speed is 200-250 words/minute; divide word count by 225 for a good estimate — `Math.ceil(words / 225) + ' min read'` works for most blogs.