Language Detector
Paste a message, comment or document in an unknown language and see the most likely language, other close possibilities, its ISO code and the writing system it uses.
Uses the open-source franc-min library (76 languages). Everything runs in your browser; your text is not sent anywhere.
About Language Detector
Language Detector guesses which language a piece of text is written in. It compares the three-letter sequences in your text with profiles of 76 languages, each built from the same document translated into every one of them, the Universal Declaration of Human Rights. The method comes from the open-source franc-min library and works offline in your browser.
Covered languages include English, Hindi, Bengali, Marathi, Tamil, Telugu, Kannada, Malayalam, Gujarati, Punjabi, Urdu, Nepali, Arabic, Persian, Chinese, Japanese, Korean, Spanish, French, German, Portuguese, Russian, Indonesian, Swahili and many more with at least eight million speakers.
Reading the result
The top answer comes with its ISO 639-3 code, the one used by linguists and libraries, and, where one exists, the two-letter ISO 639-1 code that web pages and apps use (hi for Hindi, ta for Tamil). Below it, other possibilities are listed with a bar comparing each to the winner. These bars are relative scores, not probabilities.
The writing-system section counts letters by Unicode block. That helps with languages outside the 76, for example Odia, Hebrew or Georgian: the tool cannot name the language but can tell you the script.
Getting a reliable answer
- Give it a full sentence at least. A paragraph is better.
- Very close languages trade places on short text: Hindi and Nepali, Malay and Indonesian, Serbian and Croatian. Check the runner-up.
- For Cyrillic text, letters that exist in only one family are used as a tiebreak, so Russian is not mistaken for Serbian.
- Regional languages such as Bhojpuri and Magahi often look like Hindi in a few words, so they are hidden by default; tick the option to include them.
- Hindi typed in English letters (“kya haal hai”) is flagged as such, since the profiles cover each language only in its usual script.
Links, email addresses, hashtags and numbers are ignored. Only the first 2,048 characters are examined, which is more than enough. Your text stays in your browser.
How to use Language Detector
- Paste or type the text; a sentence or two is enough, more is better.
- Read the most likely language, how sure the guess is, and the other possibilities.
- Check the writing system section for scripts the detector has no language profile for.
Privacy: how it works
Everything happens in your browser. Your text is not sent to any server.
Frequently asked questions
How accurate is it?
Very good on a paragraph, weaker on a few words. Close relatives such as Hindi and Nepali, Malay and Indonesian, or Spanish and Portuguese can swap places in short texts, so look at the other possibilities too.
Does it work for Hinglish (Hindi in English letters)?
Not well. The language profiles are for each language in its own script. When text looks like Hindi typed in English letters, the tool says so instead of guessing confidently.
Which languages are not covered?
Languages with fewer speakers are left out, including Odia, Assamese, Danish, Finnish, Norwegian and Hebrew. For these the writing system is still named, for example Odia script or Hebrew script.