MarkPrep
word → markdown

Word to Markdown

Convert a Word .docx file to clean Markdown in your browser, images included.

Drop files, paste, or click to browse
PDF, Word, Excel, PowerPoint, HTML, CSV, JSON, EPUB, images and more. Nothing is uploaded.
Live count of requests to other websites during conversion: 0To see for yourself, press F12, open the Network tab and convert a file.

MarkPrep converts a Microsoft Word document to Markdown free, in your browser, so the file never leaves your device. It reads .docx files with mammoth.js, the open-source library that Microsoft's MarkItDown also uses for Word files. Each image in the document is saved as its own file, linked from the Markdown. After conversion you see an estimated token count for your AI model and a chunk preview.

What gets converted

In the Word fileIn the Markdown
Headings (Heading 1 to 6, Title, Subtitle)Heading 1 to 6 become # to ######. Title also becomes #, and Subtitle becomes ##.
Bold, italics, strikethrough**bold**, *italics* and ~strikethrough~ (one tilde on each side). Underlining is dropped.
Bulleted and numbered listsMarkdown lists, with nesting kept.
TablesTables in GitHub Flavored Markdown (GFM), GitHub's own version of Markdown. The first row becomes the header row. Merged cells lose their merge, and the Verify tab flags uneven rows.
Links[link text](address)
ImagesSaved as images/image-1.png, images/image-2.png and so on. The Markdown links to each file with a plain image link, without width or height tags.
Footnotes and endnotesNumbered notes at the end of the Markdown. A number in the text links to each note.
CommentsLeft out.
Tracked changesRead as if accepted: inserted text is kept and deleted text is dropped.
Text boxesTheir text follows the paragraph the box sits in.
Fonts, colours and page layoutDropped, so text set in a code font comes out as an ordinary paragraph.

How to convert Word to Markdown

  1. 1Drop your Word document onto the box above, or click the box to pick a file.
  2. 2MarkPrep converts it to Markdown in your browser and shows an estimated token count for the AI model you pick.
  3. 3Check the result on the Preview tab. The Chunks tab holds the chunk preview, which shows where the text splits into chunks of the size you set. The Verify tab flags tables with uneven rows, pages where OCR was unsure and text that didn't convert cleanly.
  4. 4Copy the Markdown, or download it as a .md file. You can also export the chunks as JSONL, a file with one chunk per line. A RAG pipeline loads that file so an AI model can look up passages in your documents before it answers. A document with images also gets a .zip download with the Markdown and its images folder.

Format notes & gotchas

  • Legacy .doc files (Word 97 to 2003) don't convert. Open them in Word or LibreOffice and save as .docx first.
  • Paragraphs inside a table cell are joined onto one line, because a Markdown table cell can't hold line breaks.

Related converters

Frequently asked questions

How do I convert a Word document to Markdown?+

Drop the .docx file into the converter above. To convert many Word files, the Pro command-line converter can watch a folder and convert each .docx you put in it.

Which Word format works?+

Only .docx, the current Word format. Google Docs and LibreOffice can both save a document as .docx.

Can I convert a Word document to Markdown with images?+

Yes. Choose the .zip download, which contains the .md file and an images folder. Unzip it, and the image links in the Markdown open each image.

How do I convert Google Docs to Markdown?+

In Google Docs, download the document as Microsoft Word (.docx). Drop that file here and MarkPrep converts it like any Word document, images included.

Can Pandoc convert Word to Markdown?+

Yes. Pandoc, a free program you run from the command line, reads .docx files, for example pandoc report.docx -o report.md. Its --extract-media option saves the images. MarkPrep is a browser tool, so it needs no install, and it adds a token count and chunk preview. Pandoc can't read PDF files, so use PDF to Markdown for those.

Can I convert Word to Markdown on a Mac or Linux?+

Yes. Word to Markdown runs in your browser on macOS, Windows or Linux, Ubuntu included, so there is nothing to install. After you have converted a Word file once online, the converter also works offline in that browser.

Is my file uploaded anywhere?+

No. Conversion runs in your browser tab, and there is no upload step. Two optional features do send something, and each says so where you use it. URL to Markdown asks MarkPrep's server to fetch the public web page you name. AI enhance is a button that asks an AI model to tidy the structure of the Markdown. It sends the converted text to Anthropic with your own Anthropic API key, a personal access key you create on Anthropic's site and add in Settings.

How much does it cost?+

Conversion and the AI-Ready Pack are free and unlimited, because they run on your device. The AI-Ready Pack is the token count, the chunk preview and the JSONL export. MarkPrep Pro costs £19 once and adds tools that run outside the browser. Its command-line converter turns files into Markdown from a terminal, and it can watch a folder and convert each file you put in it. Its local MCP server lets AI apps such as Claude Code convert files on your computer. MCP is the standard those apps use to call outside tools.

Are the token counts accurate?+

Every count is an estimate, marked "approx" next to the number. OpenAI hasn't published the encoding its GPT-6 models use, so MarkPrep counts them with o200k_base, the encoding of OpenAI's earlier models. Anthropic and Google offer no tokenizer that runs in a browser. For Claude, MarkPrep counts about 2.5 characters as one token, and for Gemini about 4, the averages the two companies give. Real counts vary with the text, so leave some room below the model's limit.

MarkPrep Pro, £19 once

Pro lets you convert files to Markdown from a terminal, or from AI apps such as Claude Code, on your own computer.

See pricing