python-charset-normalizer
Port variant v15
Summary Charset Detection, for Everyone (3.15)
Package version 3.5.3
Homepage https://pypi.org/project/charset-normalizer/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 23 NOV 2026, 05:55:02 UTC
Port created 15 JUL 2021, 22:32:01 UTC
Subpackage Descriptions
single

Charset Detection, for Everyone 👋

What I want is to get readable text, the best I can.
[image] [image] [image]

In other language (unofficial port - by the community)
[image]

> All IANA character set names for which the Python core library provides codecs are supported. > You can also register your own set of codecs, and yes, it would work as-is. This project offers you an alternative to **Universal Charset Encoding Detector**, also known as **Chardet**. | Feature | [Chardet] | Charset Normalizer | |--------------------------------------------------|:---------------------------------------------:|:-----------------------------------------------------------------------------------------------:| | `Fast` | ✅ | ✅ | | `Full-payload candidate validation`
`UnicodeDecodeError Safety` | ❌ | ✅ | | `Universal` | ❌ [^1] | ✅ | | `License` | _0BSD_
[_disputed_] | MIT | | `Native Python` | ✅ | ✅ | | `Detect spoken language` | ✅ | ✅ | | `Whl Size` | ~1500 kB | ~250 kB | | `Supported Encoding` | 99 | [99] | | `Can register custom encoding` | ❌ | ✅ |

[image][image]

[^1]: Usage of specific code or data per encoding. Not a generalist approach. ## ⚡ Performance This package is faster than Chardet. | Package | Accuracy | Mean per file (ms) | |--------------------|:--------:|:------------------:| | chardet | 100 % | 0.4 ms[^2] | | charset-normalizer | 98 % | 0.4 ms | | Package | 99th percentile | 95th percentile | 50th percentile | |--------------------|:---------------:|:---------------:|:---------------:| | chardet | 2.7 ms | 1.0 ms | 0.2 ms | | charset-normalizer | 1.9 ms | 0.9 ms | 0.2 ms | _updated as of November 2026 using CPython 3.12, Charset-Normalizer 3.5.3, and Chardet 7.7 inside a (libc Debian) container. The host CPU is a 13th gen Intel mobile CPU. We'll no longer update regularly those since the sub-ms changes aren't meaningful to anyone anymore._ > Stats are generated using 477 files using default parameters. More details on used files, see GHA workflows. > And yes, these results might change at any time. The dataset can be updated to include more files. > The actual delays heavily depends on your CPU capabilities. The factors should remain the same. > Chardet reports higher accuracy on its own benchmark. Chardet used our 477-file > corpus when developing its early 7.x model weights. Charset-normalizer scores
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python315:dev:std
python-pip:single:v15
autoselect-python:single:std
Build and Runtime python315:primary:std
Download groups
main mirror://PYPIWHL/d2/0d/07ab8eb9b7015274353eac2add4067bde1ab1b51912bbae505392905eedd
Distribution File Information
96e268b0cbda016ac519513294fcd17032264085b600abaac58b93049477e132 68878 python-src/charset_normalizer-3.5.3-py3-none-any.whl
Ports that require python-charset-normalizer:v15
python-reportlab:v15 Library for generating PDFs and graphics (3.15)
python-requests:v15 Python HTTP for Humans (3.15)