OCRRouterGet API key

Convert image to LaTeX

Upload a picture of an equation and get LaTeX you can paste into Overleaf, a paper or Markdown.

Result

Your Markdown or JSON shows up here.

3 free pages a day, no sign-up.

How it works

  1. Step 1
    Screenshot or photograph the equation
  2. Step 2
    Upload it
  3. Step 3
    Copy the LaTeX

Why use this Image to LaTeX converter

Real LaTeX, not images

Fractions, sums, integrals, matrices and Greek letters come back as LaTeX commands you can edit.

Text and maths together

A screenshot of a textbook paragraph with equations keeps the prose as text and the maths as LaTeX.

Mathpix available via API

For heavy maths, you can route to Mathpix through the same API and compare it with other models.

What people use it for

Models that do this well

The free tool picks one for you. With the API you choose, and can set fallbacks so a failed page is retried on the next model.

Do it with the API

Converting more than a few files? The same conversion is one request. Pick any model, or let auto choose.

Get API key

curl https://api.ocrrouter.ai/v1/ocr \
  -H "Authorization: Bearer $OCRROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto",
    "file_url": "https://example.com/invoice.pdf",
    "format": "markdown"
  }'

Questions

More free tools