Hindi Word Counter

Accurate word count for Devanagari Hindi text

Free Hindi word counter that splits Devanagari text on whitespace and the danda punctuation, ignoring conjuncts and stray symbols. Counts words, sentences, characters and lines locally in your browser.

How does it decide where one Hindi word ends and the next begins?

It splits on whitespace and on the Devanagari danda (।) and double danda (॥), which mark clause and sentence ends. A token is only counted as a word if it contains at least one letter or digit, so stray punctuation is ignored.

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.