OCRRouterGet API key

Convert PDF to LaTeX

Get the text and equations from a PDF with every formula as LaTeX. Good for papers, lecture notes and problem sets.

Result

Your Markdown or JSON shows up here.

3 free pages a day, no sign-up.

How it works

  1. Step 1
    Upload the PDF
  2. Step 2
    We read text, tables and equations
  3. Step 3
    Copy the Markdown with LaTeX maths

Why use this PDF to LaTeX converter

Every equation as LaTeX

Inline and display maths are recognised across the whole PDF, not one formula at a time.

Text around the maths

Section headings, paragraphs and tables come with it, so you keep the context.

Pandoc-friendly

The Markdown uses standard $ and $$ delimiters, so pandoc -f markdown -t latex turns it into a LaTeX body.

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