NuGet Package Web Markup Minifier: Core

The Web Markup Minifier (abbreviated WebMarkupMin) is a .NET library that contains a set of markup minifiers.

The objective of this project is to improve the performance of web applications by reducing the size of HTML, XHTML and XML code.

WebMarkupMin absorbed the best of existing solutions from non-microsoft platforms: Juriy Zaytsev's HTML Minifier ( (written in JavaScript) and Sergiy Kovalchuk's HtmlCompressor ( (written in Java).

Minification of markup produces by removing extra whitespaces, comments and redundant code (only for HTML and XHTML). In addition, HTML and XHTML minifiers supports the minification of CSS code from style tags and attributes, and minification of JavaScript code from script tags, event attributes and hyperlinks with javascript: protocol.

WebMarkupMin.Core contains built-in JavaScript minifier based on the Douglas Crockford's JSMin ( and built-in CSS minifier based on the Mads Kristensen's Efficient stylesheet minifier ( The above mentioned minifiers produce only the most simple minifications of CSS and JavaScript code, but you can always install additional modules that support the more powerful algorithms of minification: WebMarkupMin.MsAjax (contains minifier-adapters for the Microsoft Ajax Minifier -, WebMarkupMin.Yui (contains minifier-adapters for YUI Compressor for .NET - and WebMarkupMin.NUglify (contains minifier-adapters for the NUglify -

Also supports minification of views of popular JavaScript template engines: KnockoutJS, Kendo UI MVVM and AngularJS 1.X.


Version: 2.8.6
Author(s): Andrey Taritsyn
Last Update: Sunday, September 20, 2020
.NET Fiddle: Create the first Fiddle
Project Url:
NuGet Url:

Install-Package XB.WebMarkupMin.Core
dotnet add package XB.WebMarkupMin.Core
paket add XB.WebMarkupMin.Core
XB.WebMarkupMin.Core Download (Unzip the "nupkg" after downloading)

.NETFramework 4.0 Client .NETFramework 4.5 .NETStandard 1.3 .NETStandard 2.0 netcoreapp2.1 1 package depend on this package.