Skip to main content
HtmlAgilityPack package icon

HtmlAgilityPack

This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don't HAVE to understand XPATH nor XSLT to use it, don't worry...). It is a .NET code library that allows you to parse "out of the web" HTML files. The parser is very tolerant with "real world" malformed HTML. The object model is very similar to what proposes System.Xml, but for HTML documents (or streams). --------------------------------------- This library is sponsored by ZZZ Projects: https://entityframework-extensions.net/ https://eval-expression.net/ https://dapper-plus.net/ --------------------------------------- HAP is trusted by companies worldwide with over 150 million downloads.

Total Downloads
338.6M
338,634,307
Published
Oct 3, 2025
Latest stable version

Install

.NET CLI
dotnet add package HtmlAgilityPack --version 1.12.4
Package Manager Console
Install-Package HtmlAgilityPack -Version 1.12.4
PackageReference
<PackageReference Include="HtmlAgilityPack" Version="1.12.4" />

Frameworks

.NETFramework4.0 .NETFramework4.5 .NETPortable0.0-Profile78 .NETStandard2.0 UAP10.0

Dependencies