Blog

Convert ChatGPT Answers to Word with Equations and Tables

Why pasting a ChatGPT answer into Word leaves ** and ### behind and shows equations as \frac, and how to save it as a .docx with real Word headings, bordered tables and editable Word equations, tested step by step with a sample answer.

The AI Answer to Word tool. The input box on the left holds Markdown and LaTeX such as \frac, and the preview on the right shows headings, a fraction equation and a bordered table
The sample answer in the tool. Left: the pasted Markdown. Right: how it will look in Word.
Contents

You ask ChatGPT to explain how to solve a quadratic equation and want to reuse the answer in a report draft. You press the copy button under the answer and paste it into Word. The bold text that looked fine on screen turns into **Quadratic formula**, a heading turns into ### The discriminant tells you how many solutions there are, and the fraction becomes x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. The table becomes rows of vertical bars | and hyphens.

Fixing that by hand means deleting symbols, applying heading styles, rebuilding the table and retyping every equation in the equation editor. There is a reason it breaks, and once you know it, the cleanup can be left to a machine. In the second half of this article I put a sample answer into AI Answer to Word and actually saved it as a .docx file with headings, tables and equations intact. Everything runs inside the browser, and the text of the answer is not sent anywhere.

The copy button hands over the source, so it breaks

The answers shown by ChatGPT, Gemini and Claude are written in Markdown. Bold text is wrapped in **, headings start with # characters, and table columns are separated by |. Equations use LaTeX, a typesetting notation in which \frac{a}{b} is a fraction, \sqrt{x} is a square root and x^2 is a superscript. The chat window reads that source and redraws it as bold text, headings, tables and equations.

The copy button under the answer gives you the source before it is redrawn. That is convenient when you want to feed the answer back to an AI or paste it into a notes app. Word, however, reads neither Markdown nor LaTeX as formatting, so the symbols arrive as ordinary characters. It looks broken because Word received the source and nothing turned it into a clean document.

If you select the answer on screen and copy it instead, it is passed as formatted HTML. Bold text and tables partly survive, but the equations are a collection of characters broken apart for display, and they do not become Word equations. Either way, getting equations as equations and headings as heading styles requires a step in between that cleans up the source.

Checking how the sample answer will look in Word

The screenshots below come from the tool’s English version. When the tool opens, the “AI answer (Markdown)” box is on the left and the “Preview (how it looks in Word)” panel is on the right.

If you do not have an answer of your own at hand, press “Insert sample” below the input box. It inserts an example AI answer that explains how to solve a quadratic equation, with headings, a table, equations, nested lists, a quote and a code block.

The tool screen. The input box on the left holds Markdown starting with “## 📊 Solving a quadratic equation”, and the preview on the right shows a heading, the quadratic formula as a fraction and a three-row table for the discriminant. Counts appear under the preview and a saved message next to the buttons
The sample answer inserted and saved. Counts of headings, tables, equations and so on appear under the preview.

In the preview on the right, \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} becomes an equation with a fraction and a square root, and the rows separated by | become a bordered table. Expressions inside table cells, such as $D > 0$ and $x^2 - 3x + 2 = 0$, are shown as equations too.

Under the preview it said “Headings 4 · Tables 1 · Equations 17 · Lists 2 · Code 1”. That means the tool found four headings, one table, 17 equations, two lists and one code block. The 17 equations include the ones in table cells and small inline ones such as \(a \neq 0\). Imagining how long it would take to retype that many in the equation editor makes the case for handing the cleanup to a tool.

The next line reads “The largest heading was “##”, so headings were shifted to start at Word’s Heading 1”. AI answers often start their headings at ## or ###, and copied straight into Word the first heading would become Heading 2 or Heading 3. The tool makes the largest heading Heading 1 and moves the others up by the same number of levels. The “📊” emoji at the start of the first heading is also gone from the preview. Both behaviors can be switched off in the settings covered next.

Choosing the formatting and saving as .docx

If the preview looks right, open “Word formatting (font, paper, conversion options)” below the input box and check the settings before saving.

Word formatting expanded. Fields for Font (Calibri), Font size (11 pt), Paper (Letter), Margins (Normal) and File name, with Remove emoji, Make the largest heading Heading 1 and Keep line breaks checked, and Skip horizontal rules and Justify body text unchecked. Below them are the Save as Word (.docx) and Copy with formatting buttons
Default formatting in the English version: Calibri, 11 pt and US Letter.

You can choose the font, font size, paper, margins and file name. The English version starts with Calibri, 11 pt and US Letter. If you need A4, change Paper. When I saved the sample with A4 and unpacked the file, the page size was recorded as A4 (w:w="11906" w:h="16838", in twentieths of a point).

The checkboxes below decide how the conversion works. “Remove emoji” deletes emoji at the start of headings and bullet points, and “Make the largest heading Heading 1” performs the heading shift described above. “Keep line breaks” keeps every single line break as a line break, as in the AI chat. For work documents or anything you hand in, leave the first three checked.

When you are ready, press “Save as Word (.docx)”. If the file name box is empty, the first heading becomes the name. For the sample, the tool saved Solving a quadratic equation.docx and showed “Saved Solving a quadratic equation.docx” next to the button.

Headings, tables and equations become real Word elements

To make sure the saved file is built from real Word elements and not just made to look right, I opened it in LibreOffice Writer 24.2 and also unpacked the file to inspect the XML inside.

First page of the saved .docx. Under the heading Solving a quadratic equation are inline equations, the quadratic formula as a fraction, a heading about the discriminant, a three-column table with a gray header row, a numbered list with nested bullets and a quote starting with Tip:
First page of the saved .docx in LibreOffice Writer. In Word, equation glyphs and spacing look slightly different.

The first heading was written with the Heading1 style and the other three with Heading2. Open the file in Word and you can jump between sections in the Navigation Pane or build a table of contents automatically from References → Table of Contents. The table has borders, and its header row is set to repeat, so if the table runs onto a second page the header row appears there as well.

The equations were stored as Word equations (Office Math, m:oMath in the XML), not as images. There were 17 of them, the same as in the preview. The three wrapped in \[ \] or $$ are display equations on their own lines, and the rest are inline equations in the text or in table cells. Click an equation in Word and it switches to the equation editor, so changing a coefficient or adding a symbol works the same way as with any equation you typed yourself.

Answers copied by selection are converted too

When you only need part of an answer, you may select it on screen and copy it instead of using the copy button. As described earlier, the clipboard then holds formatted content rather than Markdown. Paste it straight into the input box and the tool reads the tables and equations and turns them into Markdown first. For equations, it takes the original LaTeX that the chat page keeps embedded for display (the source stored by KaTeX, a math rendering library).

As a test, I pasted formatted content with KaTeX equations: the formula for a monthly mortgage payment, plus a table comparing the payments on a $200,000 loan at 6% a year over 30 and 15 years.

The screen after pasting formatted content. The input box holds ### Monthly loan payment, the payment formula wrapped in $$ and a four-column table of Loan, Rate, Term and Monthly payment in Markdown, and the preview shows the fraction equation and the table. Next to the buttons it says Converted the formatted content to Markdown and pasted it (tables 1, equations 2)
Pasting formatted content: the tool reads the tables and equations and turns them into Markdown.

Next to the buttons it said “Converted the formatted content to Markdown and pasted it (tables 1, equations 2)”, and the input box received the equation M = P\frac{r(1+r)^n}{(1+r)^n-1} and a four-column table in Markdown. The amounts “$200,000” and “$1,199.10” in the table stayed as text and were not treated as equations. The dollar sign also marks equations in LaTeX, so a $ directly before a number is treated as money. The payments in the table come from the formula with a monthly rate of 0.5% (6% a year ÷ 12) and 360 or 180 payments: $1,199.10 and $1,687.71.

When Word’s LaTeX input or Pandoc is the better choice

There are ways to do this without the tool. Word in Microsoft 365 can convert LaTeX typed into an equation box into an equation. If you have one or two equations, copying just the \frac{...} part from the answer and converting it is enough. It works one equation at a time, though, so with 17 equations like the sample, plus fixing the headings and tables, it takes quite a while.

Pandoc, a command-line document converter, can turn Markdown into .docx and also creates Word equations. If you already use Pandoc, it is quick. It does need installing and using a command line. ChatGPT’s copied text also tends to wrap equations in \( \) or \[ \], which Pandoc’s default Markdown reader does not treat as math, so you need to replace them with $ first or change the reader with an option. The browser tool reads equations wrapped in any of $…$, $$…$$, \(…\) and \[…\].

If you cannot install software on a work PC, do not want to send the answer to another service, or simply only use Word, a browser tool where you paste and save is the fastest route.

Images and some equation notation need finishing in Word

Finally, here is what the conversion does not carry over. If an AI answer contains an image, the tool does not embed it in Word. It writes “[Image: description]” and a link to the original image, so save the image separately and insert it in Word.

For equations, colors set with \color, boxes from \boxed and the alignment at & in aligned are not carried over; only the content of the equation is written. If an equation uses a command the tool does not support, a list appears on screen and that part is inserted as text.

For Google Docs, upload the saved .docx to Google Drive and open it. You can also copy with the tool’s “Copy with formatting” button and paste. That keeps headings, bold, tables and lists, but equations arrive as LaTeX text. If you need equations as equations, go through the .docx.

In the other direction, when you want to give an AI an Excel table as a Markdown table, the table converter does that. How much manual cleanup you save between AI and Word depends almost entirely on how many equations and tables the answer has. For the sample, fixing four headings, one table and 17 equations became a single click on save.

Frequently asked questions

Why do ** and ### stay in the text when I paste a ChatGPT answer into Word?

The copy button under the answer does not copy what you see on screen. It copies the Markdown source, where bold is written as ** and headings as ###. Equations are copied as LaTeX text such as \frac. Word does not read either as formatting, so the symbols stay as plain characters.

Can I edit the equations in Word afterwards?

Yes. The tool in this article writes equations as native Word equations (Office Math), not as images. Click one and Word opens it in the equation editor, where you can change any symbol or number.

How do I use the result in Google Docs?

Upload the saved .docx to Google Drive and open it, or use the tool’s “Copy with formatting” button and paste. Formatted copying keeps headings, bold, tables and lists, but equations are pasted as LaTeX text.