How to Extract Tables from a PDF to Excel or CSV

A government report with a price table. A supplier catalogue. A research paper with results you want to chart. The data is right there, but it is locked inside a PDF. Copy and paste usually gives you one long line of mashed-together text. A better way is to extract the table from the PDF to Excel, then save it as CSV if another program needs it.
Here is a workflow that works for most tables, and what to do when a table refuses to behave.
How PDF tables actually work
A PDF does not store "a table". It stores pieces of text at exact positions on the page, plus some lines drawn around them. A converter has to look at those positions and guess which pieces belong to the same row and the same column.
DoraPDF's PDF to Excel Converter groups text that sits on the same line into a row, and starts a new cell wherever there is a clear gap between words. Numbers like 1,250.75 become real numeric cells. Each page goes into its own sheet. This works well for clean, digitally created tables and needs a bit of tidying for complex ones.
Extract a PDF table to Excel, step by step
- Open PDF to Excel.
- Drop in the PDF and press Convert now.
- Download the .xlsx file. Column widths are already set roughly to fit the content.
- Open the sheet for the page that holds your table and delete the text above and below it (titles, footnotes, page numbers).
If the PDF is a scan, the converter will tell you that no text was found. Run PDF OCR first to add a text layer, then convert the OCR result.
From Excel to CSV
CSV is the universal format for importing data into databases, accounting software, Python, R or Google Data Studio.
- Excel: File > Save As and choose CSV UTF-8 (Comma delimited). The UTF-8 version keeps accented letters and symbols intact.
- Google Sheets: File > Download > Comma-separated values (.csv).
- LibreOffice Calc: File > Save As, type Text CSV.
CSV saves only the current sheet, so if your table spans several pages, combine them first (see below).
In much of Europe, Excel uses a semicolon instead of a comma as the separator because the comma is the decimal mark. If the program you are importing into expects commas, check the separator setting when you export or import.
Tables that span several pages
Long tables are split across pages, so they land on several sheets.
- Add a new sheet and paste the header row once.
- Copy the data rows from each page sheet underneath, in order.
- Remove repeated headers and "continued" lines.
- Sort or filter by a key column to spot duplicates or gaps.
A quick sanity check: if the PDF prints a total row, compare it with =SUM() of your column.
Need JSON instead?
Developers often need the table as JSON for an app or API. Once you have a CSV, open the CSV to JSON Converter, paste the CSV text, and choose the separator (comma, semicolon or tab). The first row becomes the field names, and numeric values are written as numbers rather than strings. It also works the other way, turning JSON back into CSV.
When the table comes out wrong
Two columns merged into one. This happens when columns are very close together. Use Data > Text to Columns with a space or a custom delimiter to split them.
One column split into two. Usually a long text cell with a wide space inside. Join them with =A2&" "&B2, copy, and paste as values.
Rows out of line. Multi-line cells (an address, a long product name) can become two rows. Merge the second line into the first and delete the extra row.
Numbers stuck as text. Values with currency symbols, units (12 kg), percent signs or bracket negatives stay as text. Remove the extra characters with Find & Replace, then convert the column with Text to Columns > Finish.
The table is really just text. Some PDFs put "tables" in as one paragraph per row. In that case, try PDF to TXT: it keeps each line on its own line, and you can paste that into Excel and split it with Text to Columns using the character that separates the values.
Tips for the best results
- Use the original digital PDF, not a printout that was scanned again.
- Extract only the pages you need first if the file is huge; a PDF Splitter can pull out a page range.
- Keep a copy of the raw conversion before you start cleaning, so you can always go back.
- For a table you need every month (the same report layout), record the clean-up steps once and reuse them.
Privacy
PDF to Excel, PDF to TXT and CSV to JSON all run inside your browser. Internal reports, customer lists and price sheets are not uploaded to any server.
FAQ
How do I extract a table from a PDF to Excel for free? Upload the PDF to PDF to Excel, download the .xlsx and open the sheet for the page with the table.
Can I export a PDF table straight to CSV? Convert to Excel first, then save that sheet as CSV UTF-8 from Excel or Google Sheets.
Why are my numbers left-aligned and not adding up? They are stored as text, often because of currency symbols or units. Remove them and convert the column.
Does it work with scanned PDFs? Yes, after running PDF OCR. Check the data closely, because OCR can misread digits.
Try the tools from this guide — free
Keep reading
How to Find Credible Sources for an Assignment (and Use AI Safely)
Find and evaluate credible sources for an assignment: a 5-question check, where to search, and how to verify leads from an AI study helper.
GuideHow to Fix Common JSON Errors: Unexpected Token, Trailing Commas and Missing Quotes
Unexpected token in JSON? Learn the eight JSON errors that break most files, how to spot each one with a free validator, and how to fix them fast.
GuideHow to Make an Assignment Outline Step by Step (Then Write It Yourself)
Plan an assignment outline step by step: break down the question, set a word budget per section, collect sources and turn the outline into your own draft.