Docling OCRIndependent Docling guide

PDF → Excel

PDF to Excel Without Rebuilding the Table by Hand

Most PDF converters hand you a wall of text in one column and a free afternoon of cleanup. This one reads the table structure first — headers, merged cells, negative numbers, multi-page continuations — and hands you cells you can actually calculate with.

Inspect a PDF or the recorded sample

The browser viewer reads selectable PDF text. The NASA example also includes recorded Docling files.

Open the PDF viewer

What usually goes wrong with PDF → Excel

Everything lands in column A

Text-based converters copy the reading order, not the grid. A 12-column financial table becomes 400 rows of one cell each.

Numbers become text

A figure imported as "1,450.00" looks right until SUM() returns zero, because Excel treats it as a label — not a number.

Negatives lose their meaning

Accounting parentheses like (2,300) arrive as plain text, flipping expenses into income during reconciliation.

Multi-page tables split in three

A table that continues onto the next page comes back as three fragments, each with its own header row inserted mid-data.

Scanned PDFs return nothing

If the page is an image, a text extractor returns an empty file — no error, just blank output.

Column headers drift one cell right

One missing value shifts the entire row, and now every number sits under the wrong year.

Why PDFs fight back

A PDF does not store a table. It stores glyphs at x/y coordinates — the lines you see as a grid are often drawn as separate paths, or not drawn at all. Two columns of numbers are just text placed 90 points apart.

That is why "export to Excel" features in PDF readers produce garbage: there is no structure to export. Recovering the table means predicting structure from geometry, which is a layout-understanding problem, not a file-conversion problem.

The same document may also mix real text and scanned images. Page 3 might be a faxed signature page, page 4 a digitally generated statement. A usable converter has to OCR the images and parse the text pages, then stitch them back into one continuous table.

What a clean conversion has to preserve

  • Cell boundaries — including borderless tables where only alignment separates columns.
  • Header hierarchy — two-row headers, unit rows ("$ in thousands"), and sub-totals stay attached to their groups.
  • Data types — negatives, percentages, dates, and currency stay numeric so formulas keep working.
  • Row integrity — a blank cell never causes the rest of the row to slide left.
  • Page joins — a statement that runs five pages returns as one sheet, not five stitched-by-hand chunks.

The workflow

1

Run the Docling pipeline

Use Docling in Python or CLI. Scanned pages and digital text pages are processed in the same unified pass without splitting the document beforehand.

2

Check the preview against the source

The parsed table is shown next to the original page. Spot a merged header you do not want, fix it before export.

3

Copy for Excel (TSV) or download

Paste directly into Excel or Google Sheets and every value lands in its own cell with signs and decimals intact. CSV is there if you need to script the rest.

When the PDF is not a neat table

Invoices, receipts, and statements often have a line-item block plus totals scattered in the corners. Rather than guessing, convert page by page and keep the page number as a key column — you can always trace an odd value back to the source.

For very large documents, split by chapter or period first. A 400-page annual report rarely needs to be one spreadsheet; it needs the three tables you are actually going to use.

Frequently asked questions

Is there a free PDF to Excel converter that does not wreck the layout?+

IBM's Docling is 100% open source under the MIT License with no paywalls or user tracking. Tables are processed using TableFormer layout models so merged headers and columns remain intact.

Does it work on scanned PDFs?+

Yes. Image-only pages are OCRed first, then the table structure is recovered from the recognized layout. Quality depends on scan resolution — 200 DPI or better, straight pages, no heavy skew.

Can I convert a password-protected PDF?+

Remove the password first (or upload a copy saved without encryption). Converters cannot read an encrypted stream without the key.

Will formulas carry over?+

No — formulas live in the PDF only as their computed values. You get values; formulas have to be rebuilt in your workbook.

How do I get the result into Google Sheets?+

Copy the table and paste into a sheet, or export CSV and import it. Both keep numeric columns numeric.

Keep reading