Word and Character Counter for English and Arabic

Count the words, characters, sentences and paragraphs of any text, in any language.

How to use

What it checks and how it works

Words and sentences come from Intl.Segmenter, the browser's implementation of the Unicode text segmentation rules in UAX #29, and only segments the segmenter marks as word-like are counted, so punctuation is not a word. Characters are counted as Unicode code points, with and without spaces. Paragraphs are blocks separated by a blank line, lines are non-empty lines, and the size is the text encoded as UTF-8 in bytes. Limits: sentence boundaries are approximate, because an abbreviation such as e.g. can end a sentence early. Where a browser has no Intl.Segmenter the tool falls back to a simpler Unicode letter pattern, which does not know word boundaries in languages written without spaces. Programs count words in different ways, so a total may differ a little from another tool.

Does it count Arabic words correctly?

Yes. It uses Unicode word segmentation, which treats Arabic words, numbers and punctuation correctly, including in text that mixes Arabic and English.

Why does another counter give a different total?

Programs differ on hyphenated words, numbers, apostrophes and punctuation. This tool follows the Unicode word boundary rules.

Is my text uploaded?

No. The counting runs in your browser and nothing is sent anywhere.

Sources

Related tools

Privacy

Runs in your browser; nothing is uploaded. The interactive tool needs JavaScript.