Convert DOCX to DOC C#

Microsoft Word Documents are majorly of two types, DOC and DOCX. You can convert DOCX to DOC as well as from DOC to DOCX using C# or VB.NET programmatically. Each document can be processed and converted one by one or you can batch convert the DOC and DOCX files if you need to work with a lot of files. You can explore the following use cases to understand the topic in detail:

DOCX to DOC in C# or DOC to DOCX in C# – API Installation

Aspose.Words for .NET API can be used for efficient and quick conversion of DOCX to DOC and DOC to DOCX file format. You can configure the API in your .NET framework-based applications so you can use C# as well as VB.NET language to programmatically perform the conversion. You can download the DLL file as ZIP achieve from the official website, or you can install the API in your solution using the following NuGet command:

Install-Package Aspose.Words

Convert DOCX to DOC File Programmatically using C# or VB.NET

The main difference between DOC and DOCX is that the DOC file format is a binary file whereas the DOCX file format is a ZIP file containing all related XML files. You can convert DOCX file to DOC document with the following steps:

  1. Specify LoadFormat of the source file
  2. Load input DOCX file
  3. Save output DOC file using SaveFormat

The code snippet below shows how to convert DOCX to DOC using C# or VB.NET:

Batch Convert DOCX to DOC Files using C# or VB.NET

You may need to convert hundreds of DOCX files to DOC format in your .NET applications. You can easily convert a batch of files by executing the program only once. Follow the steps below for converting a batch of DOCX files:

  1. Load all DOCX files from a directory or folder
  2. Load each DOCX file using LoadOptions class
  3. Change the extension of each input file to DOC
  4. Save output file as DOC format file

The following code shows how to convert a batch of DOCX files to DOC format files using C# or VB.NET:

Convert DOC to DOCX File using C# or VB.NET

You can convert Microsoft Word DOC files to DOCX format file in your .NET Framework-based applications using C# or VB.NET. Below are the steps to perform the conversion:

  1. Set the LoadFormat of input DOC file
  2. Initialize the source document with Document class
  3. Save output file in DOCX format

The code below shows how to convert DOC to DOCX using C# or VB.NET:

Batch Convert DOC to DOCX in C# or VB.NET

You can also process the conversion of multiple files and different batches for DOC to DOCX conversion. You need to follow the steps below to convert such files:

  1. Load all DOC files from a directory
  2. Set the DOC value from LoadFormat enumeration
  3. Load input document
  4. Save output DOCX file using SaveFormat

The following code sample explains how to convert a batch of DOC files to DOCX files using C# or VB.NET:


You have learned how to perform inter-conversion of DOC and DOCX file format. Specifically, you have explored how to convert DOC to DOCX as well as DOCX to DOC. Moreover, you have also learned how to convert a batch of DOC or DOCX files programmatically using C# or VB.NET. However, if you are interested to learn further then you can refer to API Documentation and Product Page. Furthermore, in case of any queries, please feel free to reach out to us at Free Support Forum.

See Also