Image to Text OCR: Bulk Images to Text and Markdown avatar

Image to Text OCR: Bulk Images to Text and Markdown

Pricing

from $2.00 / 1,000 images

Go to Apify Store
Image to Text OCR: Bulk Images to Text and Markdown

Image to Text OCR: Bulk Images to Text and Markdown

Extract text from images (PNG, JPEG, TIFF, WebP) with Tesseract OCR. Returns plain text, Markdown and lines with position and confidence. Images you provide only, nothing else is collected. Unreadable files and failed downloads are free.

Pricing

from $2.00 / 1,000 images

Rating

0.0

(0)

Developer

Greenrun

Greenrun

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 hours ago

Last modified

Categories

Features

Limited permissions

Share

Extract text from images (PNG, JPEG, TIFF, WebP) with Tesseract OCR. Returns plain text, Markdown and lines with position and confidence. Images you provide only, nothing else is collected. Unreadable files and failed downloads are free.

Give it image links (or data: URIs, or a field of a dataset) and get the text of every image as plain text and Markdown, with every line's position and confidence, in 123 languages. Screenshots, scanned pages, receipts, slides, labels and multi-page TIFF scans all work. You pay for images that were read with OCR; unsupported files, blocked links and failed downloads are free, with the reason in the row. Made for document pipelines, RAG ingestion and AI agents that need to read what is inside an image.

What it does

  • Reads text with Tesseract 5 (LSTM models) from PNG, JPEG, TIFF (every page of a multi-page TIFF), WebP, GIF, BMP and JPEG 2000.
  • Returns three shapes: text (lines in reading order, paragraphs separated by a blank line), markdown (paragraphs, large lines as ## headings, bullet lists, hyphenated words joined) and lines with a bounding box in pixels of the original image and a confidence from 0 to 100; words on request.
  • Speaks 123 languages: English, Polish, German, French, Spanish, Italian, Portuguese and Dutch are installed; Chinese, Japanese, Korean, Arabic, Hebrew, Hindi, Russian, Ukrainian and every other Tesseract language are downloaded at the start of the run.
  • Prepares images: fixes EXIF rotation, puts transparent images on white, scales large photos down to 2,500 px and small screenshots up 2x before OCR.
  • Reads links from a dataset (images, images.url, product.imageUrl ...) and accepts data:image/...;base64 URIs, handy for AI agents.

Why use it

  • Pay only for images read. A PDF sent by mistake, a 404, a damaged file or a site that refuses access cost nothing, and each says why in error.
  • Layout you can use. Bounding boxes and confidence per line let you find totals on receipts, crop regions, or drop low-confidence lines; Markdown keeps headings and lists for LLMs.
  • Any language, one input field. Type jpn, ara+eng or ukr; no extra Actor, no API key.
  • Respectful. robots.txt is checked for every image link and redirect, private network addresses are refused. No proxies, no CAPTCHA solving, no login. Only the images you give are read.
  • Built for AI agents. Clear status messages, a predictable price per image, and limited permissions, so it works as a tool in the Apify MCP server.

How to use

In Apify Console

  1. Paste image links into Image URLs, one per line, or pick a dataset in Image URLs from a dataset and type the field with the links.
  2. Set Languages, for example eng+deu or jpn.
  3. For photos of labels, signs or packaging, choose Layout: Sparse text.
  4. Press Start. The Overview shows the text of each image; the Markdown view shows the Markdown.

From an AI agent (MCP)

Connect any MCP client to the Apify MCP server with only this Actor as a tool:

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

Through the API

curl -X POST "https://api.apify.com/v2/acts/greenrun~image-to-text-ocr/run-sync-get-dataset-items" \
-H "Authorization: Bearer <APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png"], "languages": "eng"}'

Input

FieldDefaultDescription
urlsImage links (http, https or data: URIs), one per line. index keeps the input order.
datasetIdOptional dataset whose items contain image links.
datasetFieldurlField with the links in each dataset item; dot paths and lists work.
languagesengTesseract language codes joined with +, for example eng+deu, chi_sim, jpn, ara.
pageSegmentationautoLayout: auto, sparse (photos, labels), singleBlock, singleColumn, singleLine.
includeLinestrueLines with bounding box and confidence.
includeWordsfalseWords with bounding box and confidence.
maxImageSide2500Larger images are scaled down to this longer side before OCR (500-4000).
maxPages20Pages read from one multi-page TIFF (1-500).
maxFileSizeMb30Larger images are skipped for free (1-200).
maxConcurrency4Images downloaded at the same time (1-20).
timeoutSecs120Time limit for one image or TIFF page (10-1800).

Output

One row from a run on the Apify platform on 19 November 2026 (6 inputs; lines shortened to 2 of 13):

{
"index": 1,
"input": "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png",
"status": "text",
"url": "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png",
"finalUrl": "https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png",
"httpStatus": 200,
"format": "png",
"width": 640,
"height": 500,
"pages": 1,
"pageCount": 1,
"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.\n...",
"markdown": "The (quick) [brown] {fox} jumps! Over the $43,456.78 <lazy> #90 dog & duck/goose, as 12.5% of E-mail from aspammer@website.com is spam. ...",
"confidence": 91.7,
"wordCount": 66,
"characters": 414,
"lines": [
{"text": "The (quick) [brown] {fox} jumps!", "confidence": 95.8, "bbox": {"x": 65, "y": 41, "width": 450, "height": 30}, "page": 1},
{"text": "Over the $43,456.78 <lazy> #90 dog", "confidence": 94.3, "bbox": {"x": 65, "y": 72, "width": 490, "height": 31}, "page": 1}
],
"words": null,
"scale": 2,
"processingMs": 674,
"warnings": [],
"checkedAt": "2026-11-19T19:44:38Z",
"error": null,
"billableEvents": {"image": 1}
}

The same run answered no_text for the Python logo and for a photo of dice, unsupported for a PDF (with a pointer to Document to Markdown) and not_found for a missing image; the two no_text rows are charged since 0.2 (the OCR ran), the other two are free. A run with "languages": "hin+heb" downloaded both models and read a Hindi and a Hebrew test image in 5.8 seconds.

status is text or no_text (charged: the OCR ran), or one of the free statuses: unsupported, not_found, blocked, too_large, error (an error after the OCR started keeps its events). confidence is the mean word confidence (0-100); scale is the factor used for OCR. The RUN-REPORT record in the key-value store has the counts and the reason for every free row.

Pricing

Pay per event, no subscription:

EventPriceWhen
Actor start$0.0045 per GB of memoryOnce per run: $0.009 at the default 2 GB.
Image$0.002An image read with OCR, with or without text found, charged when its OCR starts. Each TIFF page, large images and slow OCR count more Images (below).

How Images are counted. An image counts the largest of three numbers: its pages OCR'd (each page of a multi-page TIFF is at least one Image), its started 12 MP OCR'd (after maxImageSide: at the default 2500 px always one, at 4000 px a square image is two) and its started 16 GB-seconds of work (download, preparation and OCR: 8 seconds at the default 2 GB, 2 s at 8 GB; the run time is shared equally between the images in progress, not while an image waits for the OCR). Most screenshots and scans are one Image; dense pages, several languages and more memory make images count more. Each row shows its count in billableEvents, its work in workGbSecs and its pixels in megapixelsRead.

Example: 1,000 screenshots cost about $2.00, plus $0.009 per run at 2 GB.

Free: files that are not images, links that are not found, blocked by robots.txt or refused by the site, files above your size limit, damaged files that cannot be opened, and failed downloads. An image is charged when its OCR starts, so images without readable text (no_text) are charged, and a stopped OCR keeps what was charged (the row says so).

Runs of mostly free images stop early. Free images take run time that only the Actor start and the images read in the same run pay for. When that time is used up, the run stops and lists the images it did not process in RUN-REPORT under notProcessedInputs; start them in a new run.

You can cap the cost of a run with the maximum charge in the run options (at least $0.05); the run stops cleanly at that limit (also between TIFF pages) and the status message says so.

Limits

  • Tesseract reads printed text well; handwriting, stylised logos and text on busy photos give low confidence or no text (the OCR still ran, so the image is charged).
  • PDFs and Office files are not images: for those use Document to Markdown, which also runs OCR on scanned pages.
  • HEIC and SVG are not supported.
  • You are responsible for the images you send and for any personal data in them; the Actor keeps nothing outside your run.

FAQ

Do you keep the images or the text? No. Results stay in your run's dataset in your own Apify account, under your data retention settings; images are deleted from the run's disk after OCR.

How are languages added? Installed languages start at once. Other codes are downloaded once per run from the official tessdata_fast 4.1.0 models (a few MB each), which adds a few seconds.

Why was an image charged or not? Each row has its events in billableEvents and free rows their reason in error, and the RUN-REPORT record in the key-value store counts them.

Something is wrong with a result? Open an issue on the Actor's Issues tab with the image link.