Extract tables from a PDF
Get the rows and columns out of a PDF table and into a spreadsheet, without retyping them.
or drop it here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To extract tables from a PDF to CSV, choose the file and press Extract. Your browser reads where each piece of text sits, groups text on the same baseline into rows and snaps rows onto shared columns, then writes a CSV for Excel or Google Sheets. The PDF never leaves your device. Scanned tables need OCR first.
How to extract tables from a PDF to CSV or Excel
- STEP 1
Choose your PDF
Pick one PDF that contains tables. Pages of flowing prose are ignored, because single-run lines are not treated as table rows.
- STEP 2
Tune row grouping
"Row grouping tolerance" from 1 to 12 points decides how far apart text can sit and still share a row. Raise it if rows split.
- STEP 3
Choose the output
Turn on "One CSV per page" to keep each page's table separate, or leave it off for one CSV of every table row.
- STEP 4
Extract and check
Press "Extract the tables", note the rows and columns detected, then open the CSV in Excel or Sheets and spot-check it.
Why PDF tables are hard to extract
A PDF does not store a table as rows and cells the way a spreadsheet does. It stores pieces of text, each at an exact position on the page, and lines that happen to be drawn around them. Recovering a table means working backwards from those positions: text that shares a baseline is a row, and text that lines up vertically is a column.
That works well for bank statements, invoices, price lists, timetables and reports exported from accounting software, where the layout is a regular grid. It is weaker on tables with merged cells or text that wraps onto two lines within a cell, which is why any extracted table should be checked against the original.
What survives, and what does not
Every text run is read with pdf.js along with its x and y position. Runs whose baselines are within the row tolerance, 3 points by default, are grouped into one row, and rows with only a single run are treated as prose and dropped. Column positions are then gathered from every row and runs are snapped to the nearest one, so cells line up across the whole table. The output is standard CSV, with quotes and commas escaped.
What you keep
Rows and columns, reconstructed from where the text sits on the page
Cell text exactly as stored, including numbers, dates and currency symbols
One combined CSV, or one CSV per page if you prefer
What you lose
Merged cells and text that wraps inside a cell can split or shift columns
Formatting, cell borders and colours; CSV holds values only
Scanned tables, which have no text layer, are not read until they have been OCRed
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
Extract tables from a PDF at a glance
| Input | PDF with a text layer |
|---|---|
| Output | CSV, combined or one per page |
| Method | Text-position clustering |
| Runs on | Your device, in the browser |
| Engine | pdf.js |
| Works offline | After the first use |
If something goes wrong
It says no tabular rows were found
Either the table is a scanned image with no text layer, or the document is prose. Run scans through OCR first; for prose, use Extract text instead.
One row of the table is split across two CSV rows
The cells in that row sit at slightly different heights. Raise the row grouping tolerance a few points and extract again.
Columns are shifted on some rows
Usually a merged cell or wrapped text has created an extra column position. Use one CSV per page so problems stay contained, then fix the odd rows in your spreadsheet.
Extract tables from a PDF questions
How do I extract a table from a PDF into Excel?
Extract it here as CSV and open the file in Excel, which reads CSV directly. If you need a real .xlsx with one sheet per page, the PDF to Excel tool uses the same table detection.
Is my PDF uploaded to extract the tables?
No. Text positions are read and the CSV is written inside your browser tab. Bank statements and payroll reports never leave your device.
Can it extract tables from a scanned PDF?
Not directly. A scanned table is a picture, so there is no text to position. Run OCR to add a text layer, then extract from the OCRed file.
How do I convert a bank statement PDF to CSV?
Choose the statement and extract with one CSV for the whole file. Downloaded statements are usually text-based, so dates, descriptions and amounts land in separate columns. Check the totals against the original.
Does it work with tables that have no borders?
Yes. Detection uses text positions, not drawn lines, so borderless tables with neatly aligned columns work as well as ruled ones. Ruling lines are ignored entirely.
Can I open the CSV in Google Sheets or Numbers?
Yes. CSV is plain text with commas between cells, and Google Sheets, Numbers, LibreOffice and Excel all open it. In Sheets, use File, Import and choose the CSV.