# OCR Image to Text (Bulk, 8 Languages, Lines and Word Positions) (`pagecraft/ocr-image-to-text`) Actor

Read text from any list of image URLs with Tesseract OCR: receipts, screenshots, scans, signs and slides. Returns text, lines, confidence and optional word positions. English, German, French, Spanish and more.

- **URL**: https://apify.com/pagecraft/ocr-image-to-text.md
- **Developed by:** [Pagecraft Tools](https://apify.com/pagecraft) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 image reads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OCR Image to Text: Read Text from Any List of Image URLs

**For** anyone turning images of text (scans, screenshots, signs) into searchable text. **You get** the text of each image, with word count, confidence and line positions.

**Real run (13 Nov 2026, the example input):** 2 images in 5 seconds. **The example input costs 1 cent** on Apify's Free plan; the plan's $5 of free monthly usage covers about 1,000 images.

| image | words | confidence | text (start) |
| --- | --- | --- | --- |
| eng_bw.png | 58 | 92% | Mild Splendour of the various-vested Night! |
| eurotext.png | 66 | 90% | The (quick) \[brown] {fox} jumps! Over the $43,456.78 <lazy> #90 dog |

Turn **receipts, screenshots, scanned letters, slides, signs and product labels** into text. Paste image links and get back the **text, the lines in reading order and a confidence score**, plus optional **word positions** (x, y, width, height) for every word. Uses Tesseract 5, the leading open-source OCR engine, with **English, German, French, Spanish, Italian, Portuguese, Dutch and Polish** built in. No API keys, no uploads, pay per image.

### Quick start

1. Press **Try for free**. The form opens with a working example (`https://tesseract.projectnaptha.com/img/eng_bw.png`, `https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png`).
2. Replace it with your own image URLs.
3. Press **Start**. Results appear as they are found; download them as Excel, CSV or JSON, or use the API.

A result looks like this (some columns):

| url | lineCount | wordCount | confidence | width |
| --- | --- | --- | --- | --- |
| https://img.example.com/receipt.png | 6 | 22 | 93 | 900 |

### What it does

- 🔤 **Text and lines** from each image, in reading order, with blank space tidied.
- 🎯 **Confidence score** (0 to 100) per image and per word, so you can route low-quality scans for review.
- 📍 **Word positions** on request, in pixels of your original image, for highlighting, redaction or form parsing.
- 🌍 **8 languages**, up to 3 at once for mixed-language documents.
- 📱 **Phone photos handled**: rotation from the camera is corrected and large photos are scaled down before reading.
- 🧹 **Clear results**: images with no text are flagged, and missing files, web pages and slow servers come back with a plain-English reason.

### Who it's for

- **Finance and expense teams** pulling text from receipts and invoices.
- **Researchers and archivists** digitising scanned pages and posters.
- **Developers and AI agents** that need text from screenshots, charts or slides.
- **E-commerce teams** reading text from product and label images.

### Input

| Field | What to enter |
| --- | --- |
| Image URLs | Direct links to JPEG, PNG, WebP, GIF, TIFF, AVIF or SVG images, up to 5 MB each |
| Languages | English by default; up to 3 |
| Word positions | Optional, adds a `words` list |

```json
{ "imageUrls": ["https://tesseract.projectnaptha.com/img/eng_bw.png"], "languages": ["eng"], "includeWords": true }
```

### Output

One row per image:

```json
{
  "url": "https://img.example.com/receipt.png",
  "text": "NORTHWIND COFFEE ROASTERS\n12 Market Street, Leeds LS1 4AB\nFlat white 3.40\nAlmond croissant 2.90\nTOTAL 6.30\nThank you for your visit",
  "lineCount": 6,
  "wordCount": 22,
  "confidence": 93,
  "languages": ["English"],
  "width": 900,
  "height": 500,
  "format": "png",
  "fileSizeKb": 27,
  "lines": ["NORTHWIND COFFEE ROASTERS", "12 Market Street, Leeds LS1 4AB", "..."],
  "words": [{ "text": "NORTHWIND", "confidence": 91, "x": 43, "y": 36, "width": 185, "height": 22 }],
  "note": null,
  "error": null
}
```

`words` is `null` unless you ask for word positions. Download the results as JSON, CSV or Excel, or read them through the API.

### Pricing

| Event | When it is charged | Price per 1,000 (Free / Bronze / Silver / Gold plan) |
| --- | --- | --- |
| Image read | Each image whose text is returned (including images with no text found). | $5 / $4.50 / $4 / $3.50 |
| Image failed | An image that could not be downloaded or read, or took too long (it still uses server time). | $3 on every plan |

Example: 1,000 images cost $5 on the Free plan. Images that cannot be read are charged the smaller failed fee, because they still use server time.

### Notes and limits

- OCR works best on clear, printed text. Handwriting, very small text and busy photos give lower confidence.
- Images are scaled to at most 2,000 pixels on the longer side before reading. Word positions are converted back to your original image.
- Each image has 8 seconds to download (5 MB maximum) and 15 seconds to read.
- PDFs are not images: use a PDF text tool for digital PDFs.

### Use with AI agents (MCP)

Connect this tool to Claude, Cursor, VS Code or any other MCP client through the [Apify MCP server](https://mcp.apify.com/). To load only this tool, use this server URL:

```
https://mcp.apify.com?tools=pagecraft/ocr-image-to-text
```

Then ask, for example: "Read the text from these receipt images and give me the totals". The agent gets back the text, lines and a confidence score for each image, plus word positions if asked. Each call is charged per event at the prices in Pricing above. Agents without an Apify account can also pay per run through [Apify's agentic payments](https://docs.apify.com/agents/payments).

### Workflows with other Pagecraft tools

Pagecraft tools are built to work together. Ideas that use this one:

**Turn documents and web pages into AI-ready text.** Feed a RAG system, a vector database or an LLM prompt with clean text.

1. [Sitemap URL Extractor](https://apify.com/pagecraft/sitemap-url-extractor): List every page URL of a website from its sitemaps.
2. [Article Extractor](https://apify.com/pagecraft/article-extractor): Get clean text or Markdown, with title, author and date, for each page.
3. [PDF Text Extractor](https://apify.com/pagecraft/pdf-text-extractor): Add the text of any PDF reports or papers, page by page.
4. **This tool**: Read text from scans, screenshots and images the other steps cannot.

### More Pagecraft tools

- [PDF Text Extractor](https://apify.com/pagecraft/pdf-text-extractor): text, pages and metadata from digital PDFs.
- [Article Extractor](https://apify.com/pagecraft/article-extractor): clean text and Markdown from any article URL.
- [Website Screenshot & PDF](https://apify.com/pagecraft/website-screenshot-pdf): capture any page as an image or PDF.

# Actor input Schema

## `imageUrls` (type: `array`):

Direct links to images (JPEG, PNG, WebP, GIF, TIFF, AVIF or SVG), one per line, up to 5 MB each. Up to 10,000 per run.

## `languages` (type: `array`):

The language(s) of the text. Choose up to 3; each extra language makes reading a little slower.

## `includeWords` (type: `boolean`):

Also return every word with its confidence and position (x, y, width, height in pixels of the original image).

## `proxyConfiguration` (type: `object`):

Not usually needed. Use Apify datacenter proxies for sites that block cloud servers.

## Actor input object example

```json
{
  "imageUrls": [
    "https://tesseract.projectnaptha.com/img/eng_bw.png",
    "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png"
  ],
  "languages": [
    "eng"
  ],
  "includeWords": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrls": [
        "https://tesseract.projectnaptha.com/img/eng_bw.png",
        "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pagecraft/ocr-image-to-text").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "imageUrls": [
        "https://tesseract.projectnaptha.com/img/eng_bw.png",
        "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("pagecraft/ocr-image-to-text").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrls": [
    "https://tesseract.projectnaptha.com/img/eng_bw.png",
    "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png"
  ]
}' |
apify call pagecraft/ocr-image-to-text --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pagecraft/ocr-image-to-text"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KX2LRydtd0NX1LaPB/builds/Z7zLsrFNvLGHBp0mZ/openapi.json
