HtmlRenderer.Core 1.5.2

dotnet add package HtmlRenderer.Core --version 1.5.2
                    
NuGet\Install-Package HtmlRenderer.Core -Version 1.5.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HtmlRenderer.Core" Version="1.5.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HtmlRenderer.Core" Version="1.5.2" />
                    
Directory.Packages.props
<PackageReference Include="HtmlRenderer.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HtmlRenderer.Core --version 1.5.2
                    
#r "nuget: HtmlRenderer.Core, 1.5.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HtmlRenderer.Core@1.5.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HtmlRenderer.Core&version=1.5.2
                    
Install as a Cake Addin
#tool nuget:?package=HtmlRenderer.Core&version=1.5.2
                    
Install as a Cake Tool

HTML Renderer

Cross framework (WinForms/WPF/PDF/Metro/Mono/etc.), Multipurpose (UI Controls / Image generation / PDF generation / etc.), 100% managed (C#), High performance HTML Rendering library.

The library is 100% managed C# code without any external dependencies (no WebBrowser control, ActiveX / COM or MSHTML dll), the only requirement is .NET Framework 4.6.2 or higher.

Renderer.png

Issues & Documentation

For questions and issues, use the official GitHub repository.

For documentation, check out the project on the CodePlex Archive or the personal blog.

Download

The release packages on GitHub or the CodePlex Archive also contains a Demo application to explore HML Renderer's capabilities.

The latest NuGet packages can be found on NuGet.org:

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • WPF controls: HtmlPanel and HtmlLabel.
  • Works on Mono.
  • Create images/PDFs from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Lightweight, just two DLLs (~300K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms/WPF controls

  • HtmlPanel - The full power of HTML control build to replace WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlToolTip - As WinForms ToolTip control but accepts HTML and ability to handle links (WinForms only).

Sample application's

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.
  • Create PDF document from HTML code snippets.
Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on HtmlRenderer.Core:

Package Downloads
HtmlRenderer.PdfSharp

PDF document generator from HTML snippet, 100% managed (C#), High performance library using PdfSharp. Features and Benefits: --- * 100% managed code depends only on PdfSharp library, no ActiveX, no MSHTML. * Extensive HTML 4.01 and CSS level 2 specifications support. * Support separating CSS from HTML by loading stylesheet code separately. * Handles "real world" malformed HTML, it doesn't have to be XHTML. * Lightweight, only two DLLs (~300K). * High performance and low memory footprint. * Extendable and configurable.

HtmlRenderer.WinForms

Multipurpose (UI Controls / Image generation), 100% managed (C#), High performance HTML Rendering library for WinForms. HTML UI in .NET WinForms applications using controls or static rendering. Features and Benefits: --- * Controls: HtmlPanel, HtmlLabel, HtmlToolTip. * Create images from HTML snippets. * 100% managed code and no external dependencies, no ActiveX, no MSHTML. * Extensive HTML 4.01 and CSS level 2 specifications support. * Support separating CSS from HTML by loading stylesheet code separately. * Support text selection, copy-paste and context menu. * Handles "real world" malformed HTML, it doesn't have to be XHTML. * Lightweight, only two DLLs (~300K). * High performance and low memory footprint. * Extendable and configurable.

HtmlRenderer.WPF

Multipurpose (UI Controls / Image generation), 100% managed (C#), High performance HTML Rendering library for WPF. HTML UI in .NET WPF applications using controls or static rendering. Features and Benefits: --- * Controls: HtmlPanel, HtmlLabel. * Create images from HTML snippets. * 100% managed code and no external dependencies, no ActiveX, no MSHTML. * Extensive HTML 4.01 and CSS level 2 specifications support. * Support separating CSS from HTML by loading stylesheet code separately. * Support text selection, copy-paste and context menu. * Handles "real world" malformed HTML, it doesn't have to be XHTML. * Supports .NET 3.0 or higher including Client Profile. * Lightweight, only two DLLs (~300K). * High performance and low memory footprint. * Extendable and configurable.

fion.modelerp.core

ModelErp

HtmlRenderer.Mono

Multipurpose (UI Controls / Image generation), 100% managed (C#), High performance HTML Rendering library for Mono. HTML UI in .NET Mono applications using controls or static rendering. Features and Benefits: --- * Controls: HtmlPanel, HtmlLabel, HtmlToolTip. * Create images from HTML snippets. * 100% managed code and no external dependencies, no ActiveX, no MSHTML. * Extensive HTML 4.01 and CSS level 2 specifications support. * Support separating CSS from HTML by loading stylesheet code separately. * Support text selection, copy-paste and context menu. * Handles "real world" malformed HTML, it doesn't have to be XHTML. * Supports .NET 2.0 or higher including Client Profile. * Lightweight, only two DLLs (~300K). * High performance and low memory footprint. * Extendable and configurable.

GitHub repositories (11)

Showing the top 11 popular GitHub repositories that depend on HtmlRenderer.Core:

Repository Stars
accord-net/framework
Machine learning, computer vision, statistics and general scientific computing for .NET
nea/MarkdownViewerPlusPlus
A Notepad++ Plugin to view a Markdown file rendered on-the-fly
maximmax42/Discord-CustomRP
Simple custom Rich Presence manager (Playing status) for Discord. Only supports Windows 7 and above. Features running on startup and minimizing to tray. Translated to multiple languages.
chummer5a/chummer5a
Character generator for Shadowrun 5th edition
vers-one/EpubReader
.NET library for reading EPUB files
darklinkpower/PlayniteExtensionsCollection
Collection of extensions made for Playnite.
microsoft/onnxruntime-training-examples
Examples for using ONNX Runtime for model training.
cyotek/Cyotek.Windows.Forms.ImageBox
The ImageBox is a custom control for displaying images. It supports zooming, scrolling, panning, region selection and much more!
cyotek/Cyotek.Windows.Forms.ColorPicker
Color picker control suite for Windows Forms applications.
QL-Win/QuickLook.Plugin.EpubViewer
QuickLook EPUB plugin.
POPCORNBOOM/CardEditor
一款专为桌游设计师开发的批处理数值填入卡牌生成器/A card batch generator specially developed for board game designers
Version Downloads Last Updated
1.5.2 3,522 12/22/2025
1.5.1 2,289 12/12/2025
1.5.1-beta1 2,029,491 11/14/2016
1.5.0.6 3,352,917 5/6/2015
1.5.0.5 2,947,648 10/9/2014
1.5.0.3 6,494 9/6/2014
1.5.0 51,632 9/3/2014