Too Much Tools logoToo Much Tools

String Length & Stats

Count characters, words, lines and UTF-8 bytes in text, computed locally.

Local, Runs entirely in your browser, your data never leaves your device.
Loading tool…

Count characters, words, lines and bytes together

This tool computes seven statistics for whatever text you paste in at once: Unicode characters, characters excluding whitespace, words, lines, sentences, UTF-8 byte length and UTF-16 code units. It's useful when a form field, database column or API payload has a byte or character limit and you need the real count rather than an estimate, especially once emoji or non-Latin scripts are involved. Every count is recomputed in your browser as you type, and the text never leaves the page.

How to use the String Length & Stats

  1. Type or paste text into the editor, or click Example to load a sample.
  2. Read the seven counts in the panel: characters, no-spaces, words, lines, sentences, bytes and UTF-16 units.
  3. Watch the numbers update live as you edit the text.
  4. Click Clear to reset the editor and start over.

Characters counts Unicode code points, which matches what a person would call one character even for emoji or combined accents, while UTF-16 units counts JavaScript string length, which can be higher for characters outside the Basic Multilingual Plane. Bytes is the UTF-8 encoded size, the number that matters for storage limits and network payloads.

Words are counted by splitting on whitespace, and sentences by matching runs of text ending in ., ! or ?, so unusual punctuation or abbreviations can shift the sentence count slightly from what a human would count.

Frequently asked questions

Why do character count and byte count differ?
Characters counts Unicode code points, one per visible symbol, while bytes is the UTF-8 encoded size; ASCII text has the two numbers equal, but emoji, CJK text or accented letters take multiple bytes per character.
How is UTF-16 length different from character count?
UTF-16 units reflects JavaScript's native string.length, which counts characters outside the Basic Multilingual Plane, like most emoji, as two units each, whereas the character count treats each of those as one code point.
Does this count match a Twitter or SMS character limit?
It's close but platform-specific rules vary, so for a strict limit check the platform's own counting method; this tool gives you code point, UTF-16 and byte counts so you can match whichever one the platform actually enforces.
Is my text uploaded anywhere to compute these stats?
No, every count is produced by plain JavaScript running in your browser tab as you type, so the text you paste in never gets sent to a server, not even for the byte-length calculation.