chardet/chardet
Python character encoding detector observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 5
- age_days: 5151
- days_rel: 19
- days_push: 10
- n_releases_24m: 14
Adoption not part of the score
2661 stars · 306 forks observed · 2026-08-28
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-08-28 · c57d5bee6e95
- registry_pypi: https://pypi.org/pypi/chardet/json · fetched 2026-08-29 · 49e7fa9a1ba1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| chardet/chardet | main | 99 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem