How to Convert Word to LaTeX Step by Step

Learn how to convert a Word document to LaTeX source, prepare the file, export it through the UniDoc web editor, and check the result before you compile.

If you have a paper, thesis or report written in Word and need it in LaTeX, you may be facing a journal template, a university style file or a colleague who only works in LaTeX. Searches for how to convert Word to LaTeX often end with a list of online converters that promise a clean result with no checking needed. The more useful question is how to get clean LaTeX source you can actually compile, and what you need to check after the conversion.

This guide walks through that manual workflow from start to finish. It uses the Word and LaTeX round trip in the UniDoc web editor at app.unidoc.top as the concrete route, and it explains what to prepare in the Word file, how to export the source, and how to check the output. It also covers the difference between a how-to process and the tool-hunting that many people begin with.

Conversion is not the same as formatting. A Word file stores layout as visual formatting, while LaTeX stores structure as commands and environments. A good export keeps your headings, equations, tables and figures in a form LaTeX can read, but you still need to review the source and compile it.

How do you convert Word to LaTeX? The short answer

Prepare the Word file, export it as LaTeX source through the UniDoc web editor's Word and LaTeX round trip, then compile and check the result.

Your situationWhat to doWhy
A short report with headings and a few tablesApply Word heading styles, then run the round trip and review the table codeHeading styles become sections, which gives LaTeX a clear structure
A paper with many equationsUse Word's equation editor, not images of formulas, and check each equation after exportNative equations convert more predictably than pasted pictures
A file that must follow a journal or university templateExport the source, then paste the body into the template and fix the preambleTemplates control fonts, margins and bibliography style, so the body should not carry its own layout
A scanned or image-only Word fileConfirm the text is selectable first, and retype or repair text that is notText that is locked inside images will not appear in the LaTeX source
A document you plan to keep editing in LaTeXKeep the exported source as your working copy and make later changes thereEditing the Word file again and re-exporting can overwrite fixes you made in LaTeX

Before you start

Gather a few things before you open any tool. Each one prevents a common problem later.

  • A copy of the original .docx file. Work on a copy so you can return to the original if the export loses something. Keep the untouched file as a reference.
  • The LaTeX template you will use, if any. If a journal or department requires a specific class file, know its name now. The body you export should fit into that template, not replace it.
  • A list of figures and their file names. LaTeX pulls images from file paths. Know which images you need, and keep high-resolution originals on hand in case the export compresses or drops them.
  • A LaTeX engine or an online LaTeX editor that can compile the output. You need a way to compile the source after export. Any standard LaTeX distribution works, and many people compile in a browser-based editor that supports their template.
  • A reference list in a standard form. If you use citations, know whether your reference manager can export a .bib file. Citation commands are easier to fix when you start from a clean bibliography.

Converting a Word file to LaTeX, step by step

  1. Clean up the Word styles. Apply built-in heading styles to every section title, and use real numbered lists instead of typed numbers. Styles tell the converter what each block is, so messy formatting usually produces messy LaTeX.
  2. Replace equation images with native equations. If a formula is a picture, retype it with Word's equation editor. Native equations carry their structure into the LaTeX output, while pictures only carry the image.
  3. Simplify complex tables. Merged cells and nested tables are a common source of broken table code. Split very complex tables into simpler ones, or plan to rebuild them by hand after export.
  4. Open the file in the UniDoc web editor. Go to app.unidoc.top and open your .docx file. Check that the text, headings, equations and tables display correctly before you export anything.
  5. Run the Word and LaTeX round trip. Use the LaTeX export option in the web editor to produce LaTeX source from the document. Save the source file to your computer, keeping the .tex extension.
  6. Insert the body into your template, if you have one. Copy the exported body into your journal or department template, then move the preamble settings you need, such as packages and document class, into the template's preamble. Avoid keeping two preambles.
  7. Compile the source and read the log. Run the LaTeX engine on the file. If compilation fails, read the first error in the log, fix it, and compile again. Errors often cascade, so fixing the first one can clear several others.
  8. Check and fix the remaining details by hand. Review figures, cross-references, citations and special characters, then recompile until the output matches what you need.

Check the result

Once the PDF compiles, do not stop there. A file that compiles can still have wrong content, missing figures or broken equations.

CheckHow to see itIf it's wrong
Headings and section orderCompare the compiled PDF with the Word file, section by sectionReturn to the Word file, confirm each heading uses a heading style, then re-export
EquationsRead each equation in the PDF and compare it with the originalRewrite the equation directly in the LaTeX source using the original as a guide
TablesCheck row and column counts, merged cells and alignmentRebuild the table in LaTeX, or simplify it in Word before exporting again
Figures and imagesConfirm each image appears and the file paths resolveCopy the original image files into the project folder and update the paths
Citations and referencesLook for question marks or missing entries in the bibliographyCheck the citation keys and the .bib file, then compile again with the full sequence
Special charactersLook for odd symbols, such as quotes, dashes and accented lettersReplace the characters in the source with their LaTeX equivalents

Machine conversion is an aid, not a guarantee. Read the important parts of the document yourself, especially equations, numbers, and any text that carries legal or scientific meaning.

🎯 Which approach fits you?

Your route depends on what you need at the end.

  • If you need LaTeX source you will keep editing, use the round trip, then treat the exported .tex file as your working copy. Make later changes in LaTeX rather than in Word.
  • If you only need a PDF formatted in a LaTeX style, compile the exported source with your template and share the PDF. Keep the .tex file so you can fix problems later.
  • If you want help drafting or rewriting text in LaTeX, general-purpose chatbots can produce LaTeX code from a description or a paragraph. That output is a draft. It does not replace the conversion of your own document, so check every command against your original.

❓ FAQ

1. Can I convert a Word file to a LaTeX file without writing code?

Yes, the round trip in the UniDoc web editor exports LaTeX source from a Word document, so you do not need to type the source yourself. You still need to compile the output and review it, and you may need to fix a few commands.

2. Why does my exported LaTeX fail to compile?

A common causes are a template conflict, a missing package, or an image path that does not match your project folder. Read the first error in the compile log, fix it, and compile again. Many later errors disappear once the first one is fixed.

3. What should I look for in a free online converter?

Check the file size limit, whether watermarks are added to the output, how the service handles your document, and whether equations, tables and figures survive the export. Test the tool with a short sample file before you use it on a long paper.

4. Will the equations in my Word file convert correctly?

Native Word equations usually carry over better than pasted images, so rebuild any picture-based formulas with the equation editor first. Still, check every equation against the original after export, because complex notation can change.

5. Should I use the converted file or keep working in Word?

Pick one working copy and stick with it. If you move to LaTeX, edit the .tex file from then on. Re-exporting from Word later can overwrite the fixes you made in the source.

📝 Summary

Converting Word to LaTeX works well as a short process: clean up the Word styles, export the source through the UniDoc web editor, then compile and check the result. The export gives you a starting point, and the compile log and manual checks on equations, tables, figures and citations decide whether the document is ready to use.

Open OmniDoc to edit, convert or translate your LaTeX documents

Updated 2026-11-04