Convert screenshots of math formulas to LaTeX code. 100% local AI — no upload, no API key. Powered by WebGPU.
LaTeX OCR uses the Texify2 model (ONNX, ~305MB, q8 quantized) from Xenova/texify2, running locally via Transformers.js / ONNX Runtime Web in your browser. The model downloads on first use and is cached afterward. Multi-CDN fallback ensures reliable downloads worldwide. All processing is 100% local — your images never leave your device.
About this tool
Convert screenshots of math formulas to LaTeX code using local AI. No upload, no API key, no subscription. 100% private, free.
What Is the LaTeX OCR Tool?
The LaTeX OCR tool is a free, browser-based AI tool that recognizes mathematical formulas from screenshots and converts them to LaTeX code. It uses the texify-small model running locally via Transformers.js with WebGPU acceleration. Upload a screenshot of any formula — from a PDF, textbook, whiteboard, or handwritten note — and the tool outputs clean LaTeX code that you can paste into Overleaf, Notion, or any LaTeX editor. All processing happens in your browser — your images never leave your device.
Who Should Use This Tool?
Students who need to digitize formulas from textbooks or lecture notes. Researchers extracting equations from academic papers. Teachers creating LaTeX documents from whiteboard photos. Anyone who works with math but doesn't want to manually type complex LaTeX expressions. The tool is especially useful when you have a formula as an image and need to edit it in LaTeX.
How to Use the LaTeX OCR Tool
Take a screenshot of the formula you want to convert. Upload it to the tool. Click Recognize Formula. The AI model downloads on first use (~40MB) and runs locally. The recognized LaTeX code appears in the output panel. Copy it to your clipboard and paste into any LaTeX editor. For best results, crop the screenshot to contain only the formula.
Frequently asked
Does this work with handwritten formulas?
The model is trained primarily on typeset formulas (printed or digital). Handwritten formulas may work if clearly written, but accuracy will be lower than for printed formulas. For best results, use screenshots from PDFs, websites, or typed documents.
Do I need to install anything?
No. The AI model runs entirely in your browser using WebGPU. The first time you use the tool, the model (~40MB) is downloaded and cached. After that, it works offline with no internet connection.
Related tools
What do you call a kid who stands at the front of the line?
No paywalls, no signups, no data sold. Built by a solo developer who believes useful tools should be accessible to everyone.
☕Support me on Ko-fi— keep tools free100% of proceeds go towards hosting & building more free tools.