---
title: "RTF to DOCX C#: Convert RTF to Word in .NET | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/conversion/rtf-to-docx/"
md_url: "https://www.nutrient.io/guides/dotnet/conversion/rtf-to-docx.md"
last_updated: "2026-06-15T15:43:43.643Z"
description: "Discover how to convert PDF, HTML, RTF, and more to DOCX, XLSX, and PPTX formats with our step-by-step guide for seamless file conversion."
---

# Convert RTF to Word in C#

### Overview

[Overview](https://www.nutrient.io/guides/dotnet/conversion/to-office.md)

### PDF to DOCX

[PDF to DOCX](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-word.md)

### PDF to XLSX

[PDF to XLSX](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-excel.md)

### PDF to PPTX

[PDF to PPTX](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-powerpoint.md)

### HTML to DOCX

[HTML to DOCX](https://www.nutrient.io/guides/dotnet/conversion/html-to-word.md)

### RTF to DOCX

[RTF to DOCX](https://www.nutrient.io/guides/dotnet/conversion/rtf-to-docx.md)

### Any File to Office

[Any File to Office](https://www.nutrient.io/guides/dotnet/conversion/any-file-to-office.md)

Nutrient.NET SDK (formerly GdPicture.NET) includes the ability to convert any supported file type into Word.

To save an RTF document to a Word document (DOCX), first use the [`LoadFromFile` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~LoadFromFile.html) of the [`GdPictureDocumentConverter` class](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter.html) to load it. Then use the [`SaveAsDOCX` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~SaveAsDOCX.html) to convert it to a DOCX.

The `LoadFromFile` method uses the following parameter:

- `FilePath` — The source RTF file path.

- `DocumentFormat` — A member of the [`DocumentFormat` enumeration](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.DocumentFormat.html). Use `DocumentFormat.DocumentFormatRTF` for RTF input.

The `SaveAsDOCX` method uses the following parameter:

- `Stream`, or the overload `FilePath` — A stream or file path where the currently loaded document is saved as a DOCX file. When using a stream, it must be open for reading, writing, and seeking.

When you use the stream overload, the stream should be open for both reading and writing, and it should be closed/disposed of by the user once processing is complete using the [`CloseDocument` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~CloseDocument.html).

## How to convert RTF to DOCX

1. Create a `GdPictureDocumentConverter` object.

2. Load the source RTF file with [`GdPictureDocumentConverter.LoadFromFile(String, DocumentFormat)`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~LoadFromFile.html) using `DocumentFormat.DocumentFormatRTF`.

3. Save the loaded document as a DOCX using [`SaveAsDOCX`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~SaveAsDOCX.html).

The following example converts and saves an RTF document to a DOCX file:

### C#

```csharp

using GdPictureDocumentConverter converter = new();

GdPictureStatus status = converter.LoadFromFile(@"input.rtf", GdPicture14.DocumentFormat.DocumentFormatRTF);
if (status!= GdPictureStatus.OK)
{
    throw new Exception(status.ToString());
}

status = converter.SaveAsDOCX("output.docx");
if (status!= GdPictureStatus.OK)
{
    throw new Exception(status.ToString());
}

status = converter.CloseDocument();
if (status!= GdPictureStatus.OK && status!= GdPictureStatus.Aborted)
{
    throw new Exception(status.ToString());
}

Console.WriteLine("The input document has been converted to a docx file");

```

#### See also

- [`DocxImageQuality property`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~DocxImageQuality.html)

- [`GdPictureDocumentConverter class`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter.html)

- [`GdPictureDocumentConverter members`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter_members.html)

- [`CloseDocument method`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~CloseDocument.html)

- [`RasterizationDPI property`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~RasterizationDPI.html)

#### Related topics

- [Load a file](https://www.nutrient.io/guides/dotnet/load-a-file.md)

- [Save a file](https://www.nutrient.io/guides/dotnet/save-a-file.md)

## Optional DOCX configuration properties

Optionally, configure the conversion with the following properties of the `GdPictureDocumentConverter` object:

- [`DocxImageQuality`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~DocxImageQuality.html) is an integer from 0 to 100 that specifies the quality used to compress images embedded in the resulting DOCX document.

- [`RasterizationDPI`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureDocumentConverter~RasterizationDPI.html) is an integer that specifies the resolution, expressed in dots per inch (DPI), used when vector content must be rasterized during conversion to DOCX.
---

## Related pages

- [Convert to MS Office from any file in C#](/guides/dotnet/conversion/any-file-to-office.md)
- [Convert any image to PDF in C#](/guides/dotnet/conversion/any-image-to-pdf.md)
- [Convert DWG or DXF to PDF in C#](/guides/dotnet/conversion/cad-to-pdf.md)
- [Convert bitmap (BMP) to PDF in C#](/guides/dotnet/conversion/bmp-to-pdf.md)
- [Convert emails (MSG/EML) to PDF in C#](/guides/dotnet/conversion/email-to-pdf.md)
- [Convert Excel to PDF in C#](/guides/dotnet/conversion/excel-to-pdf.md)
- [HTML to PDF file logging diagnostics](/guides/dotnet/conversion/html-to-pdf-file-logging-diagnostics.md)
- [Embed a font in a Word document](/guides/dotnet/conversion/embed-font-in-word-document.md)
- [HTML to PDF logging diagnostics](/guides/dotnet/conversion/html-to-pdf-logging-diagnostics.md)
- [Convert HTML to PDF using C# and .NET](/guides/dotnet/conversion/html-to-pdf.md)
- [Convert images to PDFs in C#](/guides/dotnet/conversion/image-to-pdf.md)
- [Convert HTML to Word in C#](/guides/dotnet/conversion/html-to-word.md)
- [Convert files to PDF in C# .NET](/guides/dotnet/conversion.md)
- [Converting a document from Markdown to PDF format](/guides/dotnet/conversion/markdown-to-pdf.md)
- [Convert JPG to PDF in C#](/guides/dotnet/conversion/jpg-to-pdf.md)
- [Merge and combine multiple files into a PDF in C#](/guides/dotnet/conversion/merge-to-pdf.md)
- [Convert PDF to bitmap (BMP) in C#](/guides/dotnet/conversion/pdf-to-bmp.md)
- [Convert MS Office files to PDFs in C#](/guides/dotnet/conversion/office-to-pdf.md)
- [Converting PDF to HTML](/guides/dotnet/conversion/pdf-to-html.md)
- [Converting a document from PDF to Markdown format](/guides/dotnet/conversion/pdf-to-markdown.md)
- [Convert PDF to Excel in C#](/guides/dotnet/conversion/pdf-to-excel.md)
- [Convert PDF to JPG in C#](/guides/dotnet/conversion/pdf-to-jpg.md)
- [Convert PDF to other images in C#](/guides/dotnet/conversion/pdf-to-other-image.md)
- [Convert PDF to PDF/UA](/guides/dotnet/conversion/pdf-to-pdf-ua.md)
- [Convert PDF to PDF/A](/guides/dotnet/conversion/pdf-to-pdfa.md)
- [Convert PDF to PNG in C#](/guides/dotnet/conversion/pdf-to-png.md)
- [Convert images to PDFs in C#](/guides/dotnet/conversion/pdf-to-image.md)
- [Convert PDF to PowerPoint in C#](/guides/dotnet/conversion/pdf-to-powerpoint.md)
- [Convert PDF to Word in C#](/guides/dotnet/conversion/pdf-to-word.md)
- [Convert PDF to TIFF in C#](/guides/dotnet/conversion/pdf-to-tiff.md)
- [Convert PDF to SVG in C#](/guides/dotnet/conversion/pdf-to-svg.md)
- [Convert PNG to PDF in C#](/guides/dotnet/conversion/png-to-pdf.md)
- [Convert PowerPoint to PDF in C#](/guides/dotnet/conversion/powerpoint-to-pdf.md)
- [Convert text to PDF in C#](/guides/dotnet/conversion/text-to-pdf.md)
- [Convert SVG to PDF in C#](/guides/dotnet/conversion/svg-to-pdf.md)
- [Convert RTF to PDF in C#](/guides/dotnet/conversion/rtf-to-pdf.md)
- [Convert to Word, Excel, or PowerPoint in C#](/guides/dotnet/conversion/to-office.md)
- [Convert TIFF to PDF in C#](/guides/dotnet/conversion/tiff-to-pdf.md)
- [Converting Word documents to PDF/UA](/guides/dotnet/conversion/word-document-to-pdf-ua.md)
- [Convert Word to PDF in C#](/guides/dotnet/conversion/word-to-pdf.md)
- [Converting Word documents with comments to PDF](/guides/dotnet/conversion/word-document-to-pdf-including-comments.md)

