Google Lens OCR: Image and PDF to Text with Word Boxes

Devansh Tiwari ยท @devanshtiwari365

Image and PDF to text with word boxes and translation

About

Google Lens OCR: Image and PDF to Text with Word Boxes

Turn screenshots, scans, receipts and PDF pages into searchable text. Every image gets one result row with the full text, the detected language, and the position of each line on the image. Add a target language and the row also carries a translation.

Start a 7-day free trial, paste an image link and read the text back in seconds. No card is needed for the trial.

๐Ÿ”Ž What you get

  • Full text per image. Lines come back joined in reading order, with the detected language and a word count.
  • Real positions. Line boxes come with every row. Switch the detail level to words and each word gets its own box and rotation. Boxes are read from the OCR response, never estimated.
  • Paragraphs and regions. The paragraph level adds paragraph grouping and writing direction, and lists the regions and objects the engine found in the image.
  • Optional translation. Add a language code such as es, de or pt-BR and the original text stays in the row next to the translation.
  • PDFs, page by page. Give a PDF link and every page becomes its own row with its page number and the document's page count.
  • Batches with honest rows. Each submitted image returns a row. A link that cannot be loaded returns a FAILED row with a reason, so nothing disappears quietly.
  • Your format. Download JSON, CSV or Excel, or pull the rows into your own tools through the API.

๐Ÿ‘ฅ Who it is for

  • AI and RAG teams: "I need the text from thousands of screenshots and scanned pages before I index them."
  • Automation teams: "I process receipts, labels and menus every week and want one row per image I can reconcile."
  • Localization teams: "I want the original text and a translated copy in the same row."
  • Developers: "I need word and line boxes to highlight text or rebuild a page layout."

๐Ÿš€ How it works

  1. Add your images. Paste one image link, a list of links, Base64 image data, or a PDF link.
  2. Pick the detail. Choose text only, lines, full, paragraphs or words, plus an optional translation language.
  3. Run it and read the rows. Open the results table, one row per image, or per PDF page.

๐Ÿ“ฅ Input

FieldWhat it does
Image URLOne public image link. This is all most runs need.
Image URLsA list of public image links for a batch. Each item can carry your own ID.
Base64 imagesImage data you already hold, as raw Base64 or an image data URI.
PDF URL, PDF URLsOne or many public PDF links. Every page is read into its own row.
Max PDF pagesThe most pages read per PDF, from 1 to 100. Defaults to 20.
Output detailtext_only, lines, full (default), paragraphs or words.
Translate toTarget language code, such as es, de or pt-BR.
Max concurrencyHow many images are read at once in a batch, from 1 to 10.

Provide at least one image or PDF source. Images can be up to 25 MB each.

๐Ÿ“ค Output

Each row is one image, or one PDF page. Fields the image does not have are left out, never filled.

FieldWhat it holds
inputId, sourceType, sourceReferenceYour ID for the image, where it came from and its link
statusSUCCEEDED, PARTIAL (text read, translation failed) or FAILED
languageLanguage detected for the image
fullText, wordCountThe extracted text and its word count
translatedText, translationTargetThe translation, when you asked for one
imageWidth, imageHeightSource image size in pixels
linesEach line with its box in normalized and pixel coordinates
paragraphs, regionsParagraph grouping, writing direction, detected regions (paragraphs and words levels)
geometryLevelWORD or LINE, the finest boxes present in the row
page, pageCount, sourcePdfUrlPDF rows: page number, total pages and the document link
errorCode, errorMessageThe reason, on rows that failed

An image with no text returns a SUCCEEDED row with an empty text and a word count of 0.

๐Ÿ’ฐ Pricing

$19 a month after a 7-day free trial. Compute is billed from your prepaid credits during the trial and after it. In our test, a batch of 5 images ran in 8 seconds and used about 0.02 cents of compute.

๐Ÿ’ก Good to know

  • Only public image and PDF links are read. Process only images you are allowed to use.
  • Reading time and availability depend on an outside OCR service, so speed can vary.
  • Translation is optional. If it fails after the text was read, the row is marked PARTIAL and keeps the original text.
  • The Actor is independent and not affiliated with Google.

FAQ

Which inputs does it accept?
Public image links (one or a list), Base64 image data, and public PDF links. A PDF is read page by page and each page becomes its own row with its page number and the document's page count. Images can be up to 25 MB each.
Do I get the position of each word?
Yes. Every row carries line boxes. Set Output detail to words and each word also gets its own box and rotation. The boxes come straight from the OCR response and are never estimated. A row's geometryLevel tells you whether it holds WORD or LINE boxes.
Can it translate the text?
Yes. Enter a target language code such as es, de or pt-BR and the row returns the translated text next to the original. If the translation fails after the text was read, the row is marked PARTIAL and keeps the original text.
Does it read languages other than English?
Yes. The language is detected for each image and returned in the row. In our test a Chinese poem image came back as zh-Hans with all five lines read correctly.
What happens when an image has no text or the link is broken?
An image with no text returns a SUCCEEDED row with empty text and a word count of 0. A link that cannot be loaded returns a FAILED row with an error code and message, so every image you submit stays visible in the results.

More Actors from the same publisher.

View all from @devanshtiwari365