> ## Documentation Index
> Fetch the complete documentation index at: https://docs.docinject.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export documents to Word or Markdown

> Download any DocInject document as a .docx file using a custom Word template, or export it as a Markdown file. No template required.

Exporting lets you take your DocInject documents outside the platform. Use the Word export when you need a branded, formatted `.docx` file ready to send or archive. Use Markdown when you need plain text that works anywhere, wikis, code repositories, or downstream tools.

## Export formats

| Format   | File type | Template required |
| -------- | --------- | ----------------- |
| Word     | `.docx`   | Yes               |
| Markdown | `.md`     | No                |

## Export a document from the UI

<Steps>
  <Step title="Open a document">
    Navigate to the document you want to export.
  </Step>

  <Step title="Click Export">
    Click **Export** in the document toolbar. The Export modal opens.
  </Step>

  <Step title="Choose a format">
    Select **Markdown (.md)** or **Word (.docx)**.
  </Step>

  <Step title="Select a template (Word only)">
    If you chose Word, pick a template from the dropdown. The first available template is selected by default. If no templates appear, upload one first. See [Managing templates](#managing-templates) below.
  </Step>

  <Step title="Click Export">
    Click **Export**. The file downloads immediately.
  </Step>
</Steps>

## Managing templates

Templates are `.docx` files that control the layout and styling of your Word exports. DocInject fills in document sections, steps, and content during export.

### Upload a template

<Steps>
  <Step title="Go to Settings">
    Navigate to **Settings → Templates**.
  </Step>

  <Step title="Upload a file">
    Click the upload button and select a `.docx` file. Give the template a name.
  </Step>
</Steps>
