Word to LaTeX Converter
Choose a .docx file and get LaTeX: headings become sections, lists and tables become their LaTeX environments, and equations typed in Word become LaTeX maths. The file is opened and converted in your browser, so it is never uploaded, and anything that could not be converted is listed, not dropped in silence. Free, no sign-up.
Drop a .docx file here, or choose one. It stays on your device.
What carries over from Word
| In the Word document | In the LaTeX |
|---|---|
| Headings (Heading 1 to 5) | \section, \subsection, \subsubsection, \paragraph |
| Title, subtitle, author styles | \title, \author and \maketitle |
| Bold, italic, underline, strike-through | \textbf, \textit, \uline, \sout |
| Superscript, subscript, small capitals | \textsuperscript, \textsubscript, \textsc |
| Bulleted and numbered lists, nested | itemize and enumerate |
| Tables, with merged cells | tabular with booktabs, \multicolumn, \multirow |
| Footnotes and endnotes | \footnote |
| Links | \href and \url |
| Equations from Word's equation editor | inline $...$ and display \[...\] |
| Pictures (PNG, JPEG, PDF) and their captions | figure, \includegraphics, \caption |
| A table of contents | \tableofcontents |
| Block quotations, code paragraphs | quote, verbatim |
| Tracked changes | Insertions kept, deletions left out |
The converter reads structure, which Word keeps in styles. A line that is a heading because it has the Heading 2 style becomes \subsection; a line that only looks like a heading, because someone made it bold and larger, stays bold text. If the result has too few sections, apply Word’s heading styles to the headings and convert again: it takes a minute and it fixes the table of contents in Word too.
What does not carry over
- The look. Fonts, sizes, colours, margins, columns and manual spacing. In LaTeX the document class sets these, so pick the class your journal or university gives you.
- Citations as citations. Zotero, Mendeley and EndNote citations arrive as the text Word displayed. Export a .bib from the reference manager (or use RIS to BibTeX) and replace them with
\cite. - MathType and Equation Editor 3.0 equations. They are pictures inside the file. Equations typed with Word’s built-in editor are converted.
- EMF and WMF pictures, charts, text boxes and shapes. Each is counted and listed above the result. Export a chart as PDF and include it as a picture.
- Cross-references and numbering. “See Figure 3” arrives as those words. Replace them with
\labeland\refso they renumber themselves. - Comments. Tracked insertions are kept and deletions are left out, as if every change had been accepted.
After converting: a short checklist
- Compile it once as it is, to see that it builds.
- Change
\documentclass{article}to the class you are writing for, and move the title and authors into its commands. - Read every equation against the Word original.
- Replace typed citations with
\citeand typed cross-references with\ref. - Look at each table: a wide one may need a narrower font or a rotated page.
Or convert with Pandoc on your own machine
Pandoc is a free command-line converter that does the same job and handles more unusual documents, at the cost of installing it: pandoc paper.docx -s --extract-media=. -o paper.tex. The Word to LaTeX guide walks through that route, and LaTeX to Word covers the way back. Deciding whether to move at all? See LaTeX vs Word.
Frequently asked questions
How do I convert a Word document to LaTeX?
Choose the .docx file, or drop it on the box. The converter reads the document in your browser and writes main.tex: headings become sections, lists become itemize and enumerate, tables become tabular, footnotes, links and equations typed in Word's equation editor are carried across. Copy the LaTeX, download it, or open it as a project in LetX.
Is my document uploaded?
No. A .docx is a zip of XML, and your browser opens and converts it on your own device. The file is not sent to LetX or anyone else. If you press Open in LetX, the LaTeX text, not the Word file, is saved as a project in your own account.
Does it convert equations?
Equations typed in Word's own equation editor are converted to LaTeX maths: fractions, powers and indices, roots, sums and integrals with their limits, brackets, matrices, cases and accents. Equations made with MathType or the old Equation Editor 3.0 are stored in the file as pictures, so they cannot be read; retype those. Check every equation against the original.
What happens to pictures?
PNG, JPEG and PDF pictures are kept: download the project as a zip and it holds main.tex with the pictures beside it, each placed with \includegraphics and its caption. EMF and WMF pictures, the formats Word uses for pasted charts and drawings, cannot be read by LaTeX; a comment marks where each one goes so you can export it as PNG or PDF.
What happens to citations from Zotero, Mendeley or EndNote?
They arrive as the text Word showed, such as (Smith, 2020), and the bibliography as ordinary paragraphs. To get real LaTeX citations, export the library from your reference manager as a .bib file, then replace each one with \cite{key}. The reference manager still has the data; only the Word file does not.
Can it convert an old .doc file?
Not directly. The older .doc format is not a zip of XML. Open the file in Word, LibreOffice or Google Docs, save it as .docx, and convert that.
Will the PDF look like my Word document?
It will have the same structure and the same words, in LaTeX's typography, not Word's. Fonts, colours, margins and manual spacing are not copied, because in LaTeX the document class decides them. That is usually the reason for converting: a journal or university class then sets the look for you.
Carry on in LaTeX
LetX is a free collaborative LaTeX editor: open the converted document, fix what needs fixing, and see the PDF in a few seconds.
Open the free editor