# PDF to Excel with AI, from one file or a whole folder

https://getmegabrain.com/tools/pdf-to-excel

> Copying tables out of PDFs breaks columns and drops rows. MegaBrain reads the PDF, rebuilds each table as a proper sheet with numbers as numbers, and adds totals as formulas so you can check them against the original.

How it gets in: Files on your Mac.

## Prompts to try

### Bank statement to Excel

> Convert Finance/statement-november.pdf into Finance/statement-november.xlsx: date, description, money in, money out and balance, one row per line. Add a check row that compares the formula total with the closing balance printed on the statement.

### Price list to a sheet

> Extract every product from Suppliers/[vendor]-pricelist.pdf into Suppliers/[vendor]-pricelist.xlsx with SKU, name, unit, pack size and price as numbers. Keep the page number for each row.

### A folder of invoices

> Read every PDF invoice in Finance/Invoices/November and list them in Finance/invoices-november.xlsx: vendor, invoice number, date, due date, net, tax and total, one row per invoice, with totals as formulas. Mark invoices you could not read fully.

### Every table in a report

> Pull every table from Research/[report].pdf into Research/[report]-tables.xlsx, one sheet per table, named after the table’s title, with the page number in the first row.

## What it does

- Numbers stay numbers: Amounts, dates and percentages come out as real values Excel can sum and sort.
- Checks itself: It adds totals as formulas and compares them with the totals printed in the PDF.
- Many PDFs, one sheet: Point it at a folder and get one row, or one sheet, per document.
- Traceable rows: Each row can carry the file name and page it came from.

## How it works

1. Add the PDFs: One file or a folder of them.
2. Name the columns: Tell it which fields you want and how to name the file.
3. Check the totals: Compare the check row with the PDF, then use the sheet.

## AI employees who do this

- [AI data entry clerk](https://getmegabrain.com/ai-employees/data-entry-clerk)
- [AI bookkeeper](https://getmegabrain.com/ai-employees/bookkeeper)
- [AI accounts payable clerk](https://getmegabrain.com/ai-employees/accounts-payable-clerk)

## Works in

- [Microsoft Excel](https://getmegabrain.com/automate/microsoft-excel)
- [QuickBooks Online](https://getmegabrain.com/automate/quickbooks-online)

## Questions

### Can it convert scanned PDFs to Excel?

It reads text PDFs most reliably. With a scan it reads what is legible and marks the rows it could not read, so check those against the paper.

### Does it keep the table layout?

It rebuilds each table as clean columns rather than copying the page layout, so the sheet can be sorted, filtered and summed.

### Can it convert many PDFs at once?

Yes. Point it at a folder and it adds one row or one sheet per PDF, as you ask.

### Where do my files go?

They stay in your folder on your Mac. The content it reads goes to the AI model you pick for the task.

All tools: https://getmegabrain.com/tools · Download for Mac: https://getmegabrain.com/download · Plans: https://getmegabrain.com/pricing · Computer use: https://getmegabrain.com/computer-use
