Maths OCR tools use AI to read an equation from a screenshot, PDF or photo and hand you LaTeX code, saving you from retyping fractions, integrals and matrices by hand. Students, researchers and anyone writing technical documents can benefit. Here are the best options for PC, from free models that run entirely on your own hardware to a polished cloud-backed app.
Quick picks
Pick | Best for | Runs | Cost |
|---|
TexTeller | Best free local model, handwriting | Locally (CLI, browser demo, API) | Free, Apache 2.0 |
pix2tex (LaTeX-OCR) | Simple screenshot-to-clipboard | Locally (GUI, CLI, API) | Free, MIT |
Mathpix Snip | Easiest, most polished app | Desktop app with cloud processing | Free tier and paid Pro plan |
1. TexTeller - best free local model
TexTeller is an open-source formula recognition model that converts images into LaTeX. Its developers say the 3.0 model was trained on 80 million image-formula pairs, and claim stronger generalisation and higher accuracy than LaTeX-OCR, which used a dataset of around 100K. That's their claim, not an independent test, but TexTeller's feature list is the broadest of the free options: TexTeller 3.0 supports scanned images, handwritten formulas and mixed English and Chinese formulas, and there's a separate formula detection model for finding equations on a page.
You install it with uv pip install texteller (Python 3.10 or newer, according to PyPI) and run texteller inference on an image, or texteller web for a browser demo at http://localhost:8501. NVIDIA GPU users may need the onnxruntime-gpu extra, and texteller launch starts an API server if you'd rather run it as a service.
Best for: handwritten notes, scanned pages and anyone who wants the most capable free model.
pix2tex has the most convenient everyday workflow of the free tools. Install it with pip install "pix2tex[gui]", run latexocr, take a screenshot of an equation and the LaTeX appears rendered with MathJax and is copied to your clipboard. There's also a command-line tool for saved images, a Python API and a Docker image.
It's built for single, printed formulas, and its README says it works best with smaller images and that you should always double-check the result. The latest PyPI release is 0.1.4 from January 2025. Our step-by-step guide on how to convert equations to LaTeX with pix2tex walks through setup.
Best for: quickly grabbing printed equations from PDFs and slides without sending anything to the cloud.
3. Mathpix Snip - easiest overall
Mathpix Snip is a commercial app for macOS, Windows and Linux. Mathpix says you can screenshot any equation, table or text with a customisable global keyboard shortcut and get LaTeX, Markdown or plain text, with results copied to your clipboard so you can paste LaTeX into Overleaf or MathML into Word.
The trade-off is privacy: Mathpix says all your snips are saved and searchable in the cloud. Snip has a free tier and a paid Pro plan; Mathpix lists prices in US dollars, so check the current cost on its pricing page before subscribing.
Best for: people who want a polished app and don't mind their snips being stored online.
Do you need a powerful PC?
Neither open-source project lists minimum hardware in its README. pix2tex runs on top of a standard PyTorch install, and TexTeller's GPU support is an optional extra (onnxruntime-gpu) for CUDA users, with GPU settings for its API server, so a graphics card is a bonus rather than a requirement for occasional snips. If you're setting up local AI tools on Windows, our guide to WSL2 with GPU support is a good starting point.
What about whole documents?
These tools focus on formulas. To convert full PDFs containing text, tables and maths, look at document converters instead - see our picks for the best PDF to Markdown tools and, for general text recognition, the best free OCR software with local AI.