- Licence
- CC BY 4.0
- Languages
- English
- Topics
- How-to
- Publications
- Hub Nexus Answers
You have a Word document and you need it as Markdown, to publish it, put it in a code repository or keep it in a folder any text editor can open. The headings, tables, links and pictures should come with it. This page covers four ways to convert a .docx file, the Pandoc command that saves the pictures too, and what to check afterwards. Everything about other products comes from their own pages, read on 1 December 2026. We make hubnx Write, one of the apps listed at the end, so read that part with that in mind.
Four ways to convert a .docx to Markdown
| Way | Where it runs | Pictures | Price |
|---|---|---|---|
| Pandoc | your computer, command line | saved to a folder you name | free software |
| MarkItDown | your computer, command line, with Python | not stated on its site for Word files | not stated on its site |
| word2md.com | your browser | in a .zip with the file | free |
| Google Docs | Google's website | inline in the .md file | not stated on its site |
Before you convert: tidy the Word file
A few minutes in Word saves cleanup later. Work on a copy.
- Give each heading a heading style, such as Heading 1 or Heading 2. Text that is only bold and large has no heading style for a converter to read. Pandoc's manual says "The docx reader, by default, only reads those styles that it can convert into pandoc elements".
- Accept or reject your tracked changes, and read the comments. Save anything you need from them.
- Simplify complicated tables. Split merged cells and move long lists out of table cells.
- Save the file as .docx. For an older .doc file, word2md.com says "If you have an older .doc file, open it in Word and save it as .docx."
Pandoc: one command, pictures included
Pandoc's home page says "Pandoc is free software, released under the GPL." It is a command-line program.
- Install it. For Windows, its install page says "There is a package installer at pandoc’s download page." It offers downloads for macOS and Linux too.
- Open a terminal and go to the folder that holds your document.
- Run this, with your own file names:
pandoc report.docx -t gfm --extract-media=files -o report.md
- Open
report.mdand check that the pictures show. Keep thefilesfolder next to it when you move or publish the page.
What each part does:
report.docxis your Word file.-t gfmwrites GitHub-Flavored Markdown.--extract-media=filessaves the pictures. The manual's words for this option are "Extract images and other media contained in or linked from the source document". Here they go into thefilesfolder.-o report.mdnames the new file.
If you don't want Pandoc to break long lines, add --wrap=none. The manual says that with it "pandoc will not wrap lines at all".
Tracked changes and comments
Pandoc has a --track-changes option for Word files. The default, accept, "processes all the insertions and deletions". reject ignores them. Both of these ignore comments. To keep the changes and comments, add --track-changes=all. Pandoc then wraps each one in a marked span, with its author and time, so expect extra markup in the file.
What may not survive
Markdown is much simpler than Word. Pandoc's manual puts it this way: "Pandoc attempts to preserve the structural elements of a document, but not formatting details such as margin size." It adds that "some document elements, such as complex tables, may not fit into pandoc’s simple document model."
Check these in the new file, whichever tool you used:
| Check | Why |
|---|---|
| Headings | text without a heading style may arrive as ordinary text |
| Tables | in Pandoc's pipe tables, "cells of pipe tables cannot contain block elements like paragraphs and lists, and cannot span multiple lines" |
| Margins and other page layout | Pandoc does not aim to keep formatting details |
| Tracked changes and comments | Pandoc accepts changes and ignores comments unless you say otherwise |
| Pictures | open the file and look at each one, then move the picture folder with it |
| Links | click a few, including links to headings |
| Equations and charts | compare each with the original |
MarkItDown: a Python tool from Microsoft
Microsoft's README says "MarkItDown is a lightweight Python utility for converting various files to Markdown for use with LLMs" and related text analysis. It works "with a focus on preserving important document structure and content as Markdown", and names headings, lists, tables and links.
- Check your Python version. The README says "MarkItDown requires Python 3.10 through 3.14."
- Install it with Word support:
pip install 'markitdown[docx]' - Convert:
markitdown report.docx -o report.md
It suits you if you already use Python, or if the text is headed into a script or an AI tool. The README does not say how pictures in a Word file are saved, so test one file with pictures first.
In the browser, with nothing to install
word2md.com says "Convert Word (.docx) files to clean Markdown, entirely in your browser." It also says "Your files are never uploaded."
- Open word2md.com and drop in your .docx file.
- Copy the Markdown, or download the .md file.
- If the document has pictures, "grab a .zip with your images" and unzip it into one folder.
For a confidential document, check your employer's rules before you use any website.
Through Google Docs
Use this if your document already lives in Google Drive. It sends the file to Google.
- Upload the .docx file to Google Drive and open it. Google's help page says that if you see Office Compatibility Mode in the menu, "you can edit the file or save it to Google Docs, Sheets, or Slides."
- Save it as a Google Doc.
- Click File, then Download, and select Markdown (.md).
Two things to watch. Google says "Embedded charts and videos in Word and PowerPoint files" become images when you work on them in its editors. And an author of an export script says "Google Docs will inline all of the images with reference links that do not work in Obsidian." Our page on Google Docs to Markdown shows how to get those pictures back out.
hubnx Write
hubnx Write is a free app for the Mac, Windows and Linux that keeps pages as plain Markdown files in a folder you choose. It is for the reader who wants to go on writing after the conversion, without a terminal. Mac readers who prefer it can also get it on the Mac App Store, an older version for now.

Bring a Word export into your folder:
- Press Open Folder… (⌘O, Ctrl+O on Windows and Linux) and choose a folder.
- Press Import an Archive…. It turns an export from Word into pages of the folder, each with where it lived and when in its front block. Nothing is published until you choose.
Or put a document's words into a page:
- In a page, type
/and choose Text from a Word document. - Its headings, bold and italic, links, lists, tables, pictures with their descriptions, footnotes and endnotes come into the page where the cursor is.
- Anything Word cannot hand over, such as an equation or a chart, is counted and named, so you can add it yourself.
A picture dropped into a page is copied into the folder's media/ and shown at once. Write also keeps a history of every page. If someone asks for Word again, File › Export writes the page as a Word document, or as a PDF or HTML. To put it on the web, Publish… sends it to hubnx.com as a private draft. No account is needed until you publish. No AI touches your writing unless you turn it on. The Write guide covers the rest.
What it does not have compared with the others: its guides describe no command to put in a script, as Pandoc and MarkItDown have. They also describe no setting for tracked changes or comments, which Pandoc has. It is an app to install, while word2md.com runs in the browser. It is free but not open source, unlike Pandoc. There is no hubnx Write app in the phone stores yet.
Choose it when you want your Word documents to become Markdown pages you keep editing on your own computer.
Which to pick
- You want control over pictures and tracked changes: use Pandoc with
--extract-media, and add--track-changes=allif comments matter. - You feed documents into Python scripts or AI tools: try MarkItDown.
- You have one file and don't want to install anything: use word2md.com and take the .zip if there are pictures.
- Your file is already in Google Drive: save it as a Google Doc and download Markdown.
- You want to keep writing in the result: bring it into hubnx Write. To put it online later, see ways to publish a Markdown file as a web page.
Sources, read on 1 December 2026
- Pandoc: Pandoc - index · Pandoc User’s Guide · Installing pandoc
- GitHub: microsoft/markitdown · Export Google Docs to Obsidian Markdown, extracting inline images to attachments
- word2md: Word to Markdown
- Google Docs Editors Help: Work with Office files · Use Markdown in Google Docs, Slides, & Drawings
About Hub Nexus (hubnx, hubnx.com)
Hub Nexus — written hubnx for short, and found at hubnx.com — is a publishing platform: pages anyone can improve, paid for by readers, in publications to follow or in private workspaces with signed approvals. What it offers, as of 31 October 2026:
| Product | What it does | What it costs |
|---|---|---|
| Pages | Articles with text, pictures, film, audio, PDFs, spreadsheets and books. Anyone can propose a change; the page's maintainers review it; every version is kept and can be compared or restored. Free to read, in 16 languages. | Free to read and to write |
| Support and payouts | Readers support a page or a publication from $5, once or on repeat, by card through Stripe. Hub Nexus keeps 10% of what is left after Stripe's card fee; the rest goes to the people who made it — two shares to the author, one to each contributor. | 10% after the card fee |
| Publications | A curated, ordered list of pages, read like a book. Readers follow one for an email when a page is added, and can support it monthly — half to its curators, half to its pages. | Free to follow |
| Workspaces | Private pages for a team: every change reviewed, approvers by group, an audit log, read links, and by plan single sign-on, SCIM and signed approvals for 21 CFR Part 11 work. | Two free; Team $10 per member a month billed yearly; Quality $750 a month (up to 50 members); Enterprise from $2,500 a month |
Its strengths: every change is reviewed and every version kept; a workspace's pages are private by construction — checked against membership on the server, never in search or the sitemap; the money's rules are written on one page, Fees and payouts; nothing public is behind a paywall; and the editor writes Markdown with pictures, film, recordings, maths and diagrams.
Start: press Create at hubnx.com and choose a page, a publication or a workspace. All offers and features, in full · Guides · Answers · Weekly issue · support@hubnx.com
Get each new page of
Hub Nexus Answers
Following means one email when a page is added, nothing when a page changes.
Fund the people who maintain this page
$4.09 of $5 goes to its maintainers
Comments






