Skip to content

How to give a Word document to an AI chat and keep its structure

Why pasted Word text loses its outline, what Markdown keeps, how to handle tables, and what to check before you paste.

By OpenAnyDoc ·

The short answer

Convert the .docx file to Markdown and paste that. Markdown marks Word's headings with #, ## and ###, keeps bulleted and numbered lists as lists and keeps links with their address, so ChatGPT, Claude or Gemini can follow the outline of the document. OpenAnyDoc's Word to Markdown does it in your browser without uploading the file. Tables become Markdown tables too.

What gets lost when you copy from Word

Word shows structure with styles: a heading is a paragraph with the Heading 1 style, a list is a paragraph with numbering switched on. Many chat boxes keep only the plain text of what you paste, so the styles are gone and a section title looks like any other line. On a long document the AI then has to guess where one part ends and the next begins.

Attaching the .docx instead sends the whole file to the AI service, including comments, tracked changes or hidden text you may have forgotten about, and you cannot see which parts it actually read.

What Markdown keeps

Markdown carries the structure as ordinary characters, so it survives any paste:

  • Headings: Word's heading styles become #, ## and ###.
  • Bold and italic text keep their marks.
  • Bulleted and numbered lists stay lists, with sub-points indented under their parent.
  • Links keep their address.
  • Pictures, charts and shapes are left out; only the text is converted.

How to do it

Word to Markdown runs on your device, and nothing is sent to a server or to an AI service:

  • Open Word to Markdown and choose a .docx, .dotx or .docm file, or drop it on the page.
  • The Markdown appears in a text box, with its token count.
  • Read it through, then click Copy and paste it into the chat, or download the .md file.

Get the headings right in Word first

Headings are found from Word's heading styles, not from how text looks. A line you made bold and large by hand stays an ordinary paragraph. Before converting, click into each section title and choose Heading 1, Heading 2 or Heading 3 from the Styles list; the Navigation pane in Word shows which titles it already sees as headings.

Old .doc files and OpenDocument .odt files are not read here. Open them in Word or LibreOffice and save them as .docx first. If you only want to read an .odt file, the Word viewer opens it.

Tables

Word to Markdown turns each table into a Markdown table, with the table's first row as the header row, so an AI chat reads the rows and columns instead of a run of loose cells. Markdown has no merged cells, so a table with merged cells or a table inside a table comes out flattened. When such a table matters, copy it from Word into a spreadsheet such as Excel or LibreOffice Calc, fix the layout there and save it as .xlsx; Excel to Markdown then turns that sheet into a clean Markdown table you can paste under the rest of the document. The same idea works for a table inside a PDF; see giving an AI chat a PDF without losing the tables.

Before you paste

Two checks are worth the minute they take:

  • Personal data: contracts, reports and letters often hold names, email addresses, phone numbers or ID numbers. Mask data replaces them on your device; it reads plain text files, so rename the downloaded .md file to .txt and open it there.
  • Length: the token count under the result shows how much of the chat the document will fill. Token counter explains the number, and other models count a little differently.

Ask by section

Once the Markdown is in the chat, you can point at parts of the document by their headings: rewrite the section called Payment terms in plain language, list every deadline under Delivery, or check that the summary matches the sections after it. Requests like these work only when the headings came through, which is the main reason to convert rather than paste.

Slides and PDFs

A presentation needs a different shape, one section per slide with its speaker notes; see giving a PowerPoint deck to an AI chat. For a PDF, use PDF to Markdown.

Questions?

Write to support@openanydoc.com and describe the document (no personal data).