# Image to text

> Read the words in a picture. The OCR model downloads once and runs in this browser.

Free image to text. Tesseract reads the picture in this browser after a one-time download of the language data. Pick a language, then copy or download the text. A progress line shows the download and the recognition.

- Page: https://benchline.fabwaseem.com/t/ocr-image-to-text
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: An image and a language.
- Output: The recognized text and a confidence score.
- Keywords: image to text, ocr online, extract text from image
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Drop the image.** Add a screenshot, a scan, or a photo of text.
2. **Choose the language.** English is ready first. Other languages download when you pick them.
3. **Copy the text.** The page shows progress, then the text and a confidence score.

## Use it from an AI agent

MCP tool name: `read_image_text`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/ocr-image-to-text with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Extract text from an image with Tesseract. language defaults to eng. Other codes in the list are fetched when first used. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns the text and a confidence from 0 to 100. An image with no text returns an empty string.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "file": {
      "type": "object",
      "properties": {
        "url": {
          "description": "Public http or https URL. Private and local addresses are refused.",
          "type": "string"
        },
        "data": {
          "description": "Base64 bytes or a data URI. Decoded size is capped at 10 MB.",
          "type": "string"
        },
        "mimeType": {
          "description": "MIME type when you know it.",
          "type": "string"
        },
        "filename": {
          "description": "File name, including the extension when you have one.",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "description": "The image. Provide url or data."
    },
    "language": {
      "default": "eng",
      "description": "A Tesseract language code such as eng, spa, fra, deu, or jpn.",
      "type": "string"
    }
  },
  "required": [
    "file",
    "language"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "read_image_text",
    "arguments": {
      "file": {
        "url": "https://example.com/file"
      },
      "language": "eng"
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Is the image uploaded?

No. Recognition runs in this browser. The first run downloads the language data, which is cached after that.

### Which languages are available?

English is the default. Spanish, French, German, Portuguese, Italian, Dutch, Polish, Turkish, Russian, Arabic, Hindi, simplified Chinese, Japanese, and Korean are in the list.

### Why is the first run slow?

The OCR engine and the language file download on first use. Later runs in the same browser reuse that download.

## Related tools

- [Image format converter](https://benchline.fabwaseem.com/t/image-convert): Convert HEIC, WebP, PNG, JPG, and AVIF in the browser. Nothing is uploaded.
- [QR and barcode reader](https://benchline.fabwaseem.com/t/qr-code-reader): Read QR codes and barcodes from a photo, a paste, or the camera.
- [Image to PDF](https://benchline.fabwaseem.com/t/image-to-pdf): Turn JPG, PNG, and WebP images into one PDF. Set the page size, orientation, margin, and order.
- [Merge PDF](https://benchline.fabwaseem.com/t/pdf-merge): Combine PDFs in the browser. Reorder them, keep a page range from each file, and download one document.
