Document table extraction
LlamaParse narrowly leads PDFPlumber for extracting structured tables from PDFs.
Since Jul 6Updated Nov 20, 2026Based on 96 AI answers
Reviewed by Dimitry Apollonsky
Brands AI mentions
For complex layouts, borderless tables, and multi-page document structures.
For inspecting character, line, and rectangle coordinates in PDFs.
For commercial API use with production support and enterprise needs.
For isolating tables as HTML or JSON in RAG and ETL workflows.
Also mentioned rarely: Google Cloud Document AI, Reducto, Camelot (Python library), Amazon Textract, Docling, Parsimmon, Adobe PDF Extract API, Firecrawl, Mistral OCR, Tabula, PyMuPDF, Microsoft Table Transformer, Docparser, LiteParse, Nanonets, MinerU, PyMuPDF4LLM, Hardparse, Able2Extract Professional, Adobe Acrobat Pro DC, ByteScout PDF Extractor SDK, Microsoft Learn, mdparse, Mistral, Nutrient, ABBYY FineReader PDF, Parsebridge, Adobe, Airparser, AWS, Microsoft Azure, Google Cloud, DocParsing, DocuClipper, DS4SD, ExtractTable, Open-Parse, tabula-py, PaddleOCR, TableFormer, pdfstruct, GMFT, Nougat, IBM, Docling for IBM watsonx, LibPDF, Lido, Marker, Microsoft Word, Nutrient Document AI, Parseur, PDF4me, PDFVector, PeterParser, Tabulex, Cardinal, LLMWhisperer, pypdf, Tablers, openpyxl, Apache Tika
- LlamaParseChatGPTGoogle AI Mode
- PDFPlumberChatGPTGoogle AI Mode
- Azure AI Document IntelligenceChatGPTGoogle AI Mode
- UnstructuredChatGPTGoogle AI Mode
- DoclingChatGPTGoogle AI Mode
Key takeaways for Document table extraction
- Top contenders
LlamaParse (57%) leads runner-up PDFPlumber (51%) by 6 percentage points.
- Across AI Document Parsing & Extraction APIs
Within AI Document Parsing & Extraction APIs, Regure leads Insurance claims data extraction, showing AI shifts picks by buyer use case. See Insurance claims data extraction
Questions and answers
ChatGPTNov 19, 2026
If you need a PDF parser that preserves actual table structure (rows, columns, individual cells, headers, and merged cells) rather than flattening everything into raw text, I would recommend Docling as the first option.
Here are the strongest options I found.
Best PDF parsers for structured table extraction
1. Docling
(My top recommendation)
- Open source.
- Detects tables and reconstructs row/column relationships.
- Supports merged cells and complex layouts.
- Exports structured document representations, including JSON and HTML.
- Supports OCR for scanned PDFs.
Website:
Documentation: Table structure options ·
2. Azure AI Document Intelligence
(Strong structured extraction)
- Extracts individual table cells.
- Preserves row and column indexes.
- Supports row spans and column spans.
- Provides cell coordinates and header identification.
- JSON and HTML table output.
Website:
Particularly useful for enterprise document processing.
3. Camelot
- Specifically designed for PDF table extraction.
- Extracts tables into individual cells.
- Exports to DataFrames, CSV, JSON, and Excel.
- Multiple extraction strategies for bordered and borderless tables.
- Optional machine-learning and OCR support.
Website:
Best when your primary concern is extracting tables rather than understanding the entire document.
Quick comparison
Capability Docling Azure Camelot Individual cells Yes Yes Yes Row/column relationships Yes Yes Yes Merged cells Yes Yes Limited Scanned PDFs Yes Yes With OCR Full document structure Yes Yes No Open source Yes No Yes Local processing Yes No Yes What I would choose
- Docling: Best overall if you want a complete PDF-to-structured-data pipeline.
- Azure Document Intelligence: Best if you want detailed cell-level extraction through an API.
- Camelot: Best if you mainly need tables from digitally generated PDFs.
One important question
What are you building this parser for?
- LLM/RAG pipeline – feeding PDFs into an LLM without losing table relationships.
- Data extraction – converting PDF tables into JSON, Excel, or database records.
- Document understanding – preserving the entire document layout, including paragraphs, tables, headers, and footnotes.
- Agent pipeline – allowing an AI agent to read PDFs and understand which values belong to which table cells.
The distinction matters because I would recommend a slightly different architecture depending on your answer.
Pages cited in this answer 7
- github.comGitHub - docling-project/docling: Get your documents ready for gen AI · GitHub
- docling-project.github.ioPipeline options - Docling
- docling-project.github.ioAdvanced options - Docling
- learn.microsoft.comDocument layout analysis - Document Intelligence - Foundry Tools | Microsoft Learn
- learn.microsoft.comDocument layout analysis - Document Intelligence - Foundry Tools | Microsoft Learn
- github.comcamelot/README.md at master · camelot-dev/camelot · GitHub
- github.comGitHub - camelot-dev/camelot: A Python library to extract tabular data from PDFs · GitHub
Google AI ModeNov 19, 2026
Choosing the right PDF parser depends on whether your tables are digital-native (clean lines/text) or scanned/complex (merged cells, multi-line headers, weird borders) , and whether you want to run things locally or via the cloud.
Top Recommendations by Use Case
1. Best for Programmatic / Code-First Workflows (Open Source & Local)
pdfplumber- Best for: Precise geometric control, bounding boxes, and inspecting individual words/lines inside table cells.
- How it works: Uses
pdfminerunder the hood to expose the exact(x, y)coordinates of every character, line, and rectangle. - Pros: Great for clean documents; gives you direct access to cell structure as nested Python data structures.
- Cons: Complex tables with missing gridlines or weird shading require writing custom heuristics or fallback logic.
Camelot- Best for: Standard grid-based tables.
- How it works: Offers two modes—Stream (detects tables via whitespace alignment) and Lattice (detects tables via explicit ruling lines).
- Pros: Easily exports straight to a pandas DataFrame , JSON, or CSV.
- Cons: Struggles heavily with multi-line cells, complex merged cells, or heavily styled/colored backgrounds.
Docling(by IBM)- Best for: Modern deep-learning/transformer-based local table parsing (powered by TableFormer).
- How it works: Runs locally on your machine (CPU or GPU) to analyze layout, reading order, and table structure, exporting directly to Markdown, HTML, JSON, or pandas.
- Pros: No API key required, high accuracy on complex documents, and handles mixed text-and-table layouts gracefully.
- Cons: Heavy resource footprint on first run (downloads layout/OCR model weights).
2. Best for High-Complexity / Messy PDFs (Cloud / LLM-Guided)
LlamaParse(by LlamaIndex)- Best for: Messy documents, heavily nested tables, scanned documents, or weirdly formatted multi-page schedules.
- How it works: Cloud-based pipeline that uses vision/LLM intelligence to interpret page layouts and table relationships.
- Pros: Outperforms almost all traditional heuristic parsers on weirdly structured, irregular, or non-standard tables.
- Cons: Sends your data to the cloud (privacy/compliance consideration) and incurs per-page/tier usage costs.
Quick Comparison Matrix
Tool Processing Output Formats Best Suited For pdfplumber Local (Python) Python dicts / custom scripts Fine-grained coordinate & cell extraction Camelot Local (Python) Pandas, CSV, JSON Clean grid or line-bounded tables Docling Local (Python) Markdown, HTML, Pandas, JSON Off-line AI-driven layout & table reconstruction LlamaParse Cloud API Markdown / Structured JSON Complex, messy, or scanned tables To help narrow down the best fit, tell me:
- Are your PDFs text-native (searchable) or scanned images?
- Roughly how many pages/tables are you processing?
- Do you need to run this 100% locally for privacy, or is a cloud API okay?
Google AI ModeSep 20, 2026
Here are the top document parsers specifically built to preserve table structure (as Markdown , HTML, or structured JSON) instead of flattening everything into unformatted text blocks:
- LlamaParse - Powered by advanced vision-language models, it natively reconstructs complex tables, multi-column layouts, and hierarchical structures into clean Markdown. It is built directly for RAG workflows and structured document ingestion.
- Azure AI Document Intelligence (formerly Form Recognizer) - Outstanding enterprise choice for heavy-duty table extraction. Its "Layout" and "Prebuilt" models extract tables with explicit row/column indices, cell spans, and confidence scores, outputting directly to JSON or markdown.
- Marker - An open-source, high-speed PDF-to-Markdown/JSON converter that runs locally (ideal if you need data privacy or don't want a paid cloud API). It does a phenomenal job of recognizing tables and preserving text formatting without relying on heavy commercial cloud engines.
- AWS Textract - The go-to tool if you are already in the AWS ecosystem. It has specialized table and form analysis features that return bounding boxes, cell coordinates, and table data in structured JSON format rather than a generic text block.
- Unstructured - An open-source and hosted ingestion framework that partitions documents into structured elements (identifying titles, narratives, and tables separately) so you can export tables cleanly without losing context.
To help narrow down the best fit, tell me:
- Are you looking for a cloud API or an open-source/local tool?
- What is your target output format (Markdown, JSON, or CSV)?
- What kind of documents are you parsing (invoices, financial reports, academic papers)?
ChatGPTSep 20, 2026
Yes. If your requirement is “preserve tables as actual tables/structured cells rather than flattening everything into a text blob,” I’d look at these:
- Docling — probably the closest match. It parses PDFs, DOCX, PPTX, XLSX, etc., and has a structured document model with explicit table/cell information. Its JSON representation preserves row/column spans, and HTML output preserves
rowspan/colspan. - Unstructured — returns tables as distinct
Tableelements rather than only text. Importantly, it can provide an HTML representation inmetadata.text_as_html, preserving rows and cells. For PDFs, you enable table structure inference.
What I'd choose
If you're building an LLM/RAG/document-understanding pipeline, I'd start with Docling and use its JSON or HTML output, rather than Markdown. Docling explicitly warns that Markdown cannot represent merged cells, while its JSON/HTML representations retain that structure.
For example, instead of getting:
Revenue Q1 $10M Q2 $12M Q3 $15Myou want something conceptually like:
{ "type": "table", "rows": [ ["Quarter", "Revenue"], ["Q1", "$10M"], ["Q2", "$12M"], ["Q3", "$15M"] ] }or an HTML
<table>that retains the actual row/cell relationships.If you tell me what document types you're parsing (PDF, DOCX, scanned PDFs, Excel, etc.) and what output/API format you want (JSON, HTML, Markdown, Python objects, LLM-ready chunks), I can narrow this down to 2–3 parsers that fit your exact requirements.
Pages cited in this answer 6
- docling-project.github.ioSerialization - Docling
- docling.orgDocling Guide: What It Is, Install, CLI, OCR & RAG (2026)
- docling-project.github.ioIndex - Docling
- unstructured.readthedocs.ioDocument Elements - Unstructured 0.12.6 documentation
- unstructured.readthedocs.ioTable Extraction from PDF - Unstructured 0.12.6 documentation
- unstructured.ioConvert Documents into Structured, AI-Ready Data | Unstructured
Also asked as
- Can you recommend a document parsing tool that preserves table structures instead of just outputting raw text?
- What are the top API solutions for turning table information from scanned images or PDFs into structured data?
Document table extraction: common questions
- Which brands does AI recommend for Document table extraction?
- AI most often mentions LlamaParse (57%), PDFPlumber (51%), Azure AI Document Intelligence (35%), Unstructured (34%) and Docling (19%) for Document table extraction in AI Document Parsing & Extraction APIs.
- What questions do buyers ask AI about Document table extraction?
- Common buyer questions include "I need a PDF parser that respects table cell structures and does not just dump raw text.", "Can you recommend a document parsing tool that preserves table structures instead of just outputting raw text?", "What are the top API solutions for turning table information from scanned images or PDFs into structured data?".
For agents: this page as Markdown, https://parse.gl/topics/pdf-table-extraction.md. JSON, MCP · free for the last 90 days, checks from $0.01
This page
Read and search
Connect
An agent can save work before signup: POST https://agent.parse.gl/v1/workspaces
What it costs
Prices: https://parse.gl/pricing.md
Map of the site: https://parse.gl/llms.txt