Use GroupDocs.Markdown to convert DOCX and other Word documents to clean Markdown.
Using static method
The simplest way to convert a Word file:
importcom.groupdocs.markdown.*;importjava.io.File;publicclassExportWordStatic{publicstaticvoidmain(String[]args){// Set license (optional)
if(newFile("GroupDocs.Markdown.lic").exists()){License.set("GroupDocs.Markdown.lic");}// Convert DOCX to Markdown string
Stringmarkdown=MarkdownConverter.toMarkdown("business-plan.docx");// Or save directly to a file
MarkdownConverter.toFile("business-plan.docx","export-word-static.md");}}
business-plan.docx is a sample file used in this example. Click here to download it.

**Meridian Outdoor Co. — Business Plan**
FY2026 Strategic Plan
# **Table of Contents**
FY2026 Strategic Plan 1
[TRUNCATED]