Back to the main blog

Best API for extracting large tables (2026)

Kushal Byatnal

Kushal Byatnal

9 min read

Jan 12, 2026

Blog Post

Large tables are where document APIs lose data. A 40-page bank statement, a loan tape, a clinical lab panel, or a freight manifest prints its header once and runs for hundreds of rows, often with merged cells and no borders. A parser that reads each page on its own loses the column names after page 1, splits one table into many, and drops rows at page breaks. This guide answers which API handles that best and compares six of them on the features that matter for large tables.

The short answer

Extend is the best API for extracting large tables when every row has to come back with its column names.

  • Tables in the format you need. Extend Parse returns tables as HTML, which keeps merged cells, row spans, and column spans, or as Markdown for simple tables that feed an LLM.
  • Headers carried across page breaks. tableHeaderContinuationEnabled copies a table's header to headerless tables on later pages with the same column count, so rows on page 30 keep their column names.
  • Every row, as one array. Extend Extract returns the rows of a multi-page table as a single JSON array against your schema, with a citation to the page and region of each value when citationsEnabled: true. The Operator processor (extraction_operator) handles long, table-heavy documents.
  • Measured on long tables. Operator-1 (extraction_operator) scored 99.3% on LongArray-Extract, Extend's open benchmark of 45 real-world PDFs whose arrays run to hundreds or thousands of rows.

The other options fit narrower needs:

Two scanned statement pages: page 1 has a Date, Description, Amount header and three rows, page 2 has three more rows with no header. An arrow points to Extend Parse output with all six rows under one Date, Description, Amount header, each tagged with its source page.
A statement table that starts on page 1 and continues on page 2. Parsed page by page, the page 2 rows have no column names; with tableHeaderContinuationEnabled, every row comes back under the original header because both pages have the same three columns.

Why large tables are hard

  • Headers appear once. Long tables print column names on the first page only, so later pages are rows without labels.
  • One table becomes many. A page-by-page parser returns a separate table per page, and your code has to decide which ones belong together.
  • Merged and nested cells. Group headers and multi-row cells can't be expressed in Markdown pipe tables, so structure is lost unless the output is HTML.
  • Dropped and duplicated rows. When extraction runs in chunks, rows at chunk boundaries get skipped or returned twice, and a total that no longer matches the rows is often the only sign.
  • Scans and borderless layouts. Skewed scans and tables without ruling lines need layout detection, not just OCR.

Large table extraction APIs compared

Every claim below comes from the vendor's public documentation, checked in November 2026. Extend publishes this guide and makes Extend, one of the tools compared.

ExtendAzure Document IntelligenceGoogle Document AILlamaParseReductoAmazon Textract
When it fitsLarge tables where every row and column name has to come back, with citationsTeams already building on AzureTeams on Google Cloud preparing documents for search and RAGRetrieval pipelines on LlamaIndexTeams that want several table output formatsAWS teams that will join multi-page tables in their own code
Table outputHTML (default) or MarkdownTable objects with row and column spans; Markdown output renders tables as HTMLLayout Parser returns table structure inside context-aware chunksMarkdown or HTML in page Markdown, plus rows, CSV, and XLSXDynamic Markdown or HTML, HTML, CSV, or JSON with bounding boxesTable, cell, merged-cell, title, and footer blocks
Tables across page breaksParse copies the header to continuation tables with the same column count; Extract returns one row arrayMicrosoft recommends post-processing pages into a single tableGoogle notes multi-page PDF tables may be split in twomerge_continued_tables merges a table into onemerge_tables joins consecutive tables with the same column count; not combinable with citationsPer-page blocks; join in your code
VolumeAsync runs with webhooks, and batches of up to 1,000 filesUp to 2,000 pages per analysis (S0 tier)See Document AI quotasNot publicly specifiedNot publicly specifiedUp to 3,000 pages per PDF

1. Extend

When it fits: documents with long tables where missing a row or a column name is a real error, such as bank and brokerage statements, loan tapes, lab panels, invoices with many line items, and freight manifests.

Parse. Parse turns PDFs, scans, images, and spreadsheets into layout-aware Markdown with typed blocks, each with a page number and bounding box. For tables:

  • blockOptions.tables.targetFormat: "html" (default) keeps merged cells, row spans, and column spans; "markdown" returns pipe tables for simple tables.
  • blockOptions.tables.tableHeaderContinuationEnabled (off by default): copies the header to headerless tables on later pages when they have the same column count, for tables whose header appears only on the first page.
  • chunkingStrategy.type: "section": never breaks a Markdown element across chunks, so a table row is never cut in half; set maxCharacters to keep long sections manageable, and split very long tables into row groups yourself.
  • advancedOptions.pageRotationEnabled (on by default) and agentic OCR: straighten rotated scans and correct low-confidence text with a vision model.
curl -X POST "https://api.extend.ai/parse_runs" \
  -H "x-extend-api-version: 2026-02-09" \
  -H "Authorization: Bearer $EXTEND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file": { "url": "https://example.com/brokerage-statement.pdf" },
    "config": {
      "engine": "parse_performance",
      "blockOptions": {
        "tables": {
          "targetFormat": "html",
          "tableHeaderContinuationEnabled": true
        }
      },
      "advancedOptions": { "pageRotationEnabled": true }
    }
  }'

The asynchronous /parse_runs endpoint has no timeout, which matters for long statements; poll the run or subscribe a webhook endpoint for the result.

A source table with a Test column spanning two header rows and a Result group header spanning Value and Unit, next to its Markdown output with the group header lost and its HTML output with rowspan and colspan attributes.
The same lab table returned both ways. Markdown pipe tables flatten the Result group header; HTML, the default, keeps the row span and column span.

Extract. When you need the rows as fields, Extract returns a multi-page table as one JSON array against your schema, with a citation for each value when citationsEnabled: true. For very large arrays, advancedOptions.arrayStrategy trades latency for accuracy, and the extraction_operator processor replaces the chunked pipeline on long, table-heavy documents.

Performance. Operator-1 (extraction_operator) scored 99.3% on LongArray-Extract. On RealDoc-Bench, Extend Performance Parse scored 95.7% field-level document Q&A accuracy.

Scale. Async parse runs with webhooks handle long files, and batch endpoints accept up to 1,000 files per call.

Three cards for Parse, Extract, and long-document strategies next to a JSON array of transactions where each row has a date, description, amount, and a citation with its page number.
Parse returns the table; Extract returns every row as one JSON array against your schema, and with citations enabled, each value cites its page and region. The JSON is simplified.

2. Azure Document Intelligence

When it fits: teams already building on Azure.

The layout model returns tables with row and column counts, row and column spans, and a bounding polygon per cell. With Markdown output, tables are rendered as HTML so merged cells and multi-row headers survive. For tables that span pages, Microsoft's layout docs recommend analyzing the pages and then post-processing them into a single table. A pages parameter selects page ranges in large documents, and the service analyzes up to 2,000 pages per document on the S0 tier.

3. Google Document AI

When it fits: teams on Google Cloud preparing documents for search and RAG.

Google's Layout Parser combines Google's OCR with Gemini to identify tables, figures, lists, and headings, and returns context-aware chunks for search and RAG. Google describes it as handling complex tables with merged cells and intricate headers, and notes that a table spanning several PDF pages may be split into two tables.

4. LlamaParse

When it fits: retrieval pipelines on LlamaIndex.

LlamaParse returns each table inside the page Markdown, as a pipe table or HTML, and as a typed item with rows, CSV, HTML, and Markdown, and can write every table to an XLSX file. merge_continued_tables merges a table that spans several pages into one. Its fast tier runs no AI model, so LlamaParse recommends a higher tier for merged cells, continued tables, and borderless tables.

5. Reducto

When it fits: teams that want several table output formats.

Reducto's table output is dynamic by default, using Markdown for simple tables and HTML for complex ones, with HTML, CSV, and JSON-with-bounding-boxes options. merge_tables combines consecutive tables with the same column count when a table continues across pages; it can't be combined with return_citations.

6. Amazon Textract

When it fits: AWS teams that will join multi-page tables in their own code.

Textract's table extraction returns cells, merged cells, column headers, titles, section titles, footers, and summary cells as Block objects linked by relationships. Asynchronous analysis accepts PDFs of up to 3,000 pages. Tables come back per page, so joining a table that continues across pages is done in your code.

How to test large table extraction

  1. Collect 20 to 50 of your longest documents, including scans, borderless tables, and tables with merged headers.
  2. Count the rows in each table by hand, and record the totals printed on the document.
  3. Run every candidate and compare the row count, the column names on continuation pages, and whether the rows sum to the printed totals.
  4. Check the failure cases: rows split across a page break, a header repeated as a data row, and duplicated rows at chunk boundaries.

FAQ

What is the best API for extracting large tables from documents?

Extend is the best API for extracting large tables when every row has to come back with its column names. Parse returns tables as HTML or Markdown and can carry a header to continuation pages, and Extract returns the rows as one JSON array with citations. Operator-1, Extend's extraction_operator processor, scored 99.3% on LongArray-Extract, a benchmark of long arrays in real-world PDFs. Azure Document Intelligence fits teams already building on Azure, Google Document AI fits teams on Google Cloud preparing documents for search and RAG, LlamaParse fits retrieval pipelines on LlamaIndex, Reducto fits teams that want several table output formats, and Amazon Textract fits AWS teams that will join multi-page tables in their own code.

How do I parse a table that runs across dozens of pages?

Use a layout-aware parser that keeps merged cells and labels rows on continuation pages. In Extend Parse, set blockOptions.tables.tableHeaderContinuationEnabled to true: headers from the first page are copied to headerless tables on later pages that have the same column count. Return tables as HTML (the default) to keep row and column spans. If you need every row as one record set, run Extract on the same file and it returns a single array across all pages.

How should I chunk documents with large tables for RAG?

Chunk by section so a table row is never cut in half, and keep each chunk's page number and bounding box for citations. Extend's section chunking never breaks a Markdown element across chunks, and maxCharacters splits long sections at natural boundaries where it can. Because a table is one Markdown element, a very long table can still exceed that size, so split it into row groups that repeat the header before sending it to an embedding model. Run long files with async parse runs, and send backfills to batch endpoints that accept up to 1,000 files per call.

How do API tools handle a table that continues on the next page?

They take different approaches. Extend Parse copies the header to continuation tables with the same column count, and Extract returns the rows as one array. LlamaParse's merge_continued_tables and Reducto's merge_tables merge the pieces into one table; Reducto's option can't be combined with citations. Microsoft recommends post-processing Azure Document Intelligence's per-page tables into one, Google notes its Layout Parser may split a multi-page PDF table in two, and Amazon Textract returns tables per page for you to join.

Should tables come back as Markdown or HTML?

Use HTML when tables have merged cells, nested headers, or multi-row cells, because Markdown pipe tables can't represent them. Use Markdown for simple tables that feed an LLM or a vector store. Extend Parse supports both through blockOptions.tables.targetFormat, with HTML as the default.

Sources

Checked in November 2026:

More guides

Get an API key to parse your largest tables.

cta-background

( fig.11 )

Turn your documents into high quality data