Skip to the content.

md2docx Documentation

Welcome to the official documentation for md2docx, a flexible Markdown to Word (DOCX) converter.

What is md2docx?

md2docx is a command-line tool that converts Markdown documents into professionally formatted Word (DOCX) files. Unlike other converters, md2docx gives you complete control over styling through simple YAML configuration files.

Key Features

🎨 YAML-Based Styling

Define your document style in a simple YAML file:

Styles:
  H1:
    Size: 26
    Bold: true
    Color: "2c3e50"
    ShowBorder: true

  Paragraph:
    Size: 11
    LineSpacing: "360"

📝 Rich Markdown Support

🌐 Cross-Platform

Distributed as Docker images with embedded fonts for consistent results across all platforms.

🎌 Japanese Support

Full support for Japanese vertical text (tategaki) for novels and traditional documents.

Quick Example

# Using Docker
docker run --rm -v $(pwd):/workspace forest6511/md2docx:latest \
  input.md -o output.docx -p default --preset-dir /app/config/presets

# Using .NET CLI
dotnet run --project src/MarkdownToDocx.CLI -- input.md -o output.docx

Use Cases

Getting Help

License

md2docx is open source software licensed under the MIT License.


Last Updated: 2026-02-17