How the row and column detection works
For every page, the converter takes the positioned text items from PDF.js and:
- Builds lines — items whose vertical positions sit on the same baseline are merged into one line, ordered left to right.
- Finds columns — the horizontal start positions of items are collected across the page; positions that recur (within a small tolerance) become column anchors.
- Fills the grid — each line's items are dropped into the column they start in; items between anchors join the cell they belong to.
- Writes the workbook — SheetJS turns the grid into .xlsx cells, one sheet per page by default.
Because detection is geometric, a table whose columns are consistently aligned converts cleanly, while free-flowing paragraphs come out as one wide column of lines — which is honest, because that is what the page actually contains.
Honest limits
- Born-digital PDFs only. Scanned pages have no text layer — the converter will find nothing. OCR them first with OCR PDF.
- No merged cells, formulas or formatting. The PDF never contained them as data, so they cannot be recreated. Numbers arrive as values or text as stored.
- Wrapped text can split oddly. A cell whose text wraps over two lines in the PDF may land as two rows.
- Loose alignment confuses columns. If the source document's columns drift (common in cheap PDF exports), some values may land one column off — the preview shows page 1 so you can check.
- Multi-table pages merge into one grid per page in this converter. To pull tables out individually, use Extract Tables from PDF.
Checking the result like an accountant
Two minutes of checking saves hours of wrong figures:
- Compare the totals. If the PDF prints a total row, sum the extracted column in Excel and compare — a mismatch means a row landed oddly.
- Watch for text-numbers. Values with currency symbols or thousands separators may arrive as text; Excel will warn with a green triangle — convert them before calculating.
- Check the first and last rows of each sheet against the PDF — headers and footers are where drift shows up.
- Look for the missing minus. Negative amounts in brackets, (1,234), are an accounting convention some PDFs use — they import as text, not negatives.
What you get: workbook structure
| Option | Sheets | Best for |
|---|---|---|
| One sheet per page (default) | "Page 1", "Page 2", … | Statements and reports where pages are separate tables |
| Combine all pages | One "All Pages" sheet, blank row between pages | One long table split across pages — delete the blank rows and go |
Cell values are written as text exactly as positioned in the PDF; Excel will interpret plain numbers as numbers when you open the file.
Common uses
- Bank and card statements — turning monthly PDFs into a budget spreadsheet.
- Invoices and price lists — reusing figures without retyping them.
- Reports and research tables — getting published data into a sheet for analysis.
- Supplier catalogues — extracting part numbers and prices.
- Timetables and rosters — schedules published as PDFs, needed as data.
This tool vs Extract Tables vs PDF to CSV
| Tool | Output | Choose it when |
|---|---|---|
| PDF to Excel (this page) | .xlsx — every page as a grid | You want the whole document as a workbook |
| Extract Tables from PDF | Detected tables only — CSV/XLSX | Pages mix prose and tables and you want just the tables |
| PDF to CSV | One .csv of detected tables | You are importing into a database or another app |
Privacy: nothing is uploaded
Financial PDFs are sensitive, so this converter reads them entirely in your browser — PDF.js extracts positions locally and SheetJS builds the workbook locally. Your statements never touch a server, and no copy is kept anywhere.
Troubleshooting
- The workbook is empty — the PDF is almost certainly a scan with no text layer. Run it through OCR PDF first.
- Everything is in one column — the page is prose, or its columns are not consistently aligned. Try Extract Tables from PDF, which looks for table-shaped blocks specifically.
- A column is shifted — the source's alignment drifts. It is usually one page's quirk; fix that sheet by hand after checking against the PDF.
- Numbers will not sum — they imported as text (often because of currency symbols or spaces). Use Excel's Convert to Number on the column.
- Protected PDF — remove the password first if the file is yours, then convert the unlocked copy.