PDF Tips

How to Extract Tables from a PDF to CSV or Excel

By ConvertFloor Team Published Updated ~ 2 min read
Get PDF table data into CSV for Excel or Google Sheets: text-based vs scanned PDFs, common errors, and cleanup.

Reports, invoices, and price lists often hold tables, but a PDF does not keep them as a grid a spreadsheet understands. This guide shows how to get table data into a CSV file you can open in Excel or Google Sheets, what breaks, and how to clean up the result.

How PDF tables are stored

A PDF stores text at positions on the page, with lines drawn around it. There is no row or column information. A table extractor infers rows and columns from alignment and spacing. That works when the PDF has selectable text; a scanned PDF is an image and needs OCR first.

How to extract a table to CSV

  1. Open PDF to CSV. It takes one text-based PDF of up to 10MB and 20 pages.
  2. Upload the PDF and click Extract Tables.
  3. Download the CSV file. It holds the table-like regions found in the PDF.
  4. Open it in Excel or Google Sheets. In Excel you can also import the CSV with Power Query.

A CSV file is plain text with comma-separated cells; the format is described in RFC 4180.

When table extraction works well

Text-based PDFs exported from Excel or Word, with clear column alignment, consistent spacing, or visible separators, convert cleanly. Simple invoices and reports with one table per page are the easiest case.

What goes wrong

  • Merged or nested cells: text lands in the wrong column or rows merge.
  • Tables across pages: headers repeat or rows split; extract the pages you need with PDF Split first.
  • Several tables on one page: they can come out as one combined block.
  • Scanned pages: no text to read. Make the pages searchable with Images to Searchable PDF, then run PDF to CSV on that PDF. See scanned PDFs and OCR.
  • Password-protected files: export an unlocked copy first.

If the table is hopeless as CSV, PDF to Word sometimes keeps the structure better for manual cleanup. If you only need the text, use PDF to Text.

Cleaning up the CSV

Check for shifted columns, blank rows, and cells that should be split. Use find and replace for repeated characters, and filters or sorting to spot outliers. Save as UTF-8 so accented characters survive when the file is opened elsewhere.

Check before you use the data

Compare totals and row counts with the PDF, and spot-check a few rows from the top, middle, and bottom. This catches most alignment errors before they reach a report or an import.

More background: why PDF text breaks when you copy or convert it.

On ConvertFloor, step by step

Screenshots of the live site, taken on 29 November 2026

PDF to CSV on ConvertFloor with a file chosen
Step 1: choose your file, then press Extract Tables.
PDF to CSV result page with the download button
Step 2: invoice.csv is ready to download.

Tested on ConvertFloor

Test run on 28 November 2026

We converted three PDFs with tables using this page. The sample files were made for the test. Tool used: PDF to CSV.

Test file CSV result Time
3-page report with an 18-row table (lines around cells) 19 rows × 4 columns; every value in the right column 0.1 s
Price list without cell lines, multi-word names, one empty cell 6 rows × 4 columns; the empty cell stayed empty 0.1 s
2 pages, two different tables (3 and 5 columns) Both tables, one after the other, each with its own columns 0.1 s
Invoice whose column headers are centered over left-aligned values (re-tested 29 November 2026) Item, Qty, Unit price, Total in the same 4 columns as the values; 11 rows 0.1 s
  • Right-aligned numbers and names with spaces landed in the correct columns.
  • Cells that wrap onto two lines were not part of this test; check those after conversion. Scanned PDFs have no text to read.

Related guides and tools

Share this page