How to Extract Math Formulas from Images: Screenshot to LaTeX & Word
When organizing calculus notes or writing research papers, retyping complex formulas from screenshots is painful: integral signs, limits, matrices, fractions and Greek letters are slow and error-prone to enter by hand. With online formula OCR, you can recognize formulas in an image and export LaTeX code or editable Word formulas in one click. This guide explains how, and how to improve accuracy.
What is formula OCR
Formula OCR is image recognition built specifically for math. Unlike ordinary text OCR, it must recognize not only the characters but also their structure—what is a superscript, what belongs in the denominator, how many rows and columns a matrix has—and then output structurally correct LaTeX or Word formulas (OMML).
The result is not a picture of a formula but an editable one: in LaTeX you can change symbols and variables, and after pasting into Word it is a native equation object whose font and parameters you can adjust.
Online extraction steps
- Open the ImgDoc math formula extraction tool, or go to Image to Word and enable “Keep formulas”.
- Upload a screenshot, exam paper or textbook photo containing formulas; common formats such as JPG and PNG are supported.
- The tool runs formula OCR automatically, recognizing integrals, summations, matrices, fractions, roots and Greek letters.
- Export the result: copy LaTeX when you need source code, or download a document when you want to edit in Word, where it pastes as an editable formula.
- Quickly check superscripts and subscripts, parentheses and signs against the original before using it in a paper or notebook.
Everything happens in the browser—no software download and no mandatory login.
Which formulas can be recognized
- Calculus: integrals (∫), limits, series, summations (∑), products;
- Linear algebra: matrices, determinants, vectors, systems of equations;
- Common structures: fractions, roots, superscripts and subscripts, piecewise functions;
- Symbols: Greek letters, operators, relational symbols, arrows;
- Scenarios: printed formulas work best, and clear handwritten formulas can also be recognized.
Clear, upright, high-contrast formula images give the best results; when a formula is compressed too small, tilted or unevenly lit, accuracy drops.
How to improve accuracy
- Make the formula large enough in the frame so subscripts and superscripts do not merge;
- Keep only the needed question region in the screenshot to reduce multi-column clutter;
- Shoot straight onto the page with even corners, and crop extra white space first if needed;
- Keep complex matrices or multi-line formulas sharp so rows do not overlap;
- Focus your checks on subscripts, matched parentheses, minus signs and decimal points.
If a first result is poor, improving the original image and trying again usually works better than repeatedly OCR-ing the same blurry picture.
Common use cases
- Exam prep & mistake notebooks: screenshot a question’s formula and paste it into Word, MarginNote or Notion to quickly build a tidy notebook.
- Research paper writing: turn formulas in references into standard LaTeX source for Overleaf; for PDF papers, see how to extract formulas from PDF research papers.
- Teacher lesson planning: batch-recognize formulas and text in exam and textbook images, then export to Word for secondary editing and layout.
Frequently asked questions
Can the formula go straight into Word for editing
Yes. The tool exports the native Word formula format (OMML); once pasted into Word it is a native, editable equation object whose font and parameters you can adjust freely.
Do I need to log in or pay
No login is required—just open the page and use it. Precise formula OCR comes with a free daily quota that resets the next day, suitable for everyday note organization and paper writing.
How is this different from Mathpix
Mathpix strictly limits free usage. ImgDoc offers free, convenient online formula extraction right in the browser with no client install, and works as a free Mathpix alternative.
Can it recognize handwritten formulas
Clear, neat handwriting can be recognized; accuracy drops with messy or heavily connected writing, so write as neatly as possible or use a printed image.
Start extracting formulas
Get a screenshot containing a formula ready, then recognize and export LaTeX / Word online:
Use ImgDoc to extract math formulas from an image
If your formula comes from a PDF paper or scanned material, continue with how to extract math formulas from PDF research papers.