DevTools Logo

Language Detector

Language Detector

Identify the language of pasted text from script and word signatures — completely offline.

Runs in your browser
Try an example

Text to identify

Detection

No text to identify yet

Paste a paragraph or load an example.

Language Detector classifies text without sending it anywhere. It first maps each code point to a writing system, then scores word and trigram signatures for the matching language candidates. Latin script is ranked across ten European languages; Cyrillic, Greek, Hebrew and Arabic get dedicated profiles; kana, hangul and Han character inventories distinguish Japanese, Korean, Simplified and Traditional Chinese. Results include ranked confidence scores, script shares, per-line batch verdicts and honest low-data warnings.

Examples

English paragraph

Input
The quick brown fox jumps over the lazy dog. The dog was not very quick and the fox was clever.
Output
English — high confidence

Function words such as the, was and and drive the Latin-script score.

Simplified vs Traditional

Input
这是一个中文句子。我们今天去学校学习知识。
Output
Chinese (Simplified)

Characters such as 这, 们 and 学 are simplified-only forms.

Mixed scripts

Input
This is an English sentence with many words. Это русское предложение с большим количеством слов.
Output
Latin segment → English; Cyrillic segment → Russian

Each substantial segment is reported separately alongside script shares.

Short sample

Input
Danke
Output
German — LOW confidence warning

A single word can still score, but the tool caps confidence and tells you the sample is too short.

About this tool

Language Detector guesses the language of pasted text entirely in your browser. It maps Unicode code points to writing systems first, so Cyrillic, Greek, Hebrew, Arabic, kana, hangul and Han text are routed to the right classifier. Latin text is scored against compact word and trigram profiles for ten European languages.

The ranked result shows a confidence percentage rather than a single bare answer. Short samples are explicitly marked low confidence, mixed-script inputs produce per-script segment verdicts, and multi-line input gets a line-by-line table. Japanese, Korean, Simplified Chinese and Traditional Chinese use script-specific character evidence instead of Latin trigrams.

This is a heuristic offline classifier, not a neural language model or a translation service. It never uploads your text and makes no claims about dialects or languages outside its bundled profiles.

What this tool does not do

  • Detection is heuristic and can confuse closely related Latin languages on short samples.
  • The bundled profiles cover ten Latin-script languages plus Russian, Greek, Hebrew, Arabic, Japanese, Korean and two Chinese variants.
  • Documents are capped at 5 MB; the batch table displays at most 50 lines.
  • Transliterated text is classified by its Latin script and may be wrong; confidence is reported honestly.
  • The tool does not translate, detect dialects, or identify individual speakers.

How to use this tool

  1. Paste or type text

    A paragraph gives better results than a single word; one sample per line works for batch mode.

  2. Restrict candidates if needed

    Choose Latin-script only or a European shortlist to remove unlikely candidates from short samples.

  3. Read the evidence

    Inspect ranked guesses, confidence bars, script shares and mixed-script segments.

  4. Export

    Copy or download a plain-text report containing the top guesses and script breakdown.

Use cases

Sort mixed-language datasets

Run line-by-line detection over a small set of samples before routing them to language-specific workflows.

Check pasted text

Find out which language a snippet is in without uploading it to a third-party API.

Teaching scripts

Show how Unicode script ranges and character inventories identify writing systems.

Content QA

Spot a paragraph in the wrong language inside an otherwise consistent document.

Scripts and candidate languages

Detected scriptCandidates scored
LatinEnglish, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Turkish, Swedish
CyrillicRussian
GreekGreek
HebrewHebrew
ArabicArabic
Hiragana or KatakanaJapanese
HangulKorean
Han onlySimplified vs Traditional Chinese using character inventories

Mixed-script text is split into segments of at least ten letters for separate verdicts.

Common mistakes

Mistake:Trusting a high score for a one-word sample.

Fix:Short text is capped and warned: add at least a full sentence for a useful guess.

Mistake:Expecting translation or meaning.

Fix:This tool identifies language only; it does not translate, spell-check or summarize.

Mistake:Assuming all Han text is Chinese.

Fix:Kana presence points to Japanese; without kana the tool compares simplified and traditional character inventories.

Mistake:Pasting mostly emoji or numbers.

Fix:There is no analyzable script in that case; the tool reports an empty result instead of guessing.

Mistake:Expecting detection of languages outside the bundled set.

Fix:The classifier covers the listed profiles; unsupported languages may be misclassified with low confidence.

Frequently asked questions

How accurate is it?

Long, ordinary prose in one of the supported languages is usually classified correctly. Short samples, slogans, code and closely related languages can be confused, which is why the tool shows ranked alternatives and caps confidence on short text.

Why is confidence low for short text?

Word and trigram profiles need enough characters to distinguish languages. A single word like Danke can still score, but there is not enough evidence for a trustworthy percentage, so the result is explicitly marked low confidence.

Which languages are supported?

Ten Latin-script languages (English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Turkish, Swedish), plus Russian, Greek, Hebrew, Arabic, Japanese, Korean, Simplified Chinese and Traditional Chinese. Other languages are outside the bundled profiles.

Does it translate the text?

No. It only identifies the likely language and writing system. It does not translate, summarize, spell-check or rewrite your text.

Is my text uploaded?

No. Script mapping, scoring and batch analysis run in your browser. No network request carries your text, and nothing is stored.

How does it tell Simplified from Traditional Chinese?

When only Han characters are present, it counts characters that occur predominantly in simplified or traditional writing, such as 这 versus 這 and 学 versus 學. Kana presence takes priority and indicates Japanese.

References & standards