PhotoSearch AI

How to extract text from image files and photos

By the PhotoSearch AI team ยท Updated

To extract text from image files, run the picture through optical character recognition, or OCR. Google Lens does it free on your phone, and Adobe Scan, Microsoft Lens, Google Drive and the open-source Tesseract do it too. Sharp, evenly lit, straight-on photos give the cleanest text, and you should always check names and numbers against the original.

Extract text from image files

You get the words found in the image, typed out as plain text. Includes 3 free scans a day.

A hand holds a phone over a printed page to extract text from image in soft window light.

Five ways to turn a photo into text

Photo to text is one job with several tools. The right one depends on whether you want speed, a saved file or privacy. The table draws on a Slashdot comparison of three scanning apps, plus Mindee and Eden AI write-ups for the other two.

ToolGood forWhat you get
Google LensQuick copy from a photo or screenshotSelect the text, then copy, translate, search or listen. Free.
Adobe ScanReceipts, notes, ID cards, recipes, business cards, whiteboardsSearchable PDF or JPEG export
Microsoft LensOffice workPDF, Word or PowerPoint files, saved to OneNote or OneDrive
Google Drive OCRUploaded images and PDFs in several languagesText, but formatting usually suffers
TesseractPrivate jobsFree, open-source OCR that runs locally

Google Lens is the one to try first. You select or photograph an image, choose the text-selection option, then copy, translate, search or listen to what it found. For screenshot to text jobs, that is usually all you need, because a screenshot has no tilt, glare or shadow to fight.

Adobe Scan makes more sense when the goal is a saved document. Microsoft Lens turns images into PDF, Word and PowerPoint files, so it suits anyone already working in Office.

Google Drive OCR converts uploaded images and PDFs to text and supports multiple languages. Mindee's pricing guide says it usually preserves formatting poorly, so expect to retype tables. Tesseract is the pick when privacy matters. It can run on your own computer, so the file never has to go to a third-party service.

For a short sign, label or menu line, you can also drop the picture into this site's scan form. Put a short sign, label or menu line in the box up top and the AI reads it out with a certainty note, which makes a decent first draft to verify.

Which tool to use for each kind of image

Getting clean text out of a photo, one step at a time

Most bad OCR starts with a bad photo. The University of Pittsburgh Libraries guide says to photograph text sharply and evenly, and to scan documents at about 300 dpi. This is the routine that follows.

  1. Lay the page flat.
  2. Use bright, indirect light. Remove glare and shadows.
  3. Hold the camera parallel to the page so letters keep their shape.
  4. Fill the frame with the text, then tap the text area so the camera focuses on it.
  5. Take several shots if the text is small or blurry, and keep the sharpest.
  6. Crop away anything that is not text. Straighten the image and raise the contrast if needed.
  7. Run it through your tool and pick the right language when the tool offers the choice.
  8. Compare the result with the photo. Check names, dates, numbers, decimal points, punctuation, URLs and any medication or financial details line by line.
  9. Export as plain text, searchable PDF, DOCX or whatever format you need.
  10. Delete uploaded files and exported copies you no longer need.

When you extract text from image files that already exist, such as a screenshot, skip to step 6. You cannot retake an old photo, so cropping and contrast are your only levers.

Why OCR misreads some photos

Several things change how well text comes out. You can fix most of them before you press the shutter.

How accurate OCR is on printed text and handwriting

One 2026 comparison on Alibaba's product insights site measured character-error rates on a printed-text test set. Google Lens scored 1.2%, Microsoft Lens 3.1%, Adobe Scan 3.8% and CamScanner 4.5%. Lower is better. At 1.2%, expect about one wrong character per 100.

Handwriting is harder. The same comparison reported 12.3% for handwritten print, against 1.2% for printed text in Google Lens. That is roughly ten times the errors. Treat these as one comparison, not a universal benchmark, since test sets and conditions change results. The pattern is the useful part. Neat print comes out well, and handwriting needs a careful proofread.

Even a low error rate matters when the text is an account number, because one swapped digit is still wrong. Do not rely on OCR output alone for legal, medical, identity, financial or safety decisions.

Photo to text versus captioning, translation and barcode scanning

People mix up OCR with several nearby tools. This table separates them.

Often confused withHow to tell them apart
Image captioningOCR returns visible characters. Captioning describes objects, actions or scenes.
Handwriting recognitionOCR usually targets printed or typeset characters. Handwriting recognition targets cursive or handwritten marks.
TranslationOCR first detects the source text. Translation then converts its language.
Document scanningScanning creates an image or PDF. OCR adds machine-readable text.
QR or barcode scanningThose tools decode machine patterns. OCR reads letters and digits.
Graphics that look like textSigns, packaging and screenshots are OCR input. Decorative artwork may be misread as text.
AI-made or distorted textCheck uncertain characters against the image. AI-made text may have malformed or inconsistent letter shapes.

If you want a description of what a picture shows rather than the words in it, an AI image describer does that, and an alt text generator writes the short version for web pages. For a menu or sign in another language, you can translate text in a picture after the words are read.

What free OCR costs and where the limits sit

Lens costs nothing. Pricing matters when you process many files or build OCR into a workflow. These figures come from Eden AI and Mindee-style pricing guides and were reported for 2026. Quotas change, so check the current page before you rely on them.

Small web converters work on tiers. One reported ChatOCR table lists a free plan with 5 documents and 10 MB or 10 pages, $5 a month for 20 documents, $10 for 100 documents, and $20 for unlimited documents. A FaceOnLive guide says typical free online OCR services may cap files around 15 MB, though limits vary by provider.

Privacy and copyright before you upload a document

Online OCR may upload your image to a third-party server. How long it is kept and whether it is reused depends on the provider's policy. For passports, identity cards, medical records or confidential business papers, read the storage, deletion, training and data-processing terms first, or keep the job local.

Local means self-hosted tools such as Tesseract, PaddleOCR, EasyOCR, DocTR and Kraken. Eden AI notes that you then own the setup, security and maintenance. That is the trade for privacy.

Two more points. Publishing OCR text can disclose confidential or personal information, the Pitt guide warns. Processing or redistributing copyrighted material may also create legal trouble when you lack permission or a lawful exception. Rules differ by country and by what you do with the text.

Mistakes to check for in extracted text

Read the result next to the original before you use it. These are the usual slips.

If the words are clear but you still do not know what the picture is, you can ask AI about a picture directly. And if the real goal is finding old photos later by what is in them, AI photo search covers that side of the job.

Questions about extract text from image

Can you pull text out of a picture?

Yes, using optical character recognition, or OCR. Tools like Google Lens, Adobe Scan, Microsoft Lens and Tesseract read the characters in a photo and return them as editable text.

What is the best free tool to recognize text from an image?

For quick jobs, Google Lens is free and lets you copy, translate, search or listen to detected text. For private files, Tesseract is free, open-source and runs on your own computer.

Is Google OCR free?

Google Lens costs nothing and lets you select, copy and translate text in photos. Google Cloud Vision, the developer service, gives 1,000 free units per month, then about $1.50 per 1,000 images, as reported for 2026.

Can OCR read text in a screenshot?

Yes. Screenshots, signs and packaging are all normal OCR input. Google Lens can select text in an image and let you copy, translate or search it.

Does OCR work on handwriting?

Less well. One 2026 comparison reported a 12.3% character-error rate for handwritten print versus 1.2% for printed text in Google Lens, so proofread every line.

What resolution do I need to extract text from a photo?

For document scans, the University of Pittsburgh Libraries recommends about 300 dpi. Photograph the text sharply and evenly, with the camera parallel to the page.

Can I extract text from an image without uploading it?

Yes. Self-hosted tools such as Tesseract, PaddleOCR, EasyOCR, DocTR and Kraken process files locally, though you handle setup, security and maintenance yourself.

Is it safe to upload documents to an online OCR tool?

Check the provider first. Online OCR may send your image to a third-party server, so check storage, deletion and training terms before uploading passports, medical records or confidential papers.

Sources

  1. Slashdot: Adobe Scan vs Google Lens vs Microsoft Lens
  2. DEV Community: 7 best OCR tools with AI in 2026
  3. Eden AI: top free OCR tools, APIs and open-source models
  4. Mindee: OCR API pricing, free vs paid
  5. Alibaba product insights: Google Lens vs camera scanner apps
  6. University of Pittsburgh Libraries: OCR best practices
  7. FaceOnLive: free online OCR
  8. Wondershare: ChatOCR