DOCX to Markdown Converter

Convert a Word document to clean Markdown for ChatGPT, Claude, GitHub or Obsidian. It runs in your browser, so the file never leaves your device.

Drop a Word .docx file here or browse

Word 2007 or later, or a .docx from Google Docs or Pages · stays on your device

Options

Why convert a Word document to Markdown?

A .docx file is a zip of XML that you can't read or edit as text, and copying out of Word drops tables into loose lines and brings invisible formatting along. Markdown keeps what matters (headings, lists, tables, links, footnotes) as plain characters that AI models, GitHub, wikis and note apps read natively. You can check every word before you paste it into a prompt, trim what isn't needed, and split a long document into chat-sized parts.

How to convert DOCX to Markdown

  1. Drop the .docx onto the box, or tap it to pick a file from your phone or computer.
  2. Check the options: images as placeholders, alt text or removed; merged table cells; table of contents; comments.
  3. Read the result, or open Preview to see headings and tables rendered. You can edit the text in place.
  4. Press Copy or Download .md. For a long document, use Split into parts and copy one part at a time.

What carries over from Word

The converter reads the document's real structure (its styles, numbering and tables), not how it looks on the page. Here is what each part of a Word file becomes:

How Word content maps to Markdown
In WordIn the Markdown
Title, Heading 1 to Heading 6# to ###### headings (Heading 7–9 become ######)
Bold, italic, strikethrough**bold**, *italic*, ~strikethrough~
Bulleted and numbered lists- and 1. lists, nested by level
Tables, including merged cellsPipe tables on a full grid; line breaks in a cell become <br>
Hyperlinks[text](https://…); links inside the document (table of contents, bookmarks) become plain text
Footnotes and endnotes[^1] in the text, [^1]: note at the end
EquationsLaTeX: $x^{2}$ inline, $$…$$ on its own line
Pictures![alt text](image-1.png), alt text only, or removed
Charts made in Word**Chart: title** and a table of the chart's data
Quote, Code and Caption styles> quotes, ``` code blocks, *captions*
Comments (optional)[AL1] markers and a Comments list at the end
Table of contentsLeft out by default (it repeats the headings)
Headers, footers, page numbersLeft out: Markdown has no pages

Text in text boxes and content controls comes through as ordinary paragraphs. Tracked changes come out as the document currently reads: insertions are kept and deletions left out. Anything that can't be represented, such as an embedded OLE chart, is listed under the result so you know what to check.

Example

A short report with a title, a subtitle, a bold word, a footnote, a link, a table where "North" is merged over two rows, and a chart pasted as a picture converts to:

# Quarterly Report

*Prepared for the board*

## Summary

Revenue grew **strongly** this quarter[^1]. See the [full report](https://example.com/report).

| Region | Quarter | Revenue |
| --- | --- | --- |
| North | Q1 | 1,200 |
| North | Q2 | 1,350 |

![Bar chart of revenue by quarter](image-1.png)

[^1]: Source: internal finance data, March 2026.

The merged "North" cell is repeated so each row still says which region it belongs to, the footnote moves to the end as [^1]:, and the picture keeps its alt text. Untick Repeat merged cells if you'd rather leave the second row's region empty, as it looks in Word.

Using the Markdown with ChatGPT, Claude and Gemini

  • Check the size first. The result card shows an estimated token count for each model. Most documents fit comfortably in one message; a 100-page report may not, and the AI's answer needs room too.
  • Split long documents properly. Split into parts breaks at headings and paragraphs, keeps tables and code blocks whole, and repeats a table's header row when a table has to be split. Tick Ask the AI to wait to add a short note to each part so the model doesn't start answering after part one.
  • Drop what the model doesn't need. Images become a placeholder with their alt text by default, which tells the model a picture was there and what it shows. Choose Remove to save tokens, or edit the text directly in the result box before copying.
  • Keep comments for reviews. With Include comments ticked, reviewers' comments are listed at the end with markers in the text, so you can ask an AI to "address every comment" and it can see what each one refers to.
  • Equations survive as LaTeX. A homework sheet or a technical paper keeps its formulas as $\frac{a}{b}$-style text, which models read reliably.

Tips for the cleanest conversion

  • Use Word's heading styles. Text that is only made big and bold looks like a heading but is a normal paragraph, so it comes out as **bold** text rather than a # heading. Apply Heading 1, Heading 2 and so on in Word and convert again.
  • Use real lists. Bullets and numbers typed by hand ("1." then a tab) stay as plain text. Lists made with Word's list buttons become Markdown lists, including nested levels.
  • Give pictures alt text. In Word, right-click a picture and choose Edit Alt Text. That description is what an AI model gets in place of the image.
  • Convert other formats to .docx first. Save .doc and .odt files as .docx in Word or LibreOffice; download Google Docs as Microsoft Word (.docx). For a web page, use the HTML to Markdown converter; for slides, the PPTX to Markdown converter; for a spreadsheet, CSV/XLSX to Markdown Table.
  • Polish the result. Open the Markdown in the Markdown Editor to edit it with a live preview, or run it through the Markdown Cleaner to normalise spacing and headings. The Word Counter gives reading time and word counts for the text.

How the token estimates work

The token counts under the Markdown are estimates for the converted text, not for the original .docx file.Chat models read text as tokens: whole words, pieces of longer words, numbers and punctuation. Each model family splits text its own way, so one document has a different count in ChatGPT, Claude and Gemini. The counts here are worked out in your browser, without sending the text anywhere:

  • ChatGPT: the text is cut up with the same splitting rules as OpenAI's o200k tokenizer (used by GPT-4o and later models), and each piece is costed from statistics measured on that tokenizer. In our tests it came within about 5% of the real count for English prose, Markdown and code; for JSON, HTML and some languages it can be 10–30% off.
  • Gemini: calibrated the same way against the tokenizer Google released with its open Gemma 3 models, which Google's Gemma 3 report describes as the one Gemini 2.0 uses. It splits every digit into its own token, so tables and numbers cost noticeably more than the usual "about 4 characters per token" rule of thumb suggests. In our tests it was within about 10% for English text, code and data.
  • Claude: Anthropic doesn't publish its tokenizer, so this is the roughest of the three. Claude typically counts 15–20% more tokens than OpenAI's tokenizer for English and more for code, numbers and non-Latin scripts; the estimate applies those ratios to the ChatGPT figure. The newest Claude models can count somewhat more again.

Treat them as planning numbers: good for "will this fit?" and for splitting, not for billing. When you split a document into parts, choose a part size with some headroom below your model's limit, and remember that your own question and the AI's answer use tokens too.

Frequently Asked Questions

How do I convert a Word document to Markdown?

Drop the .docx file onto the box above (or tap it to choose a file). The Markdown appears straight away: check it in the Preview tab, then press Copy or Download .md. Nothing is installed and nothing is uploaded; the conversion runs in your browser.

Is Markdown better than a Word file for ChatGPT, Claude or Gemini?

For text, usually yes. Markdown keeps the structure a model needs (headings, lists, tables, links) as plain characters it reads natively, with nothing hidden. Pasting from Word often flattens tables into loose lines, and attached .docx files are converted to text by the chat app in ways you can't see or check. Markdown also lets you edit, trim and split the text before you send it.

Are tables, footnotes, charts and images kept?

Tables become Markdown tables, with the first row as the header and line breaks inside cells kept as <br>. Footnotes and endnotes become Markdown footnotes ([^1] in the text, the note at the end). Charts made in Word become a table of their data under the chart's title. Pictures become placeholders such as ![Map of the site](image-1.png) using the alt text from Word, or you can keep only the alt text or drop them, and download a .zip with the Markdown and the image files.

What happens to merged cells in Word tables?

Markdown tables can't merge cells, so each merged cell is laid out on the full grid. By default its text is repeated in every row and column it covered, which keeps each row meaningful on its own; untick "Repeat merged cells" to leave the extra positions empty instead. Either way the columns stay aligned.

Does it convert Word equations?

Yes. Equations made with Word's equation editor are turned into LaTeX, inline as $…$ and on their own line as $$…$$: fractions, powers, indices, roots, sums, integrals, brackets, matrices and more. ChatGPT, Claude and Gemini all read LaTeX, and many Markdown editors render it.

What happens to comments and tracked changes?

Comments are left out unless you tick "Include comments": then each comment's position is marked like [AL1] and the comments are listed at the end. Tracked changes come out as the current text, with insertions included and deletions left out, so accept or reject changes in Word first if the difference matters.

Can I convert an old .doc file, a Google Doc or a Pages document?

Only the .docx format (Word 2007 and later) can be read. Open a .doc file in Word, LibreOffice or Google Docs and save it as .docx first. In Google Docs use File › Download › Microsoft Word (.docx); in Apple Pages use File › Export To › Word.

My document is long. How do I paste it into ChatGPT or Claude?

The result card estimates the token count for ChatGPT, Claude and Gemini. If the document is too long for one message, use "Split into parts for a chat": choose a part size, then copy the parts in order. Parts break at headings and paragraphs, never in the middle of a table or code block, and can carry "Part 1 of 3" labels plus a note asking the AI to wait for the last part.

Why are some characters preceded by a backslash?

A backslash stops a character from being read as Markdown formatting, for example a line that starts with "1." but isn't a numbered list, or an asterisk that isn't meant as bold. The converter only escapes characters that would otherwise change the meaning, so snake_case names and prices like 5 * 3 are left alone.

Which Markdown flavour does it produce?

GitHub-flavoured Markdown (GFM): # headings, - bullet lists, 1. numbered lists, pipe tables, [^1] footnotes and ~strikethrough~. It works on GitHub and GitLab and in Obsidian, Notion imports, static site generators and AI chats.

Are headers, footers and page numbers included?

No. They sit outside the document body, and Markdown has no pages, so they are left out. Text boxes and content controls in the body are included as ordinary paragraphs.

Is my document uploaded anywhere?

No. The file is read and converted by JavaScript in your browser tab and never leaves your device, which makes this suitable for confidential documents. Your option choices are remembered in this browser; the document is not stored.

Advertisement