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
- If the table is a few pages of a long report, take those pages out first with Extract pages.
- Drop the PDF on PDF to Excel and click Convert to Excel. No settings are needed.
- Download the .xlsx file and open it in a spreadsheet program.
- 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
- Everything in one column. No gap wide enough to count as a column break was found. Either the columns sit closer together than one and a half line-heights, or many rows of the table run across the gaps. A title or a paragraph above the table is not the cause; those lines are ignored when the columns are worked out, and they land in column A.
- Rows split in two. A cell whose text wraps onto a second line has two baselines, and each baseline becomes a row. The second row holds only the overflow text. Merge the pair by hand in the spreadsheet.
- Headings in the wrong place. A heading that spans several columns goes into the column where it starts.
- Misaligned columns. Several tables on one page share one set of column breaks, so tables with different column positions can come out shifted against each other.
- A refusal for length. Documents of more than 200 pages are refused outright instead of being converted in part, so you never get a sheet with rows silently missing. Keep only the pages that hold the table.
Method 2: Extract tables, with an AI model
- Log in to a Premium account.
- Drop the PDF on Extract tables and click Extract tables.
- Download the CSV file and open it in a spreadsheet or a text editor.
- 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
- One table with clear gaps between columns: PDF to Excel. The result is the same every time you run it and nothing leaves the service.
- Tables scattered through a report, or several different tables on a page: Extract tables, which picks each one out and captions it.
- You want the table to stay a table in a document, not a spreadsheet: neither. PDF to Word keeps the look of the table but delivers it as separate pieces of text with lines behind them, not as a Word table.
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:
- Add up a column in the spreadsheet and compare it with the total printed in the PDF.
- Count the rows in the sheet against the rows on the page, to catch split or joined rows.
- Look at negative numbers, numbers in brackets and numbers with thousands separators, which are the ones most likely to arrive as text or lose a sign.
- Check the first and last rows of every page, where a table that continues over a page break is stitched together.
The PDF you upload and the spreadsheet or CSV are deleted automatically within one hour.