Image to Text OCR: Extract Text from Images in Bulk
Pricing
from $1.50 / 1,000 image with texts
Image to Text OCR: Extract Text from Images in Bulk
Extract text from images by URL, upload or key-value store: JPG, PNG, WEBP, TIFF, BMP, GIF. OCR in 30 languages with confidence scores and optional line and word bounding boxes. Runs Tesseract locally, no external OCR API. $1.50 per 1,000 images with text; blank images and failed URLs are free.
Pricing
from $1.50 / 1,000 image with texts
Rating
0.0
(0)
Developer
Catalin Friptu
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
18 days ago
Last modified
Categories
Features
Share
Image to Text OCR extracts text from images in bulk. Paste image URLs, upload files or point it at a key-value store, and get one row per image with the recognised text, a confidence score, the detected language and, if you want them, every line and word with its bounding box. It works as an OCR API for screenshots, scanned documents, receipts, letters, labels, signs and logos.
$1.50 per 1,000 images with text. Images where no text is found, broken links and non-image files are free.
- Bulk image OCR. Hundreds of image URLs in one run, several read in parallel. A bad link doesn't stop the run: it gets its own row with the reason.
- JPG, PNG, WEBP, TIFF, BMP, GIF (and AVIF). For animated GIFs and multi-page TIFFs, only the first frame is read.
- 30 OCR languages: English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Czech, Romanian, Russian, Ukrainian, Turkish, Swedish, Danish, Norwegian, Finnish, Hungarian, Bulgarian, Greek, Vietnamese, Indonesian, Arabic, Hebrew, Hindi, Chinese (Simplified and Traditional), Japanese, Korean and Thai.
- Confidence scores and word boxes. Every line and word comes with its pixel position and a 0–100 confidence, at the same price as plain text.
- Private by design. OCR runs inside your Apify run with the open-source Tesseract engine. Your images are not sent to Google, OpenAI or any other OCR service.
- Handles awkward images. Phone photos are turned upright using their EXIF orientation. White text on a transparent background (a typical logo) is still read. 16-bit scans are handled.
What does Image to Text OCR do?
You give it images and it returns one dataset row per image:
| Field | What you get |
|---|---|
text | The recognised text in reading order. Lines are separated by a newline, paragraphs by a blank line. |
confidence | Average word confidence, 0–100. Low values flag blurry or hard-to-read images. |
language | Detected language of the text (en, de, ru...), when there are about 40 letters or more. |
char_count, word_count, line_count | Size of the result. |
lines | With Output: lines or words: each line's text, confidence and box (left, top, width, height). |
words | With Output: words: each word's text, confidence and box. |
image_format, width, height, frames | What the file was. |
url, file_name, index | Where the image came from and its position in your input. |
error | Why an image failed. Failed images are never charged. |
Example output
A real run on 7 URLs (languages English + German + French, 4 in parallel):
| Image | Format | Characters | Confidence | Language | Charged |
|---|---|---|---|---|---|
| phototest.tif (typed page) | TIFF | 285 | 96.2 | en | $0.0015 |
| eurotext.png (mixed-language sample) | PNG | 412 | 93.5 | $0.0015 | |
| 1965 typewritten letter (Wikimedia Commons) | JPEG | 485 | 82.0 | en | $0.0015 |
| Kansas Commerce logo (white on transparent) | WEBP | 16 | 96.1 | $0.0015 | |
| Wildey logo | GIF | 6 | 92.1 | $0.0015 | |
| no-such-image.png | free: download failed: HTTP 404 | ||||
| example.com (a web page) | free: the URL returned an HTML web page, not an image |
One row, shortened:
{"index": 1,"url": "https://raw.githubusercontent.com/tesseract-ocr/test/main/testing/phototest.tif","file_name": "phototest.tif","text": "This is a lot of 12 point text to test the\nocr code and see if it works on all types\nof file format.\n\nThe quick brown dog jumped over the\nlazy fox. ...","char_count": 285, "word_count": 60, "line_count": 8,"confidence": 96.2, "language": "en", "ocr_languages": "eng+deu+fra","image_format": "TIFF", "width": 640, "height": 480, "frames": 1,"lines": [{"text": "This is a lot of 12 point text to test the", "confidence": 96.5,"left": 36, "top": 92, "width": 544, "height": 30, "block": 1, "paragraph": 1, "line": 1}],"words": null,"error": null}
Who it's for
- Developers and AI agents that need an image-to-text step in a pipeline: screenshots to text, scanned forms to text, product photos to searchable labels.
- Data teams turning folders of scanned letters, receipts, invoices or archive images into searchable text.
- E-commerce and marketing teams reading the text in product images, banners and social media graphics.
- Anyone who wants OCR without sending images to a third-party AI or Google service.
How to extract text from images
- Click Try for free and create a free Apify account.
- Paste image links into Image URLs, or upload images.
- Pick the Text languages printed in your images. Leave English if unsure.
- Optional: set Output to lines or words if you need positions, and Layout to Sparse text for photos of signs or labels.
- Click Start. Download the results as JSON, CSV or Excel, or read them through the API.
Input
| Field | Default | Description |
|---|---|---|
startUrls | 3 sample images | Direct links to image files. |
files | Images you upload in the input form. | |
keyValueStoreId | One of your key-value stores. Every binary record is OCR'd; JSON and text records are skipped. | |
keyValueStoreKeys | all | Only these keys from that store. |
languages | ["eng"] | Tesseract language codes. Each extra language makes OCR slower. |
outputFormat | text | text, lines (adds line boxes) or words (adds line and word boxes). |
pageSegmentationMode | auto | auto, single_column, single_block, sparse (scattered text in photos) or single_line. |
detectLanguage | true | Add the detected language to each row. |
maxConcurrency | 4 | Images processed at the same time (1–32). |
API example:
{"startUrls": [{"url": "https://example.com/receipt.jpg"}, {"url": "https://example.com/screenshot.png"}],"languages": ["eng", "deu"],"outputFormat": "words"}
Pricing
Pay per event:
| Event | Price |
|---|---|
| Image with text (OCR found at least one word) | $0.0015 ($1.50 per 1,000) |
| Image without text, failed download, not an image | free |
Set Maximum cost per run in the run options: the Actor stops starting new images before it would go over it.
Tips for better OCR results
- Pick the right language. Tesseract reads only the scripts you select: Cyrillic needs
rus/ukr/bul, Chinese needschi_simorchi_tra. - Resolution matters. Text smaller than about 10 pixels tall reads poorly. Use the original image, not a thumbnail.
- Photos of scenes (street signs, product shelves) work better with Layout: Sparse text.
- Use the confidence score to flag rows for review: below about 60 usually means a blurry or stylised image.
- Handwriting isn't what Tesseract is built for: expect poor results on handwritten notes.
Limits
- One frame per image: the first frame of animated GIF/WEBP files and multi-page TIFFs.
- Files up to 50 MB and 150 megapixels; images over 40 megapixels are scaled down before OCR (boxes are still reported in the original image's pixels).
- Links must point at the image file itself. A web page that shows the image returns an error row. Links to a text file of URLs (
requestsFromUrl) are not supported. - PDFs are not read here: use PDF Text Extractor, which OCRs scanned pages and reads text layers directly.
FAQ
Is there an OCR API? Yes. Run the Actor through the Apify API or any Apify client and read the dataset. Each run returns one row per image.
Which OCR engine does it use? Tesseract 5 with the fast LSTM models, inside the Actor's own container. No external OCR or AI service is called.
Do I pay for images without text? No. If OCR finds no words, the row is still saved (with empty text) and isn't charged. Failed downloads and non-image files aren't charged either.
Can I OCR images another Actor saved? Yes. Set Key-value store with images to that store's ID.
Is it legal? The Actor only reads images you link to or upload. Make sure you have the right to process them.