HomeFormattersTextWord & Character Counter

Word & Character Counter

Text

Count words, characters, sentences, lines, and reading time instantly. Checks against Twitter, meta description, and LinkedIn character limits — all in browser.

What is a Word Count?

The Word & Character Counter measures the length of any text — word count, character count, lines, sentences, and estimated reading time — all updating live as you type or paste. It also benchmarks your character count against common platform limits so you can immediately see whether your copy fits within Twitter, meta description, LinkedIn, YouTube, or SMS constraints.

This is primarily a tool for writers, content marketers, developers, and SEO professionals who need to know exactly how long their text is — and whether it fits the space they are writing for. A meta description that runs long gets truncated in search results. A tweet over 280 characters cannot be posted. A LinkedIn headline over 220 characters is cut off on the profile. The platform limits panel makes all of these constraints visible at a glance.

Six measurements, always live:

  • Words — counted by whitespace-separated tokens
  • Characters (with spaces) — full string length; used by Twitter, SMS, meta description limits
  • Characters (no spaces) — useful for density analysis and some database column length checks
  • Lines — newline-separated segments
  • Sentences — heuristic count based on sentence-ending punctuation
  • Reading time — estimated at 200 words per minute

All counting is client-side. Text is never transmitted or stored. Use the Case Formatter to change the case of your text, or Text to Slug to convert a title to a URL-safe slug.

How to use this Word Count calculator

  1. Type or paste your text into the 'Text' textarea.
  2. Read the counts in the output panel — words, characters (with spaces), characters (no spaces), lines, sentences, and reading time all update instantly.
  3. Check the platform limits section — each platform shows either "N chars remaining ✓" or "N chars over ✗".
  4. Edit your text to hit your target — the counts update with every keystroke.
  5. Use the copy button to copy the count summary if you need to share or log the measurements.

Formula & Methodology

Word count: text.trim().split(/\s+/).filter(Boolean).length

Character count (with spaces): text.length

Character count (no spaces): text.replace(/\s/g, '').length

Line count: text.split('\n').length

Sentence count (heuristic): count matches of /[.!?]+(?:\s|$)/g

Reading time: Math.max(1, Math.round(wordCount / 200)) minutes

Platform limits:

| Platform | Limit | Notes |
|---|---|---|
| Twitter / X | 280 | Counts chars including spaces; URLs counted as 23 |
| Meta description | 160 | Google truncates; 150–160 is the target range |
| LinkedIn headline | 220 | Profile page display limit |
| YouTube title | 100 | Search result truncation threshold |
| SMS (single segment) | 160 | Messages over 160 split into multiple segments |

Frequently Asked Questions

The Word & Character Counter measures six properties of your text simultaneously: word count, character count (with spaces), character count (without spaces), line count, sentence count, and estimated reading time at 200 words per minute. It also shows how your character count compares against common platform limits: Twitter (280 chars), meta description (160 chars), LinkedIn headline (220 chars), YouTube title (100 chars), and SMS (160 chars).
Words are counted by splitting the text on whitespace — spaces, tabs, and newlines — and counting non-empty segments. Hyphenated words like 'well-being' count as one word. Numbers count as one word. Punctuation attached to words (trailing comma, period) does not create extra words. Empty lines between paragraphs do not contribute to the word count.
Character count with spaces is the total length of the text string including every space, tab, and newline. Character count without spaces removes all whitespace characters before counting. The difference between the two tells you how many whitespace characters your text contains. Twitter and SMS character limits count spaces — so the 'with spaces' count is what matters for those platforms.
Reading time is estimated at 200 words per minute, which is a common average adult reading speed for online text. The result is rounded up to the nearest minute with a minimum of 1 minute. For academic or technical content where readers slow down, 150–180 WPM is more realistic; for skimmable marketing copy, 250+ WPM is common. The 200 WPM figure is a standard baseline used by Medium, dev.to, and similar platforms.
The counter shows remaining characters (✓) or overage (✗) for five common platforms: Twitter/X post (280 characters), meta description (160 characters), LinkedIn headline (220 characters), YouTube title (100 characters), and SMS message (160 characters). All five use the 'characters with spaces' count, which is how each platform measures input length.
For standard ASCII text, yes — each character counts as one. Twitter uses a slightly different algorithm for URLs (always counted as 23 characters regardless of actual length) and for Unicode characters outside the Basic Multilingual Plane (counted as 2). For most text content — headlines, copy, meta descriptions — the character count here matches what Twitter and SEO tools report.
No — all counting happens entirely in your browser using client-side JavaScript. Your text is never sent to any server, stored, or logged. The tool works offline once the page is loaded. This is especially useful when counting confidential copy — internal documents, legal text, or unpublished content — that you do not want to pass through an external service.
Sentences are counted by matching punctuation patterns that typically end sentences: periods, exclamation marks, and question marks followed by whitespace or end-of-string. This is a heuristic — abbreviations like 'Dr.' or 'e.g.' can produce false sentence breaks. For precise sentence-level analysis, copy the text into a grammar checker alongside this word count tool.
Type or paste your text into the 'Text' textarea. All counts update instantly as you type. The main output shows words, characters (with and without spaces), lines, sentences, and reading time. Below that, the platform limits section shows how your text measures up against Twitter, meta description, LinkedIn, YouTube, and SMS limits — with remaining or over-limit indicators for each.
For SEO, a common recommendation is 1,500–2,500 words for a comprehensive informational article, and 500–800 words for news or topical posts. A typical reading time of 7–10 minutes corresponds to roughly 1,400–2,000 words at 200 WPM. For meta descriptions, 150–160 characters is the target range — the platform limits panel flags when you are within or over this range.
Yes — the counter works on any Unicode text, including Hindi, Tamil, Bengali, Marathi, and other Indian scripts. Word splitting uses whitespace, which works reliably for Latin-script languages and for Indian scripts written with spaces between words. For scripts where words run together without spaces (like traditional Chinese or Thai), the word count may not be meaningful, but character count remains accurate.
Also known as
word countcharacter countcount words onlinetext length checkerTwitter character limit