Import and export: Word, PDF, EPUB and more, in MDZip Studio and on the command line

Getting a document into MDZip (.mdz) used to mean copying the text and saving the pictures one by one. Now there are three ways to convert, in both directions, all free and all running on your own computer:
- MDZip Studio 1.8.0 has File → Import… and File → Export…
- MDZip for Pandoc adds
.mdzto Pandoc, the document converter many writers and publishers already use - MDZip for MarkItDown adds
.mdzto Microsoft's MarkItDown, the converter made for handing documents to AI tools
Studio uses the other two behind its menus, so a file converts the same way whichever you use.
In MDZip Studio
File → Import… turns a Word document, a PowerPoint presentation, an Excel workbook, a PDF, a web page, an EPUB book and more into an .mdz, with the pictures inside it. The result opens in View so you can read through what came across, and the original file isn't changed.
- Keep the look. Markdown has no way to write a picture's size, a table with merged cells, a shaded cell or underlined text. Studio can keep these as HTML inside the document, so it looks like the original. You choose which, and each choice says what it costs: HTML looks right but is harder to edit.
- Word documents keep their styles. Studio can save a copy of the document's styles inside the
.mdz, so exporting back to Word looks like the original, and a stylesheet so Studio's preview shows its fonts and colours. - Conversion notes list what didn't come across, such as comments, tracked changes or charts, so you know what to check against the original.
File → Export… (Ctrl+E) saves the document as Word, PDF, a one-file web page, EPUB, OpenDocument, PowerPoint, Rich Text or LaTeX. A document split over several pages can be exported as one, with the links between its pages still working. PDF needs nothing installed. For the others, Help → System Integration… installs Pandoc and markitdown-mdz for you.
Exported Word documents can have your own styles: File → Insert Word Template adds a Word template to the .mdz, you change its styles in Word, and every export uses them, for anyone who exports the document.
Both dialogs show the exact command they run, with a Copy button, so you can run it yourself or put it in a script. Import and Export in Studio's help has the details.
With Pandoc
mdzip-pandoc 0.8.0 is a free add-on: download it, unzip it, and give Pandoc the path of its mdz.lua. The name of the output file picks the format.
pandoc -f mdzip-pandoc/mdz.lua guide.mdz -o guide.docx
pandoc -f mdzip-pandoc/mdz.lua+combine guide.mdz -o guide.epub
pandoc report.docx -t mdzip-pandoc/mdz.lua -o report.mdz- Pictures travel, into the Word file or e-book, and out of a Word file into the
.mdz. +combinemakes a document split over several files into one, with the links between them still working.- Word styles can travel inside the
.mdz, so everyone who converts it gets the same look. - It's also a GitHub Action, for turning
.mdzfiles into Word files or a whole website whenever you push.
With MarkItDown
markitdown-mdzip 0.1.2 adds .mdz to MarkItDown in both directions. It needs Python 3.10 to 3.14.
pip install "markitdown-mdzip[docx,pptx]"
markitdown-mdz report.docx # writes report.mdz, pictures included
markitdown --use-plugins guide.mdz # .mdz to MarkdownMarkItDown on its own leaves a placeholder where each picture was. markitdown-mdz keeps them, from Word, PowerPoint, web pages and EPUB books, with an EPUB's cover. It also works from Python, for pipelines that feed documents to AI tools.
Tell us how it goes
Converting real documents finds the cases tests don't. If something didn't come across the way you expected, say so in Q&A or open an issue on Studio, mdzip-pandoc or markitdown-mdzip. If you'd like to help test, there are step-by-step test scripts for the Pandoc and MarkItDown add-ons.
Download MDZip Studio · MDZip for Pandoc · MDZip for MarkItDown · All tools
This post renders from 2026-11-30-import-and-export-word-pdf-epub-and-more-in.mdz (MDZip, ~30 KB) — one self-contained file. Download it, open it in the web editor, or read how these pages are made. Built with @mdzip/renderer.