---
id: tinyhtml5
version: "2.1.0"
license: unclear
license_treatment: permissive
maintenance: active
---
# tinyhtml5 — HTML parser based on the WHATWG HTML specification
License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI
## Install
pip install tinyhtml5
uv add tinyhtml5
poetry add tinyhtml5
## Description
**A tiny HTML5 parser**
tinyhtml5 is a HTML5 parser that transforms a possibly malformed HTML document
into an ElementTree tree.
This module is a simplified fork of html5lib, written and maintained by James
Graham, Sam Sneddon, Łukasz Langa and Will Kahn-Greene.
* Free software: MIT license
* For Python 3.10+, tested on CPython and PyPy
* Documentation: https://doc.courtbouillon.org/tinyhtml5
* Changelog: https://github.com/CourtBouillon/tinyhtml5/releases
* Code, issues, tests: https://github.com/CourtBouillon/tinyhtml5
* Code of conduct: https://www.courtbouillon.org/code-of-conduct
* Professional support: https://www.courtbouillon.org
* Donation: https://opencollective.com/courtbouillon
Copyrights are retained by their contributors, no copyright assignment is
required to contribute to tinyhtml5. Unless explicitly stated otherwise, any
contribution intentionally submitted for inclusion is licensed under the MIT
license, without any additional terms or conditions. For full authorship
information, see the version control history.
## AI interpretation — verify before relying
tinyhtml5 is a lightweight HTML5 parser that converts possibly malformed HTML documents into ElementTree trees, suitable for parsing and processing HTML with minimal overhead.
Verdict: tinyhtml5 is a production-ready, low-friction HTML5 parser for Python 3.10+ with permissive MIT licensing and no known vulnerabilities. Its single dependency and active maintenance make it a reliable choice for HTML parsing tasks, though its small community (9 GitHub stars) and recent creation (first release 2024-09-18) suggest it remains relatively new.
[View on SkillFed](https://skillfed.io/packages/tinyhtml5) · [View on PyPI](https://pypi.org/project/tinyhtml5/)