# Image to Text OCR — Extract Text from Images in Bulk (`hipersoft/image-to-text-ocr`) Actor

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

## Pricing

from $0.002 / image read

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

## Image to Text OCR — Extract Text from Images in Bulk

**Turn images into clean, searchable text.** Give the Image to Text OCR actor a list of image URLs — receipts, screenshots, scanned documents, photos of signs, product labels, book pages — and get back the **extracted text**, a **confidence score**, and **word and character counts** for each one, as structured **JSON, CSV, Excel or XML**. Read hundreds of images in a single run, in **100+ languages**.

![Image to Text OCR input — configure the options in the Apify Console](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/image-to-text-ocr-input.png)

### What does this OCR actor do?

Optical Character Recognition (OCR) reads the printed text inside an image and returns it as plain, editable text. Instead of retyping a receipt, a screenshot or a scanned page by hand, point this actor at the image URLs and it hands you the words — bulk, structured and ready to search, store or feed into another tool.

- **Bulk image-to-text** — process a whole list of image URLs in one run, one result row per image.
- **100+ languages** — English, Spanish, French, German, Portuguese, Italian, Dutch, Russian, Arabic, Chinese, Japanese and many more, including multi-language pages.
- **Confidence score** — every result includes how sure the OCR is, so you can filter out low-quality reads.
- **Clean output** — export the extracted text to JSON, CSV, Excel or XML, or pipe it straight into your own app.

### What you can use it for

- **Receipts & invoices** — pull text and totals out of receipt photos for expenses and bookkeeping.
- **Screenshots** — extract text from screenshots of chats, dashboards, error messages or slides.
- **Scanned documents** — make scanned PDFs and paper pages searchable and copy-pasteable.
- **Product labels & packaging** — read ingredient lists, barcodes-adjacent text, and spec sheets at scale.
- **Signs, menus & photos** — convert photographed text into data for translation or analysis.
- **Data entry automation** — replace manual typing of printed text with a repeatable, bulk workflow.

### Input

Provide one or more direct image URLs and, optionally, the language.

```json
{
  "imageUrls": [
    "https://example.com/receipt.jpg",
    "https://example.com/screenshot.png"
  ],
  "language": "eng"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `imageUrls` | array | Direct URLs of the images (JPG, PNG, WEBP, BMP, TIFF) to read. |
| `language` | string | Language code, e.g. `eng`, `spa`, `fra`, `deu`, `chi_sim`. Combine with `+` (e.g. `eng+spa`). |
| `maxItems` | integer | Optional cap on how many images to process. 0 = no limit. |
| `proxyConfiguration` | object | Optional. Off by default; turn on only if an image host blocks direct requests. |

### What data do you get per image?

| Data point | Description |
| --- | --- |
| Source | `url` |
| Text | `text` — the full extracted text |
| Quality | `confidence` (0–100) |
| Size | `wordCount`, `charCount` |
| Language | `language` |
| Status | `status` (`ok`, `no-text`, `error`), `error` |

### Output

![Image to Text OCR output — the results as a clean dataset](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/image-to-text-ocr-output.png)

Each image produces one row. Export the dataset to JSON, CSV, Excel or XML.

```json
{
  "url": "https://example.com/receipt.jpg",
  "text": "GROCERY MART\n123 Main St\nTotal: $42.17",
  "confidence": 91,
  "wordCount": 6,
  "charCount": 38,
  "language": "eng",
  "status": "ok",
  "ocredAt": "2026-11-09T08:40:00.000Z"
}
```

#### Output schema

| Field | Type | Description |
| --- | --- | --- |
| `url` | string (URL) | The image URL you supplied. |
| `text` | string | The extracted text. |
| `confidence` | integer | OCR confidence, 0–100. |
| `wordCount` | integer | Number of words found. |
| `charCount` | integer | Number of characters found. |
| `language` | string | The language code used. |
| `status` | string | `ok`, `no-text` or `error`. |
| `error` | string | Reason, when a single image could not be read. |

### Languages

Use a Tesseract-style language code: `eng` (English), `spa` (Spanish), `fra` (French), `deu` (German), `por` (Portuguese), `ita` (Italian), `nld` (Dutch), `rus` (Russian), `ara` (Arabic), `chi_sim` (Simplified Chinese), `jpn` (Japanese), and many more. For a page that mixes languages, combine them with `+`, for example `eng+spa`.

### FAQ

**Which image formats are supported?** JPG, PNG, WEBP, BMP and TIFF. Each image is fetched from its URL and read in turn.

**How accurate is it?** Clean, printed text (receipts, screenshots, scans) reads very well and includes a confidence score. Handwriting and very noisy or low-resolution images are harder — the confidence value tells you which reads to trust.

**Can it read more than one language at once?** Yes — combine codes with `+`, such as `eng+fra`, and the actor will recognise both on the same page.

**Can I automate it?** Yes — run it on a schedule or trigger it from your own app via [integrations on the Apify platform](https://apify.com/integrations) and the [Apify API](https://docs.apify.com/api/v2).

### Related Actors

Explore more data tools from the same author:

- [PDF to Text & Markdown — Bulk (RAG-ready)](https://apify.com/hipersoft/pdf-to-text-extractor)
- [Image Optimizer — WebP / AVIF / JPEG / PNG](https://apify.com/hipersoft/image-optimizer)
- [Images to PDF — Combine Photos into One PDF](https://apify.com/hipersoft/images-to-pdf)
- [Bulk Image Downloader — URLs to Stored Files](https://apify.com/hipersoft/bulk-image-downloader)

Plug the results straight into your stack with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier) or any of Apify's [integrations](https://apify.com/integrations).

# Actor input Schema

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

Direct URLs of the images (JPG, PNG, WEBP, BMP, TIFF) to read with OCR. Each image returns one row of extracted text.

## `language` (type: `string`):

OCR language as a Tesseract code, e.g. `eng` (English), `spa`, `fra`, `deu`, `por`, `ita`, `nld`, `rus`, `ara`, `chi_sim`, `jpn`. Combine languages with `+`, e.g. `eng+spa`.

## `maxItems` (type: `integer`):

Optional cap on how many images to process this run. 0 = no limit.

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

Optional. Images are fetched directly by default; turn on a proxy only if a host blocks direct requests.

## Actor input object example

```json
{
  "imageUrls": [
    "https://example.com/receipt.jpg",
    "https://example.com/screenshot.png"
  ],
  "language": "eng",
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The results as dataset items.

# 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"
    ],
    "language": "eng",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/image-to-text-ocr").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"],
    "language": "eng",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/image-to-text-ocr").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"
  ],
  "language": "eng",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call hipersoft/image-to-text-ocr --silent --output-dataset

```

## MCP server setup

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

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/5SCNAglCKiaaZWZwG/builds/r7ajz9SoL8cjVFS27/openapi.json
