Free online tools to generate, calculate,
convert, format, encode, and play.
 

Language Detector

Paste any text to detect its language with AI-powered confidence scores. The classifier model runs entirely in your browser via Transformers.js. No text is sent to any server.


Detect Language

Loading model...
20+ characters recommended for reliable detection 0 chars

How It Works

Transformer-Based Classifier

The detector uses an XLM-RoBERTa model fine-tuned for language identification. XLM-RoBERTa is a cross-lingual transformer pre-trained on text from over 100 languages using masked language modeling.

The model is loaded and run entirely in your browser via Transformers.js. On first use the ONNX model weights are downloaded from Hugging Face and cached locally. Subsequent runs are instant.

Confidence Scores

The model outputs a probability distribution (softmax) over all supported languages. A score of 95%+ indicates high certainty; scores below 60% suggest ambiguous or mixed-language input.

Tips for Better Results
  • Use at least one full sentence (20+ characters)
  • Avoid mixing multiple languages in one input
  • Closely related languages (e.g. Spanish vs. Portuguese) may produce lower confidence gaps
  • Code, URLs, and numbers reduce accuracy

Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.


Related Utils


Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with