ParsePDFAI.com

How to extract tables from a PDF to CSV

By the ParsePDF AI team (Richscripts Inc.) · Published 29 November 2026 · Last checked 29 November 2026

You can see the table. Your spreadsheet cannot, because the PDF does not contain one. It contains pieces of text and, sometimes, lines drawn between them. Getting a CSV means rebuilding rows and columns from where things sit on the page.

Why copy and paste goes wrong

Select a table in a PDF viewer and paste it into a spreadsheet, and you usually get everything in one column, or one cell per word. The viewer copies text in the order it is stored, with spaces where the gaps were. Column boundaries are lost.

Three ways to do it

1. Paste, then split

For one small table: paste into a spreadsheet, then use “Text to columns” (Excel) or “Split text to columns” (Google Sheets). It works when every cell is a single word or number, and breaks when a cell contains spaces, such as “Green beans”.

2. A table tool on your computer

Open-source tools such as Tabula and Camelot let you draw a box around a table and export CSV. They are free and local. They need the PDF to have a text layer, so scanned pages do not work, and you handle one table at a time.

3. A parser that finds the tables for you

A layout-aware parser detects every table in the document and rebuilds the cells. The ParsePDF AI full parse returns one CSV file per table, named by its order and page (for example table-01-page-2.csv), with OCR for scanned pages. $9.99 once per document, up to 200 pages.

Check the CSV before you trust it

  • Count the rows and columns against the PDF.
  • Check a total. If the table has a total row, sum the column in your spreadsheet and compare.
  • Look at numbers with commas. “1,161.8” must arrive as one quoted cell, "1,161.8", not two cells.
  • Look at merged and multi-line cells. CSV has no merged cells; a heading that spanned three columns ends up in the first of them.
  • Tables that continue on the next page may arrive as two files. Check the last row of one against the first row of the next.

Opening the CSV in Excel

Our CSV files are UTF-8 with a byte-order mark, so Excel shows accented letters and symbols correctly when you double-click the file. If a long number turns into 1.23E+11, import the file through Data → From Text/CSV and set that column to Text.

Official source

The CSV format — commas, quoted fields, doubled quotes inside a quoted field — is described in RFC 4180.

Try the sample table

Press “Try a sample” on the parser — page 2 has a table.

Parse a PDF