What to do if the formula is garbled when copied to Word: Causes and Fixes
When formulas are pasted from PDF, web pages, or other software into Word, boxes, question marks, or misaligned symbols appear. This is mostly due to the source format and font. This article determines the cause based on symptoms and provides step-by-step troubleshooting and repair steps.
Key points of this article
- Equation garbled text usually comes from three types of reasons: the source is PDF font, the pasted webpage or source text is, or the target document lacks formula font.
- First determine at which step the garbled characters appear, and then decide whether to change the pasting method, add fonts, or re-export from the source file.
- Formulas copied from PDF are easy to separate the superscripts and subscripts. You can use OCR to identify them first and then export them to Word, and then check them one by one.
- When pasting LaTeX source code, you should first convert it into Word formulas. Do not leave dollar signs and backslashes directly in the document.
- Important formulas should be compared item by item with the original text before submission or publication, because errors may occur in any identification and conversion.
When you copy formulas from PDF, web pages, or other software into Word, they turn into boxes, question marks, or the superscripts and subscripts are crowded together and the symbols look like other words. This is a very common problem in paper writing and contract organization. Writers usually re-paste several times or even retype manually, which is time-consuming and error-prone.
In fact, most of the garbled formulas can be traced. Whether the garbled characters appear at the moment of copying, or after saving in Word and opening on a different computer, the repair method is completely different. This article determines the cause according to the symptoms, and then gives a troubleshooting order from easy to difficult. After reading this, you should be able to determine which situation you are encountering.
The formula is garbled after being copied to Word. How to fix it? One sentence conclusion
First determine where the formula comes from, and then decide how to modify it: if it comes from PDF, use OCR to re-identify it; if it comes from web page or LaTeX source code, first convert it into Word formula and then paste it; if only the font is missing, just install the font.
| your situation | Recommended practices | reason |
|---|---|---|
| When a formula is selected and copied from a PDF, the characters are messed up or turned into square boxes after pasting. | Use the OCR function of the PDF editor to re-identify and check the formulas one by one after exporting to Word. | Formulas in PDF are often drawn in symbol fonts, and the character encoding will be lost or misaligned when copied. |
| Copy from a web page or e-book, and backslashes and dollar signs appear after pasting. | First convert in an editor that supports LaTeX, then export or copy the result | The webpage copies the source text, and Word will not automatically parse it as a formula. |
| When the same Word is opened on another computer, the formula becomes a square box | Check the formula font on the original computer and provide the font together or use the system's own font instead. | The font of the symbols that the formula depends on is missing and will fall back to a box when displayed. |
| Only a few symbols are abnormal, and the rest of the formulas are normal. | Re-insert this formula, do not re-paste the entire paragraph | Problems are usually localized to a single object and redo costs are low |
| The document is an old version of .doc or opened in compatibility mode | Save as .docx and then check the formula | Formula objects in the old format are more susceptible to damage, while the new format has better compatibility. |
First determine what kind of problem it is
The causes corresponding to different symptoms vary greatly. First use the table below to compare.
| symptoms | Common causes | How to confirm |
|---|---|---|
| A box or question mark appears in the formula position | The formula or symbol font is missing, or the source characters are not recognized | Select the formula in Word and check the font name; change the computer to open the comparison |
| Source codes such as dollar signs, backslashes, and curly braces appear in formulas | What is copied is LaTeX or web page source text | Check whether the original text is copied from a web page, Markdown or paper source file |
| The upper and lower subscripts are misplaced, the fraction lines are broken, and the spacing between symbols is abnormal. | Copied from PDF, character order and position broken | Zoom in to see the original formula in the PDF, and then compare it item by item with the results in Word |
| Numbers or letters look normal but are replaced with similar characters | Font fallback or encoding mapping error | Enlarge the Word formula and check whether Greek letters, minus signs, multiplication signs, etc. are deformed |
| After pasting, the entire text becomes garbled, not just the formula | The source file is encoded abnormally, or an incompatible format is included when pasting. | Just paste the plain text and see if it returns to normal |
| The same formula displays differently in different Word versions | The formula object version is different, or an old version of the formula editor plug-in is used | Save as .docx and reopen for inspection in a new version |
Check and repair item by item
Check in the following order. The first few steps can usually solve most problems, and there is no need to redo them from the beginning.
- First confirm whether the garbled code appears when copying or after saving. If the original text displays normally in a PDF or web page, but becomes abnormal after pasting it into Word, the problem lies in the pasting process; if the error occurs after changing computers, the problem is probably with the font.
- Check the formula font. Select the unusual formula in Word to see the font it uses. Fonts commonly used in formulas, such as Cambria Math, Symbol, etc., will appear as boxes if they are missing on the target computer. Reinstalling the font or saving it as .docx on the original computer can usually solve the problem.
- Change the pasting method. When pasting, you can try "Keep text only" or "Paste special", remove the formatting and see if it is restored. If only plain text is left, the source format is the problem and the formula object needs to be re-inserted rather than continuing to adjust the text.
- Redo the garbled formulas individually. Delete unusual formulas, re-enter them in Word using the built-in formula features, or re-copy individual formulas from the original file. Do not re-paste the entire section to avoid messing up other normal content.
- Check each item against the original text. No matter which repair method is used, compare the formulas in Word side by side with the original text, focusing on superscripts and subscripts, fractions, radicals, and Greek letters, and complete the check before saving.
- If it cannot be repaired, use another input method. Rewrite the formula into LaTeX source code, and then use an editor that supports conversion between Word and LaTeX; the UniDoc web editor (app.unidoc.top) supports formula editing and round-trip conversion between Word and LaTeX, which can be used as an alternative path.
Formula copied from PDF
Most of the formulas in PDF are drawn in graphical fonts. When directly selecting and copying, the order of characters and the position of superscripts and subscripts are often disrupted. A safer approach is to use a desktop client's PDF editor to perform OCR recognition on the file, then export it to Word, and then check the formulas one by one in Word. OCR is also suitable for scanned documents, but the recognition results also require manual verification, especially mathematical symbols and decimal points.
Formula copied from web page or LaTeX source code
For formulas in web pages, Markdown or paper source code, the copied source text will contain dollar signs, backslashes and curly brackets. Pasting directly into Word will leave only the symbols themselves. You should first convert the source code into a formula in an editor that recognizes LaTeX, and then copy or export the result to Word.
How to avoid it happening again next time
- Try to copy from the original file rather than from the preview window or web page. The source file's formula format is usually more complete.
- Formulas should be entered in the same way before sorting them out, for example, all using the formula function that comes with Word to avoid mixing multiple sources.
- Confirm in advance that the collaborators have the same formula font on their computers, or save the file as PDF before sending to fix the display effect.
- Before final submission of long documents, check all formulas individually instead of waiting for the full text to be written and then searching them together.
- After copying the formula, check it as soon as you paste it into the document. The earlier the problem is discovered, the lower the repair cost.
❓ Frequently Asked Questions (FAQ)
1. When the formula is copied to Word, the code is garbled. Is Word broken?
In most cases, it is not Word itself that is damaged, but a problem with the source format or font. First check whether the garbled characters appear when pasting or after changing computers, and you can roughly determine the direction.
2. Why do the formulas on the web page turn into a bunch of backslashes after being pasted into Word?
Web pages often copy LaTeX source text instead of rendered formulas. You need to convert it in an editor that supports LaTeX first, and then put the result into Word.
3. When copying formulas from PDF, can I use the text without modification?
Generally not recommended. The order of formula characters in PDF is easy to get confused. It is recommended to use OCR to identify and export it first, and then check one by one. Important formulas should be re-entered as much as possible.
4. The formula garbled code has been fixed, what else needs to be checked?
It needs to be compared with the original text one by one, focusing on superscripts and subscripts, fractions, radicals and Greek letters. Both OCR and machine conversion can go wrong, and key formulas must be confirmed manually.
5. In the same Word document, why does the formula turn into a box on another computer?
Most likely, the computer lacks the font used by the formula. Fonts can be provided with the file or saved as a PDF on the original computer before sending.
📝 Summary
When a formula is copied to Word and is garbled, it usually occurs due to missing source formats, pasting methods, or missing fonts. First determine the link where garbled codes appear, and then deal with them one by one in the order of troubleshooting. Most problems can be located. After repair, please check it item by item with the original text to ensure that important formulas are accurate.


