How to Convert LaTeX to Word (Pandoc, make4ht and Equations)

Updated Tested on Pandoc 3.10 and TeX Live 2025, Oct 2026 7 min read Video

Quick answer

The most reliable way to convert LaTeX to Word is Pandoc: run pandoc paper.tex -o paper.docx --citeproc --bibliography=refs.bib. Equations become editable Word equations, images are embedded and citations are formatted. Add --reference-doc=template.docx to apply your Word styles. For a single formula, paste it into Word's equation editor in LaTeX mode.

Watch the video walkthrough

Word can’t open LaTeX source as a formatted document, so you need a converter. Pandoc handles most papers in one command; the sections below cover images, citations, equations, styles and the cases where it needs help.

What you’ll learn

Note: Going the other way? See how to convert Google Docs to LaTeX, or bring LaTeX into Google Docs instead of Word.

Convert LaTeX to Word with Pandoc

Use this when you want the whole document in Word with editable equations, embedded images and a formatted bibliography.

Pandoc is a free, open-source document converter. It reads LaTeX directly and writes .docx, so you don’t need Word or a TeX installation for the conversion itself.

  1. Install Pandoc. Download the installer from pandoc.org, or use a package manager:

    • Windows: winget install --source winget --exact --id JohnMacFarlane.Pandoc
    • macOS: brew install pandoc
  2. Open a terminal in your project folder, the folder that holds the main .tex file, the .bib file and the image folders.

  3. Run the conversion:

    Terminal window
    pandoc paper.tex -o paper.docx --citeproc --bibliography=refs.bib
  4. Open paper.docx in Word and check headings, figures, equations and references. If you skipped -N, you can add numbered headings in Word afterwards.

Result: a .docx with Word headings, embedded figures, editable equations and a reference list at the end.

Pandoc flags for LaTeX to Word

These are the options you will actually need. All are documented in the Pandoc user’s guide.

FlagWhat it does
-o paper.docxSets the output file. The .docx extension selects Word output.
--citeprocTurns \cite commands into formatted citations and adds a bibliography. Required since Pandoc 2.11.
--bibliography=refs.bibPoints to your BibTeX file.
--csl=apa.cslApplies a citation style (APA, IEEE, Chicago and so on). Without it, Pandoc uses Chicago author-date.
--reference-doc=template.docxCopies styles (fonts, heading styles, margins) from a Word file you prepared.
--resource-path=.:figuresExtra folders to search for images. Use ; instead of : on Windows.
-N / --number-sectionsNumbers the section headings.
--tocAdds a table of contents.

Warning: Older guides use --reference-docx. It was removed in Pandoc 2.0, and current versions stop with an error. Use --reference-doc. Older guides also add --mathml; it only affects HTML-type output and does nothing for .docx.

Images

Pandoc embeds every image referenced with \includegraphics into the .docx. You don’t need --extract-media for this.

\begin{figure}
\centering
\includegraphics[width=0.5\textwidth]{image.png}
\caption{Example Image}
\label{fig:example}
\end{figure}

LaTeX source with an includegraphics figure and its compiled PDF output showing the centred image and caption

If Pandoc prints Could not fetch resource figures/plot.png, you are running it from the wrong folder. Run it from the folder the paths are relative to, or add --resource-path.

Citations and bibliography

Pandoc reads your .bib file and formats each \cite{key} with a Citation Style Language (CSL) style.

Terminal window
pandoc thesis.tex -o thesis.docx --citeproc --bibliography=refs.bib --csl=apa.csl
  • Download .csl files for thousands of journal styles from the CSL styles repository, then pass the file name to --csl.
  • Without --citeproc, citations simply disappear from the output and no reference list is added.
  • The citations are plain formatted text in Word, not live Zotero or Mendeley fields. To keep editing sources in Word, manage citations and references in Word instead.

Equations and cross-references

Pandoc writes .docx maths as native Office Math, the same format Word’s own equation editor uses. Every equation, align and inline $...$ becomes an editable Word equation.

\begin{equation}
a^2 + b^2 = c^2
\end{equation}
  • Simple custom macros defined with \newcommand in the same file are usually expanded. Macros from your own .sty files are not.
  • Figure references (\ref{fig:example}) generally become numbers.
  • Equation references may stay as the label text, for example [eq:energy]. Search the .docx for [ and fix the few that remain.
  • Multi-line environments convert well. If you still need to restructure a long formula, see how to break long equations across lines in LaTeX.

Word styles with a reference document

Pandoc maps LaTeX structure to Word styles such as Heading 1, Body Text and Caption. A reference document controls how those styles look.

  1. Create the default template: pandoc -o custom-reference.docx --print-default-data-file reference.docx

  2. Open custom-reference.docx in Word and change the styles (fonts, sizes, spacing, margins). Don’t add your own content.

  3. Save it, then convert with:

    Terminal window
    pandoc thesis.tex -o thesis.docx --citeproc --bibliography=refs.bib --reference-doc=custom-reference.docx

Result: the converted document uses your fonts and heading styles, so it matches a university or journal Word template.

Paste a single LaTeX equation into Word

Use this when you only need one or two formulas in an existing Word document. The video at the top of this page shows the steps.

  1. In Word, select Insert > Equation, or press Alt + = on Windows.
  2. On the Equation tab, in the Conversions group, set the input format to LaTeX.
  3. Paste or type the formula, for example \frac{a}{b+c}.
  4. Select Convert > Professional, or press Ctrl + = on Windows.

Result: the LaTeX code turns into a formatted, editable Word equation.

LaTeX input is a Word for Microsoft 365 feature, and Microsoft’s guide to UnicodeMath and LaTeX equations in Word lists the supported syntax.

Recent builds (Version 2606 on Windows, 16.110 on Mac) also accept \begin{...} environments and \newcommand macros, according to Microsoft’s LaTeX reference for Office; on older builds, paste the formula itself.

If the formula comes from an AI chat, see copying ChatGPT and Gemini equations into Word.

Tip: For the equation editor, ink and UnicodeMath, see how to write math equations in Word, or browse the Word symbols and equations guides.

Convert LaTeX to Word with make4ht

Use this when your document depends on custom packages or macros that Pandoc ignores.

make4ht is part of TeX4ht and comes with TeX Live. It runs your document through real LaTeX, so every package and macro is processed, and writes an OpenDocument file that Word opens.

  1. Open a terminal in the project folder.
  2. Run make4ht -f odt paper.tex.
  3. Open paper.odt in Word and save it as .docx with File > Save As.

Result: a Word file that reflects your custom macros. Equations may need checking, so compare a few against the PDF.

Convert an Overleaf project to Word

Overleaf doesn’t offer a Word download, but its source files work with Pandoc.

  1. In Overleaf, download the project source as a .zip file.
  2. Unzip it and open a terminal in the unzipped folder.
  3. Run Pandoc on the main file, usually main.tex, with the flags above.

Pandoc follows \input and \include, so chapters split into separate files come along, as long as you run it from the project folder.

Converting a thesis split into chapters

Use this when each chapter lives in its own .tex file or you’ve already converted chapters separately.

Which LaTeX to Word method should you use?

MethodBest forWorks on
PandocWhole papers and theses with equations, figures and citationsWindows, macOS, Linux
Word equation editor (LaTeX input)One or two formulas in an existing Word fileWord for Microsoft 365
make4htDocuments built on custom packages and macrosAny system with a TeX distribution such as TeX Live
PDF opened in WordA quick look when you have no source filesWord for Windows and the web

Opening the compiled PDF in Word is the last resort: it reflows the layout and usually turns equations into plain text or images.

Windows, Mac and web differences

  • Pandoc and make4ht behave the same on Windows, macOS and Linux. Only the install command and the --resource-path separator differ.
  • LaTeX equation input is part of Word for Microsoft 365. On a Mac or in Word for the web, open Insert > Equation and check whether the Equation tab offers a LaTeX option before relying on it.
  • Keyboard shortcuts Alt + = and Ctrl + = are Word for Windows shortcuts. On a Mac, use the Insert menu and the Equation tab instead.

Troubleshooting LaTeX to Word conversion

  • --reference-docx has been removed: rename the flag to --reference-doc.
  • Citations missing or shown as keys: add --citeproc and check that the .bib path is right.
  • Could not fetch resource: run Pandoc from the project folder or add --resource-path.
  • \input file not found: same cause; paths are resolved from the folder you run Pandoc in.
  • Macros missing in the output: define them in the main file, or switch to make4ht.
  • TikZ or PGF drawings missing: compile them to PDF or PNG first and include the images with \includegraphics.
  • References shown as [fig:x] or [eq:x]: fix them by hand in Word, or replace them with plain text before converting.

For most documents, Pandoc with --citeproc and a reference document gets you a clean, editable Word file in one command. Browse the LaTeX guides for more conversion and formatting help.

Frequently asked questions

Can Microsoft Word open a .tex file?

No. Word has no LaTeX import, so convert the .tex file first with Pandoc or make4ht, then open the resulting .docx or .odt file in Word.

Will my equations stay editable after converting LaTeX to Word?

Yes, if you use Pandoc. It writes .docx equations as native Office Math (OMML), so you can click and edit them in Word's equation editor.

Why are my citations missing after the Pandoc conversion?

Since Pandoc 2.11 citations are processed only when you add --citeproc. Add it together with --bibliography=refs.bib, and optionally --csl=apa.csl for a specific style.

Can I paste a LaTeX formula straight into Word?

Yes. Insert an equation, set the equation input to LaTeX on the Equation tab, paste the formula, then choose Convert > Professional to display it as a formatted equation.

How do I convert an Overleaf project to Word?

Download the project source as a .zip from Overleaf, unzip it, and run Pandoc on the main .tex file from inside that folder so images and \input files are found.