PDF Table to Excel & CSV avatar

PDF Table to Excel & CSV

Pricing

from $1.40 / 1,000 tables

Go to Apify Store
PDF Table to Excel & CSV

PDF Table to Excel & CSV

Extract tables from PDF links into rows, one Excel file per PDF and a CSV per table. Tables that run across pages are joined into one. Billed only for tables delivered: $2 per 1,000.

Pricing

from $1.40 / 1,000 tables

Rating

0.0

(0)

Developer

Brandon Ob

Brandon Ob

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 hours ago

Last modified

Features

Limited permissions

Share

This PDF table extractor (PDF to Excel and PDF to CSV converter) extracts every table from the PDF files you link to and gives them back as rows you can export, plus one Excel file per PDF and one CSV file per table. A table that runs over a page break comes back as one table, not three, and a header row repeated on each page is dropped. You are charged per table delivered, never for a PDF that failed or had no tables.

What does PDF Table to Excel & CSV do?

  • Finds the tables in PDF files from public links and returns each table as a dataset item, with every row keyed by the column header.
  • Writes one Excel workbook per PDF (one sheet per table, frozen header row) and one CSV per table, each with a download link.
  • Joins tables that continue on the next page when the column count matches, and drops the repeated header.
  • Offers two detection modes: lines for tables drawn with ruled borders, text for tables laid out with spaces.
  • Reads only the pages you choose (1-3,7), opens password-protected PDFs when you give the password, and skips tiny "tables" such as layout boxes.
  • Lists PDFs that could not be read, and PDFs with no tables, in a SUMMARY record.

A PDF to Excel converter for many files at once

Online PDF to Excel converters take one file at a time and turn the whole page, text and all, into cells. This one is built for converting PDF tables to Excel in bulk: paste tens or hundreds of PDF links, and only the tables come back, each with its own header row, ready to filter, sum or import. Schedule it, or call it from the API, to convert PDF to Excel automatically every time a new report is published.

You wantUse
Convert PDF to Excel (one workbook per PDF, a sheet per table)excelUrl
Convert PDF to CSV (one file per table)csvUrl
Rows as JSON for an app or databasethe dataset (rows)

Use cases

  • Analysts and researchers: pull tables out of government reports, statistical releases and annual reports into Excel for analysis.
  • Finance teams: turn PDF price lists, rate cards and financial statement tables into spreadsheets.
  • Journalists and data teams: extract public datasets that are only published as PDF, such as layoff notices or inspection results.
  • Operations and procurement: convert supplier catalogs and order confirmations into rows you can import.
  • Developers and no-code builders: add a "PDF table to rows" step to a pipeline and send the result to Google Sheets or a database.

How to use it

  1. Open the Actor in Apify Console and add PDF links, one per line. Each file must open in a browser without a login.
  2. Optional: set the pages to read (1-3,7; empty reads every page).
  3. Pick the table detection: lines (ruled borders) or text (no borders).
  4. Click Start. Open the Tables view, or use the excelUrl column for one spreadsheet per PDF.
  5. To process new PDFs regularly, save your input as a task and schedule it, or call the Actor from the API.

Input

FieldWhat it does
pdfUrlsDirect links to PDF files, one per line.
pagesOptional page range, for example 1-3,7. Empty reads every page.
strategylines (default) for ruled tables, text for borderless tables.
mergeAcrossPagesJoin a table that continues on the next page with the same number of columns (on by default).
firstRowIsHeaderUse the first row as column names (on by default); off gives Column 1, Column 2, …
minRowsIgnore tables with fewer data rows than this (default 2).
pdfPasswordOptional, for password-protected files.
maxItemsStop after this many tables (default 100).

Example input:

{
"pdfUrls": ["https://raw.githubusercontent.com/jsvine/pdfplumber/stable/examples/pdfs/ca-warn-report.pdf"],
"pages": "1-3",
"strategy": "lines",
"mergeAcrossPages": true,
"firstRowIsHeader": true,
"minRows": 2
}

Output

One dataset item per table. Real output from the example input above (first 3 pages of a public California layoff-notice report; 1 table, 122 rows), shortened:

{
"pdfUrl": "https://raw.githubusercontent.com/jsvine/pdfplumber/stable/examples/pdfs/ca-warn-report.pdf",
"table": 1,
"tablesInPdf": 1,
"pages": [1, 2, 3],
"columns": ["Notice Date", "Effective", "Received", "Company", "City", "No. Of", "Layoff/Closure"],
"rowCount": 122,
"rows": [
{"Notice Date": "06/22/2015", "Effective": "03/25/2016", "Received": "07/01/2015", "Company": "Maxim Integrated Product", "City": "San Jose", "No. Of": "150", "Layoff/Closure": "Closure Permanent"}
],
"csvUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/01-ca-warn-report-table-01.csv",
"excelUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/01-ca-warn-report.xlsx",
"extractedAt": "2026-10-23T11:02:14+00:00"
}

The Excel and CSV files live in the run's key-value store. The dataset can be downloaded as JSON, CSV, Excel, XML or HTML, or read through the API.

Pricing

Pay per event: $2.00 per 1,000 tables delivered, plus a $0.00005 charge per Actor start. A 100-page report with one long table that continues across pages counts as one table. PDFs that fail or contain no tables are not charged. You can set a maximum cost per run.

Discounts apply automatically on paid Apify plans: 10% off on Starter, 20% on Scale and 30% on Business.

Example: 250 PDFs with two tables each (500 tables) cost about $1.00.

Integrations and API

Run it and get the tables back in one call:

curl -X POST "https://api.apify.com/v2/acts/adhistory~pdf-tables-to-excel/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"pdfUrls": ["https://example.com/report.pdf"], "strategy": "lines"}'

Python, with the apify-client package:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("adhistory/pdf-tables-to-excel").call(run_input={
"pdfUrls": ["https://example.com/report.pdf"],
"pages": "1-5",
})
for table in client.dataset(run["defaultDatasetId"]).iterate_items():
print(table["table"], table["rowCount"], table["excelUrl"])

Like every Apify Actor, it also works with Make, Zapier and n8n, with webhooks and schedules, and as a tool for AI agents through the Apify MCP server.

FAQ

How do I convert a PDF to CSV? Add the PDF link and click Start. Each table gets its own CSV file (csvUrl column), and the whole dataset can also be downloaded as CSV. Text outside tables is not exported.

How do I extract tables from a PDF into Excel (XLSX)? Use the excelUrl column: one workbook per PDF, one sheet per table, header row frozen.

Does it work on scanned PDFs? No. It needs PDFs that contain real text. Scanned pages are pictures and come back with no tables; there is no OCR. For a photo or screenshot of a table, use Image Table to Excel & CSV.

My table came back empty or in pieces. Try the other detection setting, lower minRows, or turn off mergeAcrossPages to see the tables page by page. Ruled tables work best; borderless tables can merge or split columns when the spacing is uneven.

What about merged cells? Cells that span several columns or rows are not split. The text appears once, in the first column it covers.

Is this a free PDF to Excel converter? It is pay per table: $2 per 1,000 tables, so converting a few dozen PDFs costs cents, and Apify's free monthly credits cover the first runs. There is no subscription.

Can I convert a PDF to Excel without losing the columns? Yes, for PDFs with real text: each table keeps its columns, and the header row becomes the column names. If columns run together, switch the table detection to text (for tables without ruled borders) or lines.

Can it convert Word tables too? Not this Actor; for .docx files and Google Docs use Word Table to Excel & CSV.

How big can the PDFs be? Up to 50 MB each, from public links.

When are tables joined across pages? When the next page's first table has the same number of columns as the table before it.

Am I charged for PDFs that failed? No. Only delivered tables are charged; failures are listed in SUMMARY.

Found a bug or need a feature? Open an issue on the Issues tab — I usually reply within a day.