How do you do OCR in Power Automate?
Use the AI Builder action Recognize text in an image or a PDF document in a cloud flow. It reads printed and handwritten text from JPG, PNG, BMP and PDF files up to 20 MB.
What does the text recognition model read?
Microsoft says the prebuilt model uses optical character recognition (OCR) to extract lines of printed or handwritten text from images and documents. Handwriting is supported for English, Chinese (Simplified), French, German, Italian, Japanese, Korean, Portuguese and Spanish.
For PDF files, only the first 2,000 pages are processed.
How do you build the flow?
Microsoft's example posts the extracted text in a Teams channel. If your editor looks different, see switching between the two designers.
- Sign in to Power Automate, select My flows, then select New flow and Instant cloud flow.
- Name the flow, choose Manually trigger a flow, and select Create.
- Expand the trigger, select Add an input, and choose File.
- Add a step from AI Builder and choose Recognize text in an image or a PDF document.
- In the Image input, select File Content from the dynamic content list.
- Use Full text of the document to post all text, or read it line by line.
- Save and test with sample files.
What comes back?
| Output | Meaning |
|---|---|
| Text | A line of text detected |
| Page number | Page of the detected text |
| Coordinates | Where the text sits |
| Full text of the document | All text detected |
| Full text of the page | All text on one page |
Which limits apply?
Microsoft lists a limit of 480 text recognition calls per environment every 60 seconds. AI Builder also uses credits. Microsoft's license page lists 5000 credits per month with Power Automate Premium and none with the Free license.
Read our guide on premium connectors and licenses before you plan a scan-heavy flow for the team.
Have a stack of scans that someone retypes each week? Al Davies builds tools that cut busywork and missed steps for teams. The first call is free and takes 45 minutes.
FAQ
What file types can it read?
JPG, PNG, BMP and PDF, up to 20 MB, per Microsoft.
Can it read handwriting?
Yes, for the nine languages Microsoft lists for handwritten text.
Does it cost extra?
It uses AI Builder credits. Microsoft lists 5000 per month with Premium and 500 with Power Apps Premium.
Is there a call limit?
Microsoft lists 480 text recognition calls per environment per 60 seconds.
Sources
- Text recognition prebuilt AI model (Microsoft Learn)
- Use the text recognition prebuilt model in Power Automate (Microsoft Learn)
- Types of Power Automate licenses (Microsoft Learn)
- Deep dive on specific licenses (Microsoft Learn)