Character Counter

Paste or type your text to count characters, words, lines and bytes instantly.

Characters
0
Without spaces
0
Without line breaks
0
Lines
0
Paragraphs
0
Words
0
Bytes (UTF-8)
0

Everything you enter is processed inside this browser and is never sent to a server.

How to use it

Type in the box above or paste text from any app. Every count updates as you type. Press “Clear” to empty the box.

What each number means

Characters
Every character, including spaces and line breaks. A line break counts as one character.
Without spaces
Characters after removing all spaces, tabs and line breaks (including the full-width space used in Japanese).
Without line breaks
Characters after removing line breaks only. Spaces are still counted.
Lines
The number of lines separated by line breaks. Empty lines count too.
Paragraphs
Blocks of text separated by at least one blank line.
Words
Words found by your browser’s built-in word segmentation. For English this matches a count of space-separated words, while punctuation on its own is not counted.
Bytes (UTF-8)
How much space the text takes when saved as UTF-8. Basic Latin letters take 1 byte, accented letters 2, most Chinese and Japanese characters 3, and emoji 4 or more. Useful when a database column or API limits size in bytes.

Emoji and combined characters

Emoji built from several code points, such as 👨‍👩‍👧, and letters written with combining accents, such as “é” typed as “e” plus an accent, count as one character, just as they appear on screen. This can differ from a programming language’s string length, such as JavaScript’s length.

Some older browsers do not support this kind of counting. In those browsers, combined emoji are counted as several characters.

Frequently asked questions

Is my text saved anywhere?

No. The counting happens entirely in your browser. Nothing is uploaded or stored, and the text is gone when you close the page.

Does this match the limit on X (Twitter) or other social networks?

Not always. Some services apply their own rules, for example counting every link as a fixed length or counting Chinese and Japanese characters double. Trust the counter in the posting box for those limits.

Why does my word processor show a different word count?

Word processors differ in how they treat hyphenated words, numbers and symbols. The difference is usually small. Use the count from the tool your editor or publisher relies on when it matters.