Applied AIConcept

What is Amazon Textract and how it reads documents

Amazon Textract explained: OCR plus structure, data extraction from documents at scale, pricing logic, and when to use it versus building your own.

5 min read · Updated Jul 18, 2026 ·Part of the guide What is Amazon Bedrock →
In this article
Key points
  • Textract goes past plain OCR: it recognizes form fields as key-value pairs and reads tables while preserving the relationships between cells.
  • It does not compete with multimodal generative AI. The two are complementary: Textract extracts structured data with high precision and predictable cost, and a model interprets, summarizes, and handles exceptions.
  • It is the technical base for automating high-volume document work such as invoices, contracts, and applications without manual keying.

Amazon Textract is an AWS machine learning service that extracts text, tables, and form fields from scanned documents and images, and returns that content as structured data instead of a flat wall of characters. Where basic optical character recognition just reads the words on a page, Textract also captures the layout: it knows that a label and its value belong together, and that a set of rows and columns is a table with relationships worth keeping.

What Amazon Textract does

Feed Textract a PDF or an image of a document and it gives you back three kinds of output. First, raw text, with the words and lines it detected. Second, form data as key-value pairs, so a field labeled “Invoice number” is linked to the value next to it rather than left as two unrelated strings. Third, tables, with rows and columns preserved so a line-item grid stays a grid.

That structure is the point. A finance team does not want a paragraph of text scraped off an invoice. It wants the vendor, the invoice number, the due date, and each line item in fields it can validate and post. Textract produces that shape directly, which is why it fits document-heavy work in accounts payable, lending, insurance, and onboarding, where the same form arrives thousands of times and someone would otherwise key it in by hand.

OCR versus structured extraction

It helps to be precise about how Textract differs from traditional OCR. OCR converts pixels into characters. It is good at telling you what the text says and poor at telling you what the text means in context. If a document has two columns, plain OCR often reads straight across both and scrambles the result. If it has a table, you get a run of numbers with no sense of which value sits in which cell.

Textract was trained to read documents the way a person scans them. It groups labels with their values, keeps table cells in their rows and columns, and marks where each element sits on the page. For a business process, that difference decides whether the output drops straight into a system or needs a human to untangle it first.

Document data extraction with Textract in practice

Most production use falls into a few document families: invoices and receipts in accounts payable, applications and pay stubs in lending, claims forms in insurance, and IDs and contracts in onboarding. For each type, document data extraction with Textract runs in one of three modes. Forms extraction returns key-value pairs, so “Policy number” arrives linked to its value. Tables extraction keeps line-item grids intact, rows and columns preserved. Queries let you ask for a specific field in plain language, such as “What is the invoice total?”, and get just that answer back. Teams usually combine modes per document type and route low-confidence results to a reviewer. Designing that pipeline, from extraction through validation and review, is the core of BlueDocs.

Where Textract fits with generative AI

A common assumption is that a modern multimodal model makes a service like Textract unnecessary, since a large model can also look at a document and describe it. In production the two usually work together rather than one replacing the other.

Textract is built for extraction at scale with high precision and predictable cost. It reliably pulls the same fields from the same form type, run after run, which is exactly what a high-volume pipeline needs. A generative model on Amazon Bedrock is stronger at the interpretation layer: reading a contract clause and explaining it, reconciling values that do not match, deciding what to do with an exception, or drafting a response. A typical document workflow uses Textract to turn the page into clean structured data, then passes that data to a model for the judgment calls. Splitting the work this way keeps cost down and accuracy up, because each part does what it is good at.

Practical considerations for US teams

Textract runs inside your AWS account, so documents that often contain sensitive personal or financial information stay in your environment under your own access controls and logging. For US companies handling regulated records, that keeps document processing on the same governance footing as the rest of their infrastructure, which matters when a security or compliance review asks where the data went.

Accuracy is high on clean, well-formatted documents and drops on poor scans, unusual layouts, or handwriting. That is why serious deployments keep a human in the loop for low-confidence results and measure extraction quality per document type instead of assuming one number across the board. Textract reports confidence scores you can route on, so borderline cases go to a reviewer while clean ones flow straight through.

Turning documents into a working process

Extraction is the first step, not the whole solution. A working document process also needs validation rules, exception handling, a review queue for low-confidence output, and a way to measure accuracy over time. That is where BlueDocs comes in: a document AI practice that combines Textract-style extraction with generative reasoning and human review, built to run in your own AWS account.

If your team is losing hours to manual keying from invoices, contracts, or applications, see how BlueDocs turns high-volume document work into a governed, measurable pipeline. Start with one document type that hurts the most, prove the accuracy, and expand from there.

Frequently asked questions

Textract charges per page processed, with different rates for basic text detection, forms analysis, table analysis, and queries, so cost scales with which features you turn on rather than a flat subscription. Running only the modes a document type actually needs keeps the per-page cost down at volume.

For occasional, low-volume use, a free OCR tool can be enough. Once you are processing enough documents that someone would otherwise spend hours a week fixing scrambled table data and mismatched fields by hand, Textract's per-page cost is usually smaller than the labor cost it replaces.

Textract processes PDF, PNG, JPEG, and TIFF files directly through its API, with a page limit per synchronous request. Multi-page PDFs beyond that limit need the asynchronous API instead, which processes the document in the background and returns results once complete.

For a single, fairly standard document type like a common invoice format, a working pipeline can be built and tested in a few weeks, covering the extraction call, validation rules, and a review queue for low-confidence results. Less standardized documents take longer to tune.

Text detection and forms analysis support a range of languages, but accuracy is strongest for English and a handful of widely used languages. Documents in less common languages, or with heavy mixed-language content, are worth testing directly against your own samples before committing to full-scale use.

BlueMetrics · Applied AI

Want to apply this in your business?

We take AI from pilot to go-live in weeks — with governance, observability and measurable results.

1 hour with specialists · no commitment · AWS Advanced Partner