Extract tables from a PDF

Pull the tables out of a PDF as CSV you can open in Excel.

Drop your PDF hereor click to choose — up to 4 GB on Premium
  • Premium: needs an account
  • Files deleted within one hour
  • Encrypted in transit
  • No watermarks
  • Run by ClaRock, Inc.

This tool extracts the text of a PDF and has an AI model find the tables in it and write them out as CSV. All tables go into a single file, separated by a blank line and a comment line giving each table a number and caption. The document text is sent to Anthropic, the model provider, for this step. A model can misplace or miscopy a value, so check figures against the PDF before using them. It needs Premium.

How to use it

  1. Log in to a Premium account.
  2. Drop your PDF on the page, or click to choose it.
  3. Click Extract tables.
  4. Download the CSV file and open it in a spreadsheet or text editor.
  5. Compare totals and a sample of cells with the tables in the PDF.

How the CSV is laid out

You get one .csv file however many tables the document has. Each table starts with a line beginning with a hash sign, in the form Table 1 followed by its caption or a short description, and tables are separated by a blank line. Fields that contain commas are quoted.

A spreadsheet opens this as one sheet, with the caption lines as rows of their own. To work on one table, copy its block into a new sheet. If the document has no tables, the file contains the single line saying no tables were found.

Why extracted values need checking

The model does not see the page. It receives the extracted text, in which a table is rows of words and numbers separated by spaces, and it decides where the columns are. Empty cells, merged headers, numbers with spaces as thousands separators and tables that continue across pages are where cells shift or rows get joined.

Tables that are pictures, as in a scan or a pasted screenshot, contain no text and are not found. Run OCR PDF on a scan first.

Choosing between this and PDF to Excel

PDF to Excel rebuilds columns from the positions of text on the page without an AI model, and gives you a spreadsheet file. It suits clean, regularly aligned tables. This tool suits documents where tables are mixed with prose and you want them picked out and captioned.

Text past the first 600,000 characters is ignored, and the file then starts with a comment line saying that only part of the document was read. Usage is counted against your monthly AI page allowance at one page per 1,800 characters of text.

Questions

Can I trust the numbers in the extracted tables?

Check them. The values are copied by an AI model working from plain text, and a digit, a sign or a column can come out wrong. Compare totals and spot-check cells before using the data.

Does each table get its own file?

No. All tables are in one CSV, each introduced by a caption line and separated from the next by a blank line.

How do I open the result in Excel?

Open the .csv file directly, or convert it with CSV to Excel. Every table lands on the same sheet, one below the other.

Why were no tables found in my PDF?

Either the document has none, or its tables are images with no text behind them. Scanned pages need OCR first.

Who processes my document?

Text extraction happens on this service; the extracted text is then sent to Anthropic, where the AI model identifies the tables. The upload and the CSV are deleted here within one hour.

Can it read tables from a protected PDF?

Not until the protection is removed. Use Unlock PDF with the password, then extract the tables from the unlocked copy.

  • How to get tables out of a PDF

    How to move a table from a PDF into a spreadsheet, why it sometimes lands in one column or splits rows in two, and which of two methods fits your file.