How to Export Microsoft Word Equations as Plain Text or RTF
Question details
The user needs to convert multiline Microsoft Word equations into linear plain text or RTF format.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Preparing documents for RTF editing, cross-platform collaboration, or LaTeX processing where standard equation containers are not supported.
- Observed behavior
- Equations are currently formatted as multiline objects embedded in containers, which prevents them from being extracted directly as linear text characters.
Before converting your equations, ensure you have saved a backup copy of your original document so you do not permanently lose your multiline equation formatting during the conversion process.
Convert Equations to Linear Format and Save as Web Page
This recommended method requires no coding. It manually flattens your equations into a format that can be easily extracted as plain text.
By changing equations to a linear format and saving the document as HTML, you strip away the specialized Word equation containers, leaving easily accessible text.
Click on the equation to open the equation dropdown menu, then select 'All Linear' to change it from a multiline format into a linear text string.
Go to 'File' > 'Save As', choose your desired folder destination, and select 'Web Page (*.htm; *.html)' from the Save as type dropdown menu.
Open the newly saved HTML file in a standard text editor or a web browser, and copy the clean, linear text representation of your equations.

Automate Extraction Using a VBA Macro
Use a VBA macro to loop through all equations in the document, extract their text, and automatically replace the equation containers with plain text.
A Powerful and Free Alternative for Managing Documents
If you frequently work with complex documents, mathematical equations, and diverse file formats, WPS Office offers a highly compatible, lightweight, and completely free alternative to Microsoft Office. It seamlessly handles Word documents and RTF files with a familiar interface.
- 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your device.
- 2. Open Your Word Document: Launch WPS Writer and open your .docx or .rtf file containing the equations.
- 3. Edit and Save: Easily edit your document and use the 'Save As' feature to export it as Plain Text (.txt) or RTF format for your collaboration needs.

Frequently Asked Questions
Why do my Word equations turn into unreadable symbols when pasted as plain text?
Word equations are stored in specialized XML containers (OMML). When pasted as standard text without converting them to 'Linear' format first, the native formatting is lost, causing complex mathematical symbols to render improperly.
Can I convert Word equations directly into LaTeX code?
Yes. Microsoft Word has a built-in LaTeX mode in the Equation tab. You can select the equation, click 'LaTeX' in the Conversions group, and then convert it to linear format to reveal the LaTeX string. This string can then be copied as plain text.
Will saving directly to RTF preserve my multiline equations?
RTF generally supports basic formatting, but native Word equations might be converted into static images or lose editability depending on the RTF processor you use. Flattening them into linear text before converting to RTF ensures no data is lost.




