This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/conversion/rtf-to-docx.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. RTF to DOCX C#: Convert RTF to Word in .NET | Nutrient .NET SDK
RTF to DOCX

Nutrient .NET SDK converts RTF documents to DOCX without requiring Microsoft Word or Office interop.

Download sample

Prepare the project

Register the SDK license before running conversion operations. For setup details, refer to the getting started with .NET SDK guide.

using GdPicture14;
LicenseManager license = new LicenseManager();
license.RegisterKEY("");
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
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());
}