← All tools

Character and word counter

Paste text to count its characters, words and lines. Counts update automatically on your device.

Up to 1 MB of UTF-8 text. Counts update after a short pause when you change the text.

Characters with whitespace
0
Characters without whitespace
0
Words
0
Lines
0

How are characters and lines counted?

Characters are counted as Unicode code points. An emoji or a letter with a separate diacritic may contain several code points. CRLF, CR and LF line breaks are normalized to one LF and count as one character.

The count without whitespace excludes JavaScript whitespace characters, including regular and nonbreaking spaces, tabs and line breaks. A final line break creates an extra empty line. Empty text gives zero in every field.

How are words identified?

When Intl.Segmenter is supported, its word segments use the page language. In other browsers, a word starts with a letter or digit and may contain letters, digits, diacritics and internal apostrophes. The two methods may differ for languages without spaces.

Copy and TXT save only the count statistics.

Compare two texts online · Format JSON