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
- Open PDF to CSV. It takes one text-based PDF of up to 10MB and 20 pages.
- Upload the PDF and click Extract Tables.
- Download the CSV file. It holds the table-like regions found in the PDF.
- 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.