Skip to main content

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).

Total Downloads
386.3M
386,279,738
Published
Oct 12, 2026
1mo ago

Get Started

dotnet add package HtmlAgilityPack --version 1.13.1
ProductVersions
.NET Standard
netstandard2.0
Universal Windows Platform
uap10.0
Other
.NETFramework4.0.NETFramework4.5.NETPortable0.0-Profile78

README

Html Agility Pack

Html Agility Pack (HAP) It is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (No need 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 of "real world" malformed HTML. The object model is very similar to what proposes System.Xml, but for HTML documents (or streams).

Read more on our Website.

Downloads

nuget nuget

PM> NuGet\Install-Package HtmlAgilityPack
PM> dotnet add package HtmlAgilityPack

Sponsors

ZZZ Projects owns and maintains Html Agility Pack as part of our mission to add value to the .NET community

Through Entity Framework Extensions and Dapper Plus, we actively sponsor and help key open-source libraries grow.

Entity Framework Extensions

Dapper Plus

More Projects

To view all our free and paid projects, visit our website ZZZ Projects.

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.