What Format Are Formulas in Word, Really?
Explain in what format Word formulas are saved in a file, distinguish between OMML structures, legacy embedded objects, and screenshots, and provide methods for identifying formula formats, copying and converting them, and checking them before translation.
Key Points of This Article
- Formulas inserted into Word after 2007 are stored inside the .docx as OMML (Office Math Markup Language), an XML structure, not as images.
- Older formulas are often saved as embedded objects, whose editing and conversion methods differ from OMML.
- Change the .docx extension to .zip and extract it; then check the m:oMath tags in word/document.xml to confirm whether a formula is OMML.
- Screenshot formulas and plain-text linear formulas are not Word formula objects, so they must be retyped or recognized before they can take part in conversion.
- After formula conversion or machine translation, check the formula structure and symbols item by item; do not assume they are correct.
Many people insert a formula in Word and then want to move it to another document, convert it to LaTeX, or hand it off to a translation tool, only to find that it won't copy over or the layout breaks. The problem usually lies in how they understand a "formula": a Word formula is neither a picture nor ordinary text. It is a mathematical object with its own structure, and the file stores it in a fixed way.
This article is written for readers who need to handle formulas in theses, reports, exam papers, or technical documents. After reading it, you will know in what format Word formulas are stored in .docx files, why formulas from different versions are incompatible with each other, and how to diagnose and resolve the cause when a formula cannot be edited or fails to convert.
What format are Word formulas saved in? A one-sentence answer
Formulas inserted into Word since Word 2007 are stored inside the .docx file in OMML (Office Math Markup Language), an XML structure description that records the structure of fractions, superscripts and subscripts, radicals, and so on, rather than a picture.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| Only view and edit formulas in Word | Insert and edit directly using Word's built-in equation feature | Formulas are saved as editable objects, and fonts and layout travel with the document. |
| Move the formulas to another Word document | Copy and paste the entire passage, and confirm that both files are .docx. | OMML structures can be carried over along with the content. |
| The formula in the document can't be clicked into, and it can't be edited. | Check whether it is an old-version embedded object or image, and re-insert it if necessary. | The formulas and images in the old version are not OMML, so the editing methods are different. |
| Needs to be converted to LaTeX or Markdown. | Use an editor that supports round-trip conversion of formulas | Formulas need dedicated conversion to map from OMML to other markup languages. |
| The document is going to be handed off to machine translation. | After translation, verify the formulas one by one. | Formula structures are prone to change during conversion and need manual verification. |
How Formulas Are Stored in a File
OMML: An XML Structure
.docx files are essentially zip archives containing multiple XML files. The main body of a Word formula is stored in word/document.xml, wrapped in m:oMath tags. For example, fractions are represented by m:f, superscripts by m:sSup, and radicals by m:rad. These tags describe the structure of the formula, so when the document is opened in other software, as long as it supports OMML, the editable formula can be restored.
You can verify this yourself: change the extension of a .docx file to .zip, extract it, open word/document.xml, and search for oMath. If you find it, the formula here is an OMML object. If you don't find it, but the document clearly contains a formula, it is most likely an image or some other kind of object.
Difference Between Legacy Embedded Objects and Screenshots
Early versions of Word used embedded formula objects. Objects of this kind are stored in the file as independent object data, usually with a preview image. Double-clicking one opens a dedicated editing interface, and the changes are written back into the document afterward. They can be edited, but their structural information is not directly exposed in OMML form, so when converting to other formats, the formula usually has to be re-entered first.
A screenshot of a formula is simpler: it is just a bitmap. It displays correctly, but it carries no structural information, so you cannot edit its symbols or convert it directly to LaTeX. It can only be restored by retyping it or by optical character recognition (OCR), and the OCR output also needs to be checked.
Common Misconceptions
- A formula is not an image. A pasted screenshot and an equation object may look similar on the page, but the former cannot be edited while the latter can.
- Linear text you type does not automatically turn into a formula. For example, typing a/b just produces ordinary characters. In Word, after typing in linear format, press Alt+= to switch it into a professionally typeset equation.
- After saving as PDF, the formula is no longer editable OMML. A PDF stores the glyphs and their positions on the page; to change the formula you usually need to return to the source Word document and export again.
📊 Core Comparison
| Type | Looks like in the document | Can you edit it directly? | Can it be converted to LaTeX? |
|---|---|---|---|
| Word Formula (OMML) | XML Structure Description | Yes, you can edit it directly in Word. | Yes, with the help of a tool that supports round-trip conversion. |
| Legacy embedded formula object | Embedded object data plus preview image | Need to open the dedicated editing interface. | It usually needs to be re-entered first. |
| Screenshot or image formulas | Bitmap | Cannot modify symbols | Need to perform OCR recognition first, then verify. |
| Plain-text linear formula | Regular characters | Yes, but it is not a formula object. | Needs to be rewritten manually. |
Practical Usage
- After inserting a formula in Word, click the formula area and confirm that an editable formula box appears. If you cannot enter it, it is most likely an image or a legacy object, and you should reinsert it.
- To verify the format, rename the .docx extension to .zip, extract it, and search word/document.xml for
oMath. If there is a match, the formula is OMML. - If the document needs a bilingual comparison or a translation, upload the .docx file to omnidoc.top, choose bilingual comparison or translation only, and download the result. OmniDoc preserves formulas, tables, and images, but you still need to check each formula item by item after downloading.
- To edit formulas round-trip on a web page, or to convert between Word and LaTeX, you can use the UniDoc web editor (app.unidoc.top), which supports formula editing and round-trip conversion between Word and LaTeX.
❓ Frequently Asked Questions (FAQ)
1. Can Word formulas be copied directly as LaTeX?
Yes, but it is generally not a simple text copy. Word formulas are saved in OMML, so you need a conversion tool that supports this structure to obtain LaTeX code. After conversion, please check the positions of superscripts, subscripts, and brackets.
2. Why does my formula show up as boxes on another computer?
The common causes are missing fonts or an outdated software version that cannot recognize the newer formula structures. You can first confirm on the source computer that the file is in .docx format, then update Word on the target computer, or install the missing math fonts and reopen the file.
3. What is the difference between a formula screenshot and a formula object?
A screenshot is a bitmap image: it can only be viewed, its symbols cannot be modified, and it cannot be directly used in conversion. A formula object, by contrast, stores structural information, so it can be edited, copied, and exported directly. The two differ greatly in subsequent processing.
4. Can I still edit formulas after saving as PDF?
You generally cannot directly modify the structure of a formula in a PDF the way you would in Word. The safer approach is to go back to the source Word document, make the changes there, and then re-export the PDF.
5. Will formulas change after machine translation?
Formula structure and symbols may change during conversion, for example subscripts becoming misplaced or symbols being replaced. After translation, key formulas should be checked line by line against the original, especially numerical values and variables in papers and contracts.
📝 Summary
Word equations are stored in .docx files as OMML (Office Math Markup Language) structures. They are editable math objects, not images. Understanding this explains why an equation may be impossible to edit or cannot be converted directly, and it tells you what to check after translation or format conversion.


