The simplest way to convert RTF to Text in C# .NET
Key Features
Text to HTML
>>RTF to Text
Download trial
Code examples
Video Tutorials
Version History

The simplest way to convert RTF to Text in C# .NET

The simplest way to convert RTF to Text in C# .NET


     If you are looking for a .NET library to convert RTF to Text, you are in the right place. «RTF to HTML .Net» helps you extract text from any RTF document.

To illustrate how to easily extract text from RTF, let's look at simple code in C#:
            SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
            string rtfFile = @"f:\A God-forsaken Hole.rtf";

            r.OutputFormat = RtfToHtml.eOutputFormat.Text;
            string textData = r.ConvertFileToString(rtfFile);
You will be able extract a text from any type of RTF document. The library extracts good-looking text without unwanted spaces between the letters in words and supports Unicode symbols.

Furthermore, a text layout looks the same as in the RTF with proper line breaks and columns.

Nuget  Online Demo   Download, (Jan 27-th, 2020)

Have a Question?

You have a question, need a support or a code example: ask our support team at We will help you quickly and with pleasure.

What "RTF to HTML .Net" can give me:

  1. Save time and cost of the product development. The writing of own RTF to HTML converter in C# requires a lot of days of hard work and takes approx 50 000 C# code lines. "RTF to HTML .Net" will save a lot of my time and I'll need only to add the reference to "SautinSoft.RtfToHtml.dll" and write 3-4 C# code lines.

  2. The one product provides me by set of API to convert Text, DOCX and RTF document at various formats at once: HTML 3.2, 4.01, HTML5 and XHTML with CSS.

  3. Because of this is absolutely standalone .NET assembly, my clients don't need to have MS Word, Internet Explorer or other software.

  4. My software will produce well-formed HTML compatible with all W3C standards, you may check this.

  5. The one time price. I pay a one time and can use «RTF to HTML .Net» for a whole life without any additional fees. My license will never expires.

  6. As bonus, I get unlimited technical support during a whole life for free and independently of the date of my purchasing.

Some examples to convert RTF to Text in C# and VB.Net

1. Convert RTF file to Text file in C#:

            SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
            string rtfFile = @"d:\The Master and Margarita.rtf";
            string textFile = Path.ChangeExtension(rtfFile, ".txt");
            r.OutputFormat = SautinSoft.RtfToHtml.eOutputFormat.Text;
            if (r.ConvertFile(rtfFile, textFile)==0)
                // Open textFile in the default text editor.
2. Convert RTF file to Text file in VB.Net:
            Dim r As New SautinSoft.RtfToHtml()
            Dim rtfFile As String = "d:\The Master and Margarita.rtf"
            Dim textFile As String = Path.ChangeExtension(rtfFile, ".txt")

            r.OutputFormat = SautinSoft.RtfToHtml.eOutputFormat.Text

            Dim i As Integer = r.ConvertFile(rtfFile, textFile)
            If i = 0 Then
                ' Open textFile in the default text editor.
            End If
If anyone needs a code sample in C#, VB.Net, ASP.Net etc "How to convert RTF to Text", email us at or ask at Online Chat (right-bottom corner of this page). We'll help you certainly!

Requirements and Technical Information

     «RTF to HTML .Net» can be used on 32 and 64-bits platforms with .NET 4.0 and higher. The component doesn't require Internet Explorer, Microsoft Office or any other software. It's absolutely standalone and independent library.

The DOCX conversion works starting from .NET 4.0. If you are looking for a standalone C# library to create and parse Word documents, try our Document .Net.

Our product is compatible with all .NET languages and supports all Operating Systems where .NET Framework can be used. Note that «RTF to HTML .Net» is entirely written in managed C#.

.Net Framework 4.0 and higher and .Net Core 2.0 and higher

.NET Framework 4.0, 4.5, 4.6.1 and higher.

.NET Standard 2.0

.NET Core 2.0 and higher.

Multi-platform component, runs on:

Our component has proven itself on cloud platforms and services:

  • Microsoft Azure
  • Amazon Web Services (AWS)
  • Google Cloud Platform
  • SharePoint
  • Docker
  • etc.

Reasonable prices

     The library offers developers high quality conversion at reasonable prices. The main point of interest is that «RTF to HTML .Net» is less expensive than all of its more or less popular counterparts. For example, a single license cost $339(US) with no additional fees or royalties!


To see this functionality firsthand, download the freshest «RTF to HTML .Net» with code examples, 40.6 Mb.


  • Sweden, Stockholm
  • Mortviksvagen 68B 142 43 SKOGAS
  • Tel: +46 812111486
  • Email:
    Copyright © 2002 - 2020 SautinSoft (started from All rights reserved.