Image to Text OCR: Read Text from Images & Screenshots avatar

Image to Text OCR: Read Text from Images & Screenshots

Pricing

$1.50 / 1,000 image with texts

Go to Apify Store
Image to Text OCR: Read Text from Images & Screenshots

Image to Text OCR: Read Text from Images & Screenshots

Extract text from images at public URLs with OCR: PNG, JPEG, WebP, GIF, BMP, multi-page TIFF, HEIC and AVIF. Full text with line breaks, confidence, and optional line or word boxes. 7 languages. Pay only for images where text was found; empty images and errors are free.

Pricing

$1.50 / 1,000 image with texts

Rating

0.0

(0)

Developer

Michael Shanker

Michael Shanker

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Security

Limited permissions

Share

Give it the addresses of images and get back the text in them, with line breaks, a confidence score, and if you want, every line or word with its position in the picture. It reads PNG, JPEG, WebP, GIF, BMP, multi-page TIFF, HEIC (iPhone photos) and AVIF, in English, Spanish, French, German, Italian, Portuguese and Dutch.

You pay only for images where text was found. Images with no text, files that can't be downloaded or aren't pictures, and images that time out are saved with the reason and cost nothing.

What it does

  • Full text with its layout. Lines stay on their own lines and paragraphs are separated by a blank line, so receipts, forms, slides and screenshots read the way they look.
  • Confidence you can filter on. Every image gets a meanConfidence from 0 to 100 (the average over its words). Clean scans and screenshots usually score above 90; blurry photos score much lower, so you can flag results to check by hand.
  • Lines and words with boxes. Choose lines or words to get each line or word with its confidence and its box (left, top, width, height) in the original image's pixels, even when the image was enlarged or shrunk for reading. Good for highlighting text, redacting, or pulling out a field by position.
  • Image cleanup that helps OCR. In auto mode, images are turned to grayscale, small images (screenshots, crops, thumbnails) are enlarged so letters are big enough, contrast is stretched, and light text on a dark background (dark-mode screenshots, signs) is inverted. Phone photos are turned upright from their rotation tag, and transparent PNGs are put on white.
  • Layouts for different pictures. auto for documents, scans and screenshots; auto_rotate also turns sideways or upside-down scans upright; single_block for one paragraph or a cropped text box; sparse for photos, signs, labels and app screens where words are scattered.
  • Multi-page TIFFs (faxes, scanned batches): every page is read (up to 50), with the text of each page in pages and a --- page N --- marker in the full text. You pay per page that had text.

Good for: turning screenshots and scanned pages into searchable text, reading receipts and invoices before parsing them, getting text out of social media images and memes, feeding image text to AI tools, checking product photos and labels, and indexing image archives.

How it compares

Several small OCR tools in the Store charge per image, from about $1 to $2 per 1,000 images, some with a start fee. Here is the same work priced side by side:

JobThis Actor~$1 / 1,000 images + start fee~$2 / 1,000 images
1,000 images, all with text$1.50about $1.00 + start feeabout $2.00
1,000 images, 400 with no text or broken links$0.90check how it charges for empty and failed imagescheck how it charges for empty and failed images
Word and line boxes, confidenceincludedcheck the toolcheck the tool

So if every image has text, the cheapest per-image tool costs less; if your batch mixes in photos without text, dead links or files that aren't pictures, you only pay here for what gave text. Try a few of your own images first: OCR quality depends most on the image.

Input

FieldWhat it does
Image addresses (imageUrls)Public http(s) addresses of images, one per line. Request-list style objects ({"url": "..."}) work too. Redirects are followed, and an image sent with the wrong content type is still read.
Languages (languages)Up to 4 of eng, spa, fra, deu, ita, por, nld. Default ["eng"]. Pick only what you need: each extra language makes OCR slower.
Detail (detail)text (default): text, counts and confidence. lines: also each line with its box. words: also each word with its box and line number.
Layout (pageSegmentation)auto (default), auto_rotate, single_block or sparse (see above).
Image cleanup (preprocessing)auto (default) or off to send the image as it is.
Time limit per image (imageTimeoutSecs)Default 120 seconds.

Example input:

{
"imageUrls": [
"https://upload.wikimedia.org/wikipedia/commons/c/cd/Origin_of_Species_title_page.jpg",
"https://www.example.org/screenshots/settings.png"
],
"languages": ["eng"],
"detail": "lines",
"pageSegmentation": "auto"
}

Output

One row per image (values shortened):

{
"url": "https://files.example.org/receipts/bakery.png",
"inputUrl": "https://files.example.org/receipts/bakery.png",
"status": "ok",
"error": null,
"note": null,
"fileName": "bakery.png",
"format": "PNG",
"width": 900,
"height": 520,
"bytes": 23618,
"pageCount": 1,
"pagesRead": 1,
"languages": ["eng"],
"text": "CORNER BAKERY\n\n12 Market Street\nSourdough loaf 6.50\nTwo croissants 7.00\nTOTAL 13.50\n\nThank you for visiting",
"charCount": 107,
"wordCount": 17,
"lineCount": 6,
"meanConfidence": 96.3,
"lines": [
{"line": 1, "text": "CORNER BAKERY", "confidence": 96.5, "box": {"left": 41, "top": 46, "width": 236, "height": 20}},
{"line": 5, "text": "TOTAL 13.50", "confidence": 96.5, "box": {"left": 40, "top": 222, "width": 176, "height": 20}}
],
"preprocessing": ["grayscale", "enlarged 2x", "contrast stretched"],
"ocrSeconds": 0.21,
"ocrAt": "2026-11-04T17:07:46.906216+00:00"
}
  • width and height are the image as it's shown (after its rotation tag); boxes use the same pixels.
  • words (with detail: words) has line, text, confidence and box for each word. For multi-page TIFFs, lines and words also have page, and pages lists each page's text and confidence.
  • preprocessing lists what was done to the image before reading, and ocrSeconds how long the reading took.
  • note says when not everything was read and why (first frame of an animated GIF, TIFF page cap, spending cap, blank TIFF pages).

status is one of:

  • ok: text was found (at least one word of two or more letters or digits read with confidence 50 or more). The only status that costs anything.
  • no_text: the image was read but no letters or digits were found.
  • download_failed: the server answered with an error, timed out, couldn't be reached, or the file is over 20 MB.
  • not_image: the address returned a web page or an empty file.
  • unsupported_format: an SVG drawing, a PDF, or a file type this tool doesn't read.
  • invalid_image: the picture is damaged and can't be decoded.
  • image_too_large: the picture is too big to decode in memory (see limits below).
  • ocr_failed: reading took longer than the time limit, or the OCR engine failed on this image.
  • blocked_by_robots: the website's robots.txt asks tools like this one not to download that address.
  • invalid_url: not a usable public http(s) address.

Download results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make or n8n. The run also saves a SUMMARY record in the key-value store with counts per status, images charged, the average OCR time, and whether the spending cap stopped the run.

Pricing

Pay per event: Image with text: $0.0015 ($1.50 per 1,000 images). For a multi-page TIFF, each page with text counts as one image.

No start fee. Images where no text was found, failed downloads, files that aren't images, and timeouts are free. Set a maximum charge per run in the run options: one charge is set aside for each image before it's downloaded, so the run never goes over the limit and stops cleanly when it's reached (the log and SUMMARY say so).

Good to know

  • Speed. A screenshot or small image takes well under a second of OCR time on one full CPU; a dense 300 DPI scanned page about 2 seconds; a 40-megapixel image about 7. With the default 1 GB of memory Apify gives the run a quarter of a CPU, so expect roughly four times that. More memory gives more CPU and reads more images at once.
  • Sizes. Files up to 20 MB. Images over 40 megapixels are scaled down to 40 before reading (boxes are still in the original's pixels). Images that would take more than 256 MB to decode (about 64 megapixels in color) are refused, except JPEGs, which are decoded straight at a smaller size.
  • Formats. GIFs and animated WebP/AVIF: the first frame only. HEIC/HEIF photos are supported. SVG and PDF are not (use a PDF tool for PDFs). Images must be at public addresses: uploads, base64 data and private links aren't supported.
  • OCR quality depends on the image. Printed text in clean scans and screenshots reads very well; small, blurry, curved, decorative or low-contrast text reads poorly, and handwriting mostly doesn't read. Pick the right language: accented letters (é, ü, ñ, ß) are read properly only with that language selected. Sideways scans need the auto_rotate layout. Watch meanConfidence: a low score usually means the text needs checking.
  • What counts as text. An image is charged only when OCR reads at least one real word: two or more letters or digits with a confidence of 50 or more. Busy photos without text can make OCR guess stray letters from textures; those guesses have low confidence, so such images come back as no_text and cost nothing. Any text found is still returned.
  • OCR is done with the open-source Tesseract engine (version 5) on Apify's servers; images are deleted when they've been read.

Responsible use

  • It downloads only the addresses you give it, names itself in its User-Agent (ImageToTextOcrBot), makes one request at a time to each website with at least a second between requests, and respects robots.txt (an address the site's robots.txt disallows is not downloaded, and the row says so).
  • Local and internal network addresses are refused, and so are links with a user name or password in them.
  • You are responsible for having the right to download and use the images you process, and for any personal data in them. Follow copyright and the privacy laws that apply to you.

This Actor isn't affiliated with or endorsed by any of the websites it downloads from.

More tools from the same developer