Image to Text AI: Extract the Words or Describe the Picture
Image to text AI does two jobs: OCR pulls words from photos, scans and screenshots, and captioning describes the picture. Tools, steps and accuracy pitfalls.
In this guide
Image to text AI covers two different jobs that share one search phrase. Sometimes you want the words already in the picture: the total on a receipt, the notes on a whiteboard, the figures in a scanned table. That's optical character recognition, or OCR. Other times you want a sentence describing what the picture shows, for alt text, a caption or a catalog. That's image captioning. The tools overlap less than their landing pages suggest, so start by knowing which job you have. Below: the difference, the main tools, four common jobs, and where accuracy and privacy go wrong.
The two meanings of image to text AI
Hugging Face, which hosts thousands of open models for this task, names the same two uses: captioning and OCR. Our Hugging Face Image to Text page explains which models to start with.
- OCR, extracting the words. A photo, screenshot, scan or PDF goes in; the text comes out, ideally in reading order, sometimes with positions and confidence scores.
- Captioning, describing the picture. Any image goes in; a description such as "a dog lying on a kitchen floor" comes out. Classic models like BLIP write one short, safe sentence.
- Vision-language models, which do both on instruction. ChatGPT, Claude and open models tagged image-text-to-text take an image plus a written request, so you can ask for "every line item on this receipt as CSV" or "alt text under 120 characters". They're flexible, but write fluent text even when they've misread something.
A quick test: if the answer is already written in the image, you want OCR. If you need someone to say what the image shows, you want captioning. If you need text pulled out and reshaped, a vision-language model is often the shortest route, provided you check the result.
Image to text AI tools compared
| Tool | Best for | What stands out | Watch out for | Access model |
|---|---|---|---|---|
| Google Lens | Quick OCR from a phone or Chrome | Copy, translate and search text in photos; right-click Lens search in Chrome | Images are processed on Google's servers; needs a connection | Free |
| ChatGPT and Claude | OCR plus reshaping, captions and alt text | Take an image plus an instruction and return tables, fields or descriptions | Fluent output can hide a misread digit | Free tiers with limits, plus paid plans |
| Tesseract OCR | Clean printed scans that must stay on your machine | Open source, 100+ languages, searchable PDF and hOCR output, runs locally | Handwriting is effectively unsupported; phone photos and tables need preprocessing | Free under Apache 2.0 |
| Google Cloud Vision | Developers adding OCR or labels to an app | Separate detection modes for photos and for dense pages or handwriting, with word positions | Returns text and layout, not labelled fields such as "total" | Billed per 1,000 units after a monthly free allowance |
| Nanonets | Finance and operations teams at volume | Extracts invoice and receipt fields, learns from reviewer corrections, exports to QuickBooks, Xero and SAP | Too much setup for occasional use; credit pricing is harder to forecast | Free starter credits; Growth and Enterprise are quoted |
| Mathpix | Equations, STEM papers and handwritten math | Snip turns screenshots into LaTeX; PDFs convert to Markdown, DOCX or LaTeX | Small free allowance; the API is billed separately | Free plan, paid Pro and Organization plans |
| Hugging Face Image to Text | Developers who want open models for captions or OCR | BLIP for captions, TrOCR for printed or handwritten lines, larger models for full pages | TrOCR reads one line at a time; model quality and licenses vary | Free to run locally; hosted hardware is paid |
Amazon Textract returns tables, form fields and confidence scores through AWS APIs. UPDF runs OCR in 38 languages inside a desktop PDF editor and can turn a scan into a searchable PDF. Dext is built for receipts and invoices headed to accounting software. For describing surroundings and everyday objects, Seeing AI, Be My Eyes and Envision App are free apps designed for blind and low-vision users. The full lists are in our OCR AI tools and image to text AI tools categories.
Step by step: four common image to text jobs
Pull the details off a receipt
- Lay the receipt flat in good light and photograph it straight on. Thermal paper fades, so capture receipts early.
- For a single receipt, use Google Lens to select and copy the text, or upload the photo to ChatGPT or Claude and ask: "List the merchant, date, each line item with its price, the tax and the total. Write UNCLEAR for any value you can't read."
- Add up the line items yourself. A total that doesn't match is the quickest sign of a misread digit.
- If receipts are a monthly chore, use a tool built for it. Dext takes photos from its app, email or WhatsApp and publishes extracted fields to accounting software, and Nanonets suits finance teams working at volume. Our AI bookkeeping guide covers that workflow in more depth.
Turn handwritten notes into text
- Photograph one page at a time, square to the camera, with no shadow. Dark ink on plain paper reads better than pencil.
- Try Google Lens first for short notes. It reads a lot of handwriting and can send the copied text to your computer.
- For longer pages, ask a chat assistant for the text with the original line breaks, plus a list of words it isn't sure about. Tell it not to fix spelling or fill gaps.
- For equations, use Mathpix, which converts handwritten math to LaTeX.
- Developers can use Cloud Vision's document text detection, which Google recommends for handwriting, or Hugging Face's TrOCR handwritten model, one cropped line at a time. Skip Tesseract here.
Get a table out of a scanned PDF
- Try selecting a word. If the PDF already has a text layer, copy or export instead of running OCR.
- Making a scan searchable and rebuilding its table are different jobs. A PDF editor such as UPDF can OCR the file into a searchable PDF, which helps you find things but won't give you clean columns.
- To rebuild the table, crop to one table per image and ask a chat assistant for CSV with the exact column headers. Then compare row counts and column totals with the original, since scanned tables can lose details.
- For recurring documents, Textract's Analyze Document returns tables, including merged cells, with a confidence score for each item. Mathpix can export tables as TSV. Nanonets has also published an open model on Hugging Face, Nanonets-OCR2-3B, that converts document images to Markdown with tables in Markdown or HTML.
Write alt text for an image
- Decide whether the image needs alt text at all. The W3C's alt decision tree says purely decorative images get an empty alt attribute, and text that already appears nearby as real text shouldn't be repeated.
- For informative images, give a chat assistant the image plus context: where it appears and what the surrounding paragraph says. Ask for one short sentence that conveys what the image adds to the page.
- Edit the draft. A model describes what's visible, but only you know why the image is there. Cut "image of" and guesses about who people are.
- For thousands of product or archive images, a captioning model such as BLIP gives a cheap first pass that still needs a human edit.
Where image to text AI gets things wrong
- Handwriting. Results vary with the writer, ink and paper. Names, numbers and abbreviations are where errors hide.
- Low resolution and small text. AWS says Textract may miss text shorter than 15 pixels, which it equates to 8-point type at 150 DPI. Move closer rather than zooming a blurry photo.
- Rotation, scripts and styled graphics. OpenAI's vision documentation says its models may misread rotated or upside-down text, may not perform well on non-Latin scripts such as Japanese or Korean, and can struggle with graphs where colors or line styles carry the meaning.
- Tables and columns. Line-by-line engines can merge columns or shuffle reading order. Tesseract often scrambles multi-column layouts and dense forms without preprocessing.
- Confident errors. A traditional OCR engine tends to fail visibly, with garbled characters. A chat assistant can return clean, well-formatted text containing a wrong digit or a word it guessed from context. For anything financial or legal, check the key numbers against the image.
Where a tool offers confidence scores or a review queue, as Textract and Nanonets do, send low-confidence fields to a person.
What happens to the images you upload
Receipts, ID cards, medical letters and contracts often carry more personal data than people notice. Check where processing happens and whether the vendor can use the content.
- ChatGPT: OpenAI's help center says you can switch off "Improve the model for everyone" under Settings, Data controls, and that Temporary Chats aren't used to improve its models. Content from Business, Enterprise and Edu workspaces isn't used for training by default.
- Claude: Anthropic's privacy center says consumer chats are used to improve Claude if you allow it through the Model Improvement setting, and Incognito chats aren't used even when that setting is on.
- Google Lens: images are processed on Google's servers.
- Amazon Textract: the AWS FAQ says processed content may be used to improve its AI services unless your organization opts out through an AWS Organizations policy.
- Local options: Tesseract and downloaded Hugging Face models keep files on your own machine, at the cost of setup time.
For a one-off sensitive document, crop or cover account and ID numbers before uploading. For regular processing of regulated documents, settle the data terms with the vendor first.
Which image to text AI tool to use
- Pick Google Lens for a few free lines of text from a photo or web image.
- Pick ChatGPT or Claude if the text needs reshaping: a table as CSV, a receipt as fields, or alt text written for a specific page.
- Pick Tesseract if the documents are clean printed scans and must stay on your own hardware.
- Pick Google Cloud Vision or Amazon Textract if you're building OCR into an app, Textract when you need tables and form fields.
- Pick Nanonets or Dext if documents arrive daily and the data must land in accounting or ERP software.
- Pick Mathpix if the pages are full of equations.
- Pick a Hugging Face model if you need captions or OCR across a large image collection and can run code.
Our AI chatbots for work guide compares the assistants more broadly.
Image to text AI questions people ask
Can ChatGPT convert an image to text?
Yes. Upload a photo or screenshot and ask it to transcribe the text or return it as a table. Check numbers and names against the image, since OpenAI lists small, rotated and non-Latin text among its vision limits.
Is there a free image to text AI?
Google Lens is free on phones and in Chrome. Tesseract is free, open-source OCR you run yourself, and many Hugging Face models are free to run locally, subject to each license. Chat assistants have free tiers with limits.
Can AI read handwriting?
Often, with caveats. Google Lens, chat assistants, Cloud Vision's document text detection and Mathpix all handle handwriting to a degree, while Tesseract effectively doesn't. Accuracy drops with messy writing, pencil and poor light, so proofread names and numbers.
What's the difference between OCR and image captioning?
OCR copies the text that appears in an image. Captioning describes what the image shows. A photo of a street sign gives you the sign's words through OCR and a sentence like "a blue street sign on a lamppost" through captioning.
How do I copy text from an image on my computer?
Open the image in Chrome, right-click it, choose the Google Lens option and select the text. You can also paste a screenshot into a chat assistant. For equations, Mathpix Snip captures part of the screen and copies it as LaTeX.
- OCR
- Images
- Productivity