Encrypted, deleted after conversion, never shared

29 November 20267 min read

How to Extract Tables from PDF to Excel (Even Across Pages)

4 ways to extract tables from PDF into Excel compared: copy and paste, Excel's PDF import, Tabula and Bayainy Extract, tested on a real 4-page invoice.

Two tables marked in blue on a PDF invoice in Bayainy Extract

The fastest way to extract tables from PDF is to let a tool find the table, read it row by row and hand you a sheet. Copy and paste works for a small table on one page. For anything longer, a table that continues across pages, a scanned document or a file with several tables, you need a tool that understands rows and columns, and you need to check the totals before the data reaches your books.

This guide compares the four ways to get a PDF table into Excel, shows where each one breaks, and walks through a real four-page invoice we ran through Bayainy Extract.

How to extract tables from PDF: 4 ways compared

MethodCostScanned PDFsTables across pagesChecks totals
Copy and pasteFreeNoBy handNo
Excel: Get Data from PDFIncluded in Microsoft 365NoOne table per pageNo
TabulaFree, open sourceNoBy handNo
Bayainy Extract3 pages free, then from 29 SAR a monthYes, with OCRJoined into oneYes
What each method does with the hard cases. Every one of them handles a simple one-page table.

1. Copy and paste

Select the table in your PDF reader, copy it and paste it into Excel. On a clean PDF this sometimes lands in the right columns. More often each row arrives as one long cell, and you split it with Data, Text to Columns. It is fine for one small table and painful for anything else.

2. Excel's PDF import (Power Query)

Excel for Microsoft 365 can read a PDF directly: Data, Get Data, From File, From PDF. It lists the tables it found on each page and loads the one you pick. It is a good free option for a text PDF with ruled tables. It does not read scanned pages, and a table that runs over five pages usually shows up as five separate tables you have to append.

Microsoft Learn: the Power Query PDF connector

How Excel's From PDF import finds tables, and its limits

3. Tabula

Tabula is a free, open source tool: you draw a box around a table and it exports CSV. It works well on text PDFs and is popular with journalists and analysts. Like Excel, it cannot read scanned PDFs, and you draw the box again on every page.

Tabula

Free, open source tool for pulling tables out of text-based PDFs

4. An extraction tool that finds the tables

A data extraction tool reads the whole document, finds every table and every label and value pair on its own, and gives you each table as a sheet. This is the only option that handles a whole month of documents, scanned pages and tables over many pages without you drawing anything. The good ones also add the numbers up for you.

PDF table to Excel: a real four-page invoice

Here is a real file we ran through Bayainy Extract: an invoice saved as a four-page PDF, with a line items table, a table of transactions and a small table of business details on the last page. No template was set up for it and no AI read it.

Bayainy Extract on a four page PDF invoice: Table 1 and Table 2 marked on the page, the issuer read with its logo, and the JSON with three tables
Extract found three tables in a four-page PDF, read in 1.1 seconds with no AI. Each table is marked on the page in blue.
  • Table 1, the line items: 5 rows, including the Sub Total, Credit and Total rows printed under the lines.
  • Table 2, the transactions: 2 rows, the payment and the closing balance.
  • Table 3, found on page 4: the business details, read as a separate table instead of being glued onto Table 2.
  • The fields above the tables, such as the invoice number and date, came out as label and value pairs, and the issuer was read together with its logo.

Then the check: the two lines are 50.00 and -12.50, which add up to the 37.50 printed as the Sub Total. If those numbers had not matched, the document would have been flagged instead of passed straight to the sheet.

4 problems that break most PDF table extraction

Tables that run over several pages

A long statement or report prints its table across 10 or 30 pages, often repeating the header on each one. Most tools give you one table per page with the header repeated in the middle of your data. A good extractor recognises the repeated header and joins the pages into one table.

Scanned PDFs

If you cannot select the text in a PDF, it is a picture of a page. Copy and paste, Excel's import and Tabula all return nothing. The page has to be read with OCR (optical character recognition) first, and the rows rebuilt from where each word sits on the page.

Totals rows mixed into the data

Subtotal, VAT and Total rows sit inside the table but are not line items. If they are imported as normal rows, every sum you run in Excel counts them twice. Keep them, but know which rows they are.

Two tables side by side

Financial reports often print two tables next to each other, for example this year and last year. A tool that reads line by line merges them into one wide, wrong table. It has to see that there are two blocks on the page.

How to check a PDF table after you extract it

  • Count the rows: the number of lines in Excel should match the number of lines on the PDF.
  • Add up the amount column and compare it with the total printed on the PDF.
  • On an invoice, check each line as quantity times price, then subtotal plus VAT equals the total.
  • On a statement, check the running balance: the opening balance plus every movement must reach the closing balance.
  • Look at the first and last row of every page, where rows are most often lost or doubled.

Extract runs these checks for you on every invoice and report, and shows a difference with its exact amount. For bank statements, use the bank statement converter, which checks every transaction against the running balance.

Frequently asked questions

Can Excel extract tables from PDF on its own?

Yes. In Excel for Microsoft 365 use Data, Get Data, From File, From PDF. It works on text PDFs with clear tables, but not on scanned PDFs, and it loads a table that spans pages as several tables.

How do I extract a table from a scanned PDF?

A scanned PDF must be read with OCR first. Bayainy Extract reads scanned pages with its own OCR and rebuilds the table rows. A scanned page costs 3 pages of your plan, and you are asked before it is read.

Can I extract several tables from one PDF?

Yes. Extract finds every table in the file and gives each one its own sheet, as in the four-page invoice above, where it found three.

What formats can I download the table in?

Excel, CSV, JSON, XML and Markdown, or copy it straight into an open sheet.

Bayainy Extract

Extract data from PDF, scans and photos into checked Excel, CSV or JSON

More articles