跳到主要内容
PPDF123

Extract Tables From a PDF

Extract Tables finds aligned table rows in a PDF, shows each table in an editable preview, and exports your corrected rows as Excel or CSV. Pages without text can be read with OCR, so check numbers read from scans before relying on them.

把文件拖到这里,或点击选择

支持 PDF · 单个文件不超过 500.0 MB · 一次最多 20 个文件

也可以按 Ctrl/Cmd+V 或从剪贴板菜单粘贴文件。

文档语言
最多选择 4 种。语言越少,识别越快越准。

Extract Tables finds table-like blocks in a PDF and shows them in a preview you can correct before anything is downloaded. Rows are detected from aligned columns in the PDF's text layer, and columns follow the blank channels the rows share, so a cell left empty keeps its place instead of shifting the rest of the row.

In the preview, click a cell to fix it, delete a stray row or column, merge a wrapped line into the row above, or untick a table you do not want. Excel and CSV downloads use exactly what the preview shows. In Excel, plain numbers such as 1,234.50 become numeric cells, while values with leading zeros, symbols or units stay text.

Scanned pages are optional. With OCR on, pages that have no text layer are rendered, recognized with Tesseract in the languages you choose, and rebuilt into rows from the word positions. That works best on clean, straight scans; check amounts and dates read from a scan before you rely on them. Up to 50 pages that need OCR are handled per request on this site.

功能

  • Editable preview: fix cells, delete rows or columns, merge wrapped lines
  • Excel and CSV exports built from the corrected preview
  • Empty cells keep their column; plain numbers become numeric cells in Excel
  • Optional OCR for scanned pages, with a language choice
  • Optional page range

适用场景

  • Moving a bank or card statement into a spreadsheet
  • Extracting an invoice's line items or a report's tables
  • Checking what a PDF's tables look like before choosing an export

How do I extract tables from a PDF?

  1. Upload the PDF and, if needed, enter a page range
  2. Leave OCR on for scanned pages and pick their languages, or turn it off to read only the text layer
  3. Click Process and review each table in the preview
  4. Correct anything that is off, then download Excel or CSV

限制与边界

  • Detection needs aligned columns; tables typeset with single spaces between columns may not register
  • Merged cells, colored headers and borders are not reconstructed
  • OCR on scans is less exact than reading a text layer: verify figures, dates and signs
  • At most 50 pages that need OCR per request on this site
  • Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.

常见问题

Why were no tables found?
A table needs at least two rows with aligned columns. Prose, a single row and tables with single-space gaps do not qualify. For image-only pages, keep OCR on.
How accurate is OCR on a scanned table?
It depends on the scan. Clean, straight, high-resolution pages usually come out well, but a wrong digit or a shifted column is possible, so check the preview before exporting.
Why is a number stored as text in Excel?
Only plain numbers become numeric cells. Values with a leading zero, a currency symbol, a percent sign or a unit stay text so account numbers and codes are not altered.
Does the preview change my PDF?
No. Edits only affect the Excel or CSV you download; the PDF is left alone.

最后更新:

用代码调用

本站每个工具都是普通 REST 接口。匿名使用不需要账号或 API Key,给浏览器、开发者和智能体同样可用。

curl -X POST "https://pdf123.xyz/api/v1/convert/pdf/tables" \
  -F "[email protected]" \
  -F "pageNumbers=all" \
  -F "ocr=auto" \
  -F "languages=eng" \
  -o output.pdf

也提供 MCP 工具,供说 Model Context Protocol 的客户端调用(JSON-RPC 2.0,POST /mcp)。 完整 API 文档

在 AI 代理中使用

Skill

装上这个 Skill,Claude Code、Codex、Cursor 等 AI 代理就能替你完成「提取 PDF 表格」: /skills/pdf123-pdf-to-tables.md

全部 Agent Skill

文件只用于本次处理,完成后自动删除。