# Image to Text OCR - Extract Text from Photos & Screenshots (`michail-data-tools/image-to-text-ocr`) Actor

Extract text from images, photos, screenshots, receipts and scans. JPG, PNG, WEBP, GIF, BMP, TIFF. 23 languages, automatic clean-up and upscaling, per-line confidence. Pay per image, failed images are free.

- **URL**: https://apify.com/michail-data-tools/image-to-text-ocr.md
- **Developed by:** [Michail](https://apify.com/michail-data-tools) (community)
- **Categories:** AI, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 images processed

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/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

**Give it image links - photos, screenshots, receipts, scans → get clean text.**
23 languages, automatic clean-up and upscaling. **$0.0015 per image**, failed images are free, no subscription.

💻 Code examples: [GitHub](https://github.com/kolesnichenko575-boop/podcast-transcript-api-examples)

### What does Image to Text OCR do?

**Image to Text OCR** extracts readable text from **images, photos, screenshots, receipts, invoices, scans and memes**. Give it image URLs and get back:

- 📝 **Clean text** with paragraphs preserved
- 📏 **Every line with a confidence score** (0–100), so you can filter uncertain results
- 🌍 **23 languages** — English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Ukrainian, Czech, Turkish, Arabic, Hindi, Japanese, Korean, Chinese and more
- 🧹 **Automatic image clean-up** — rotation from EXIF, transparency removed, small images upscaled, contrast normalized

### Why use it?

- 💸 **Simple, low price** — pay per image. Broken links, web pages and damaged files are **never charged**.
- 🎯 **Accurate on real-world images** — small screenshots and low-contrast photos are enhanced before recognition.
- ⚡ **Fast and parallel** — process hundreds of images in one run.
- 🔒 **No third-party AI services** — OCR runs inside the Actor.

### What can I use it for?

- **Receipts and invoices** — pull totals, dates and invoice numbers into spreadsheets.
- **Screenshots** — make chat logs, dashboards and app screens searchable.
- **Social media images** — read text from memes, quotes, infographics and ads.
- **E-commerce** — extract text from product photos and labels.
- **AI pipelines** — feed recognized text to your LLM, search index or database.

### How to use it

1. Click **Try for free**.
2. Paste image URLs (direct links to `.jpg`, `.png`, `.webp`, `.gif`, `.bmp` or `.tiff` files).
3. Choose the languages of the text and, for signs or memes, the *Sparse* layout.
4. Click **Start**. Download results as JSON, CSV or Excel, or get them via the API.

### How much does it cost?

Pay-per-event pricing — one small fixed price **per successfully processed image** (see the *Pricing* tab). Apify platform usage is included. 1,000 images cost the same whether they are tiny screenshots or large photos.

### Input example

```json
{
  "urls": [
    { "url": "https://example.com/receipt.jpg" },
    { "url": "https://example.com/screenshot.png" }
  ],
  "languages": ["eng", "deu"],
  "layout": "auto",
  "includeLines": true
}
```

### Output example (real test run)

From a real test run on `https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png` (long fields shortened, nothing else edited):

```json
{
  "status": "ok",
  "url": "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png",
  "fileName": "eurotext.png",
  "width": 640,
  "height": 500,
  "languages": "eng",
  "text": "The (quick) [brown] {fox} jumps!\nOver the $43,456.78 <lazy> #90 dog\n& duck/goose, as 12.5% of E-mail\nfrom aspammer@website.com is spam.\nDer...",
  "lines": [
    {
      "text": "The (quick) [brown] {fox} jumps!",
      "confidence": 96.2
    },
    {
      "text": "Over the $43,456.78 <lazy> #90 dog",
      "confidence": 95.4
    },
    {
      "text": "& duck/goose, as 12.5% of E-mail",
      "confidence": 95.1
    },
    {
      "text": "from aspammer@website.com is spam.",
      "confidence": 93.7
    },
    "..."
  ],
  "averageConfidence": 91.5,
  "wordCount": 66,
  "charCount": 414,
  "processingSeconds": 3.2
}
```

Images that cannot be processed are returned with `"status": "error"` and a clear `error` message — and are not charged.

### Tips

- **Pick the right languages** — selecting only the languages in your images improves accuracy and speed.
- **Signs, memes, product photos** — use the *Sparse / scattered text* layout.
- **PDF files?** Use our **Document to Text** Actor — it handles text PDFs, scanned PDFs and DOCX.
- **Handwriting** — printed text works best; handwriting gives weaker results.

### FAQ

**Which formats are supported?**
JPG/JPEG, PNG (including transparent), WEBP, GIF (first frame), BMP and TIFF, up to 40 MB.

**Can it read text from web pages?**
No — give direct links to image files. For web pages use a website crawler.

**Something does not work?**
Open an issue in the **Issues** tab with the image URL. We fix reported problems quickly.

### Integrations & API

Run it from **Make, n8n, Zapier**, Google Sheets, webhooks or your own code — results come back as clean JSON.

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("michail-data-tools/image-to-text-ocr").call(run_input={...})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**AI agents (MCP):** add this tool to Claude, Cursor or any MCP client via the Apify MCP server — `https://mcp.apify.com?tools=michail-data-tools/image-to-text-ocr` — and let your agent call it directly.

### More tools from the same developer

- [Viral Video Breakdown AI](https://apify.com/michail-data-tools/viral-video-breakdown) — hook score, structure and a reusable script from any TikTok
- [TikTok Transcript](https://apify.com/michail-data-tools/tiktok-transcript) — video to text, SRT and AI summary
- [Podcast & Audio Transcriber](https://apify.com/michail-data-tools/podcast-audio-transcriber) — RSS, MP3 and any audio URL to text
- [PDF & DOCX to Text](https://apify.com/michail-data-tools/document-to-text) — Markdown, tables and OCR for scans
- [Company Jobs Scraper](https://apify.com/michail-data-tools/company-jobs-scraper) — all open jobs from Greenhouse, Lever, Ashby and more

Found a problem or need a feature? Open an issue — we usually reply within a day. If the tool saved you time, a short review helps others find it.

# Actor input Schema

## `urls` (type: `array`):

Direct links to image files: JPG, PNG, WEBP, GIF, BMP or TIFF.

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

Languages of the text in your images. Choose only what you need - fewer languages = faster and more accurate.

## `layout` (type: `string`):

auto = documents and screenshots (recommended). single_block = one uniform block of text. sparse = scattered text like signs, memes or product photos.

## `includeLines` (type: `boolean`):

Add every recognized line with its confidence score (0-100).

## `concurrency` (type: `integer`):

How many images to process at the same time (1-8).

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png"
    }
  ],
  "languages": [
    "eng"
  ],
  "layout": "auto",
  "includeLines": true,
  "concurrency": 4
}
```

# Actor output Schema

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

One item per image: text, lines with confidence, word count.

# 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 = {
    "urls": [
        {
            "url": "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("michail-data-tools/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 = { "urls": [{ "url": "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png" }] }

# Run the Actor and wait for it to finish
run = client.actor("michail-data-tools/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 '{
  "urls": [
    {
      "url": "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png"
    }
  ]
}' |
apify call michail-data-tools/image-to-text-ocr --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,michail-data-tools/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/2i2gjXhiEjwew1wuy/builds/74h4EhcsLbTRfiuQg/openapi.json
