This tool gives an accurate word count for Hindi (Devanagari) text, handling the punctuation and conjunct rules that trip up generic counters. It also reports sentences, characters and lines so you can check writing against length limits.
How it works
The text is normalised by treating the Devanagari danda (।, U+0964) and double danda (॥, U+0965) as separators, since they end clauses and sentences rather than belonging to a word. The text is then split on whitespace. Each resulting token is counted as a word only if it contains at least one letter or digit, so trailing punctuation or symbols do not inflate the total. Virama conjuncts are written without an internal space, so they remain inside a single token and are never miscounted.
Example
The sentence:
यह एक उदाहरण वाक्य है।
contains the tokens यह, एक, उदाहरण, वाक्य and है (the danda attaches to है as a sentence terminator) — a total of 5 words and 1 sentence.
Notes
Sentence detection uses the danda, double danda and the ASCII ., ! and ? marks. Everything runs in your browser, so nothing you paste is uploaded.