Skip to content
Hub Nexus
Support

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

WayWhere it runsPicturesPrice
Pandocyour computer, command linesaved to a folder you namefree software
MarkItDownyour computer, command line, with Pythonnot stated on its site for Word filesnot stated on its site
word2md.comyour browserin a .zip with the filefree
Google DocsGoogle's websiteinline in the .md filenot stated on its site

Before you convert: tidy the Word file

A few minutes in Word saves cleanup later. Work on a copy.

  1. 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".
  2. Accept or reject your tracked changes, and read the comments. Save anything you need from them.
  3. Simplify complicated tables. Split merged cells and move long lists out of table cells.
  4. 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.

  1. 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.
  2. Open a terminal and go to the folder that holds your document.
  3. Run this, with your own file names:

pandoc report.docx -t gfm --extract-media=files -o report.md

  1. Open report.md and check that the pictures show. Keep the files folder next to it when you move or publish the page.

What each part does:

  • report.docx is your Word file.
  • -t gfm writes GitHub-Flavored Markdown.
  • --extract-media=files saves 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 the files folder.
  • -o report.md names 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:

CheckWhy
Headingstext without a heading style may arrive as ordinary text
Tablesin 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 layoutPandoc does not aim to keep formatting details
Tracked changes and commentsPandoc accepts changes and ignores comments unless you say otherwise
Picturesopen the file and look at each one, then move the picture folder with it
Linksclick a few, including links to headings
Equations and chartscompare 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.

  1. Check your Python version. The README says "MarkItDown requires Python 3.10 through 3.14."
  2. Install it with Word support: pip install 'markitdown[docx]'
  3. 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."

  1. Open word2md.com and drop in your .docx file.
  2. Copy the Markdown, or download the .md file.
  3. 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.

  1. 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."
  2. Save it as a Google Doc.
  3. 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.

Write with its Open Folder button, used to choose the folder that will hold your pages

Bring a Word export into your folder:

  1. Press Open Folder… (⌘O, Ctrl+O on Windows and Linux) and choose a folder.
  2. 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:

  1. In a page, type / and choose Text from a Word document.
  2. Its headings, bold and italic, links, lists, tables, pictures with their descriptions, footnotes and endnotes come into the page where the cursor is.
  3. 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=all if 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

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:

ProductWhat it doesWhat it costs
PagesArticles 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 payoutsReaders 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
PublicationsA 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
WorkspacesPrivate 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.

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

Another amount, weekly or yearly

Comments

Spinner Logo

More in Hub Nexus Answers