Pasting an AI answer into Word breaks tables, code and formulas: how to fix it
Pasting an AI answer into Word breaks tables, code and formulas: how to fix it
You finally got a good answer out of your AI assistant: a comparison table, a Python snippet, a couple of equations. You select the reply, copy it, paste it into Word - and the table is a wall of tab-separated text, the code lost its indentation, and the formula is gone.
Nothing is broken. ChatGPT, Claude, Gemini and Copilot render their answers as Markdown in the browser. When you copy from that page you copy rich text that Word re-lays out with its own styles, and Markdown-only elements such as tables, fenced code blocks and LaTeX formulas never survive the round trip intact.
Here is what actually happens, how to fix each case, and how to export the whole conversation instead of copying piece by piece.
What happens when you paste a chat answer into Word
| What you copied | What Word shows | Why |
|---|---|---|
| Markdown table | Tab-separated or run-together text | Word has no table object to paste into |
| Fenced code block | Wrong font, auto-corrected quotes, lost line breaks | Word applies body styles and autocorrect |
| LaTeX formula | Raw \frac{a}{b} text | The chat renders it, Word does not |
| Headings and lists | Plain paragraphs | Markdown markers are stripped |
Depending on the browser and Word's paste mode, the pasted result can lose the grid lines, the monospace font and the line breaks.
Fix 1: paste as plain text, then convert the table
- Copy the table from the chat.
- In Word, use Paste Special > Keep Text Only (Ctrl+Shift+V, or Ctrl+V then the paste icon > Keep Text Only).
- Select the pasted lines and use Insert > Table > Convert Text to Table. Pick the separator the chat used (a pipe
|or a tab).
If the answer used pipes, delete the leading and trailing | characters first, then convert. The result is a real Word table you can restyle.
Fix 2: keep code readable
Code survives best as plain text in a monospace font.
- Paste with Keep Text Only.
- Select the block and set a monospace font such as Consolas.
- Turn off autocorrect for the block (File > Options > Proofing > Autocorrect Options) or the quotes and dashes in your code will be changed.
Tip: paste into a one-cell table, or use a paragraph style with a light background, so the code stays visually separate from prose.
Fix 3: turn LaTeX into a real equation
Word cannot read LaTeX from a clipboard, but its own equation editor can convert LaTeX input.
- In Word, press Alt+= to insert an equation.
- Paste the LaTeX, then in the equation tools choose LaTeX (or Professional) so Word reads the raw LaTeX.
- Convert it, and Word shows a rendered formula instead of
\frac{a}{b}.
If you would rather not rebuild it, keep the formula as plain text in a monospace font and note where it came from.
Fix 4: skip the clipboard and work from Markdown
The reliable route is to export the conversation as Markdown and convert that file once.
- Export the chat as Markdown or JSON (Pawermu exports the conversation open in your Chrome tab).
- Open the
.mdfile in a plain-text editor to check tables, code fences and formulas are intact. - Convert it to Word with a tool such as Pandoc:
pandoc chat.md -o chat.docx. - Pick Word's built-in heading styles after conversion, not before.
Pandoc maps Markdown tables to real Word tables and code fences to a Code style, so the structure you saw in the chat is what lands in the document.
Quick check before you send the file
- Tables: real Word tables, not tab-separated lines.
- Code: monospace, quotes and dashes unchanged.
- Formulas: rendered equations, not raw LaTeX.
- Headings: mapped to Word heading styles, so the table of contents works.
Common questions
Why do tables paste as one long line? The chat page renders the table as HTML, and Word's plain-text paste keeps only the separators. Convert text to table after pasting, or convert the exported Markdown file.
Why did my code stop being monospace? Word pastes with the surrounding paragraph style. Select the block and set a monospace font, then turn off autocorrect for it.
Can I keep LaTeX formulas? Yes, but convert them: paste as text and rebuild them in Word's equation editor, or convert a Markdown file where the formulas stay as \( ... \).
Can I export the whole chat instead of copying piece by piece? Yes. Pawermu exports the conversation open in your Chrome tab as Markdown or JSON, free to install: Get Pawermu (free)
Have a paste problem that survives all of this? Tell me the chat tool and the Word version in the comments.