Text statistics

Get information about a text, the number of characters, the number of words, its size in bytes, ...

Enable JavaScript to use the interactive tool. The guide below explains how it works.

Text Statistics

What it does

Text Statistics counts the characters, words and lines in whatever you type or paste, and reports the size of the text in bytes. Results update live with every keystroke.

Why someone uses it

Step-by-step instructions

  1. Paste or type your text into the box.
  2. Read the four figures underneath: character count, word count, line count and byte size.
  3. Edit the text and watch the figures change.

Examples

Understanding the results

Characters are counted using the browser's string length, which counts UTF-16 code units. Most letters count as one, but some emoji and rare symbols count as two. Words are groups of text separated by whitespace, so "well-known" is one word. Lines are separated by line breaks; a blank line counts as a line. Byte size is the UTF-8 encoded size, which is what matters for network payloads, file sizes and database limits. Plain English text is roughly one byte per character; accented letters use two, most Asian scripts three, and emoji four.

FAQs

Common mistakes

Use cases

Related tools

All tools

Guides and articles