To HTML Converter class is a .NET class for C#, VB etc. that can convert
complex HTML from Word to a clean and simple HTML with only standard
tags. All Word tags are removed.
the Word To HTML Converter class you can convert formatted Word
text to formatted HTML text. The class also
cleans the formatted text so
all unnecessary tags are removed from the HTML. This makes the resulting HTML safe
to use in for example web pages and e-mails.
This class is especially useful when copying formatted text from a
Microsoft Word document (.doc or .docx) to a HTML document via Windows
clipboard. The cleaning and simplyfing process assures that the resulted
HTML always is compatible with the already existing HTML in the HTML
document. Without cleaning there may otherwise be serious compatibility
problems, which may result in strange behaviour in the HTML when editing
The class is written in C# but can also be used with other .NET
compatible languages (for example Visual Basic .NET and F#). The class can be
used with .NET Framework 2.0 and later, with .NET Core and with .NET
Standard. It can also be used with Xamarin.
A HTML Clipboard
class also follows
To make it simpler to copy and paste
text between Word documents and HTML, we have also included a HTML
Clipboard class. With this class you can copy and paste text between
Word documents and HTML in an easy way. The class can also be used to
copy HTML between other types of applications. The contents in the
clipboard is stored in the HTML format.
Desktop, mobile and web applications are supported The
converter class is a system independent class that can be used in
desktop applications, mobile applications and web applications. The HTML
clipboard class can be used in Windows desktop applications and in
Examples of usage The
converter class is useful for example in HTML editors and e-mail
/ newsletter editors to handle formatted text that is copied from
Microsoft Word. It is also useful on the web in formatted text input
windows / controls if the user want to paste text from Word.
Instead of blocking all Word tags or allowing all Word tags, you can let
this class convert the formatted Word text to a well-structured
formatted clean HTML text and filter out all unnecessary tags.
source code in C# is included for all
classes. Example code in C#, that shows how to use the
classes, is also included.
The classes have been careful tested and have been in real world
environments for many years now. All classes are written in Microsoft
Visual C#. We use it ourself in our
The classes are easy to use and
implement, but if you need help we will assist you. 1 year support is
included when you buy the classes.
Below is a list of all classes that
are included. Click on the underlined class name to read more about a
Contains methods that
copies HTML text from and to Windows clipboard.
Static methods -
easy to use
All methods in the classes are
static, so they are easy to use. Below is an example:
// Convert and clean
HTML with Word tags
sCleanedHtml = CWordHtmlConverter.ConvertWordToCleanHtml(sHtmlFromWord);
Can be used with Microsoft Visual
Studio 2005 and later (or compatible). The following frameworks
are supported: .NET Framework 2.0 and later, .NET Core, .NET
Standard and Xamarin. See full system requirements on