OCRRouterGet API key

Convert PDF to TXT

Get the text of a PDF as a .txt file. Scanned and image-only PDFs work too, because every page goes through OCR.

Result

Your Markdown or JSON shows up here.

3 free pages a day, no sign-up.

How it works

  1. Step 1
    Upload your PDF
  2. Step 2
    We read every page in reading order
  3. Step 3
    Download the .txt file or copy the text

Why use this PDF to TXT converter

Works on scans

Image-only pages are read with OCR instead of coming back empty.

Reading order

Columns, headers and footers are detected, so sentences are not cut across columns.

UTF-8 for every language

Chinese, Arabic, Hindi and accented Latin text come out correctly in any editor.

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