chardet/chardet
Python character encoding detector observed · 2026-10-18
Health v2 · maintenance only
100/100
- Activity 100
- Release rhythm 100
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 5.5
- age_days: 5199
- days_rel: 3
- days_push: 3
- n_releases_24m: 15
Adoption not part of the score
2679 stars · 311 forks observed · 2026-10-18
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
chardet is a Python library that detects the character encoding of byte data, with language and MIME type detection included. Version 7 is a fast, 0BSD-licensed rewrite that is a drop-in replacement for earlier chardet releases with zero runtime dependencies.
Use cases
- detect the encoding of a text file before decoding it
- identify character sets in scraped web content
- normalize mixed-encoding data during ETL pipelines
- detect language of text alongside its encoding
- identify MIME type of binary files
- stream-detect encoding of large files without loading them fully
When to choose
- you need high-accuracy encoding detection in Python
- you want a permissive 0BSD license instead of LGPL
- you need fast detection on large inputs or streaming data
- you want language detection bundled with encoding detection
When to avoid
- you only handle UTF-8 input and can skip detection entirely
- you need detection outside Python
- you prefer charset-normalizer's API ecosystem
Facets
library · maturity active
parser nlp developer-tools developer-tools files python cross-platform character-encoding charset-detection unicode text-processing drop-in-replacement natural-language-processing
2 sources
- readme: https://github.com/chardet/chardet · fetched 2026-10-18 · c57d5bee6e95
- registry_pypi: https://pypi.org/pypi/chardet/json · fetched 2026-08-29 · 49e7fa9a1ba1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| chardet/chardet | main | 100 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem