How to get tables out of a PDF

Guide · updated 17 November 2026

The short answer: for a clean, regularly aligned table, PDF to Excel rebuilds the rows and columns from where the text sits on the page and gives you an .xlsx sheet. When a document mixes several different tables with prose, Extract tables has an AI model pick the tables out and returns them as CSV; that one needs Premium. Both need a PDF with real text in it, so a scan goes through OCR first. And with either method, check the numbers against the page before you use them.

Why copying a table out of a PDF gives one long column

A PDF does not contain tables. It contains pieces of text placed at positions on a page, sometimes with lines drawn between them. Nothing in the file says that this number belongs to that column, or that these five values form a row. What you see as a table is an arrangement, and the arrangement is all there is.

When you select a table and paste it into a spreadsheet, you get the pieces of text in the order the file happens to store them, with no column boundaries, so the values typically land in a single column. Any tool that produces a usable table from a PDF is working the structure out again.

Method 1: PDF to Excel, from positions on the page

  1. If the table is a few pages of a long report, take those pages out first with Extract pages.
  2. Drop the PDF on PDF to Excel and click Convert to Excel. No settings are needed.
  3. Download the .xlsx file and open it in a spreadsheet program.
  4. Check the columns against the PDF, especially under wide headings and beside wrapped cells.

Rows come from baselines: pieces of text that sit on the same line are treated as one row, read left to right. Columns come from gaps: a vertical strip of the page that the table rows leave empty is taken as the boundary between two columns. Every page is analysed on its own and the pages are stacked on a single sheet with one blank row between them, so a table that continues over a page break stays together.

Only values are carried over. Fonts, colours, borders and merged cells are not, and a total is the number printed in the PDF, not a formula. Text that begins with an equals sign is kept as text.

What goes wrong with the positional method

Method 2: Extract tables, with an AI model

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

You get one .csv file however many tables the document has. Each table starts with a line beginning with a hash sign that gives it a number and a caption, and tables are separated by a blank line. A spreadsheet opens this as one sheet with the tables one below the other; to work on one table, copy its block into a new sheet. CSV to Excel converts the file to .xlsx if you need a workbook.

Understand what the model is given. It 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. A model can also miscopy a digit or a sign.

Two more things to weigh. The text of the document is sent to Anthropic, the model provider, for this step, which may not be acceptable for every document. And text past the first 600,000 characters is ignored; the file then starts with a comment line saying that only part of the document was read. Usage counts against the monthly AI page allowance at one page per 1,800 characters of text.

Which method to use

If the PDF is a scan

A scanned table is a picture with no text to position. PDF to Excel refuses it with a message pointing to OCR, and Extract tables finds no tables in it. Add a text layer with OCR PDF, which needs Premium, and convert that copy. Recognition mistakes in the scan will appear in the cells: a 5 read as an S stays an S. The steps are in how to make a scan searchable.

A protected PDF is refused by both tools until the protection is removed with Unlock PDF.

Check the numbers

Both methods infer structure, and inference can be wrong without looking wrong. Before the data goes into a report or a calculation:

The PDF you upload and the spreadsheet or CSV are deleted automatically within one hour.

Convert a PDF table to Excel