How to convert PDF to Excel
Copying a table out of a PDF usually gives you one long column of text. Converting the PDF to Excel puts each value in its own cell, so you can sort, add up and filter. This guide explains how the conversion works, when it gives good results and what to do when it does not.
What PDF to Excel does
A PDF does not contain a table. It contains letters and numbers placed at exact positions on a page, and the table is an illusion made by the spacing. To get cells back, a converter has to look at where each piece of text sits, decide which pieces belong on the same row and which line up in the same column, and write them into a spreadsheet.
That is what this tool does. It reads the text of each page, groups it into rows, splits every row into cells wherever there is a wide gap, aligns cells that start at about the same horizontal position into the same column, and saves the result as an .xlsx file. By default there is one sheet per page, and numbers are saved as real numbers.
- Price lists, statements and schedules with clear columns.
- Reports whose tables you want to sort or total.
- Data that was only ever published as a PDF.
- Quick extraction of figures for a spreadsheet model.
How to convert PDF to Excel, step by step
Open PDF to Excel. The conversion runs in your browser and nothing is uploaded.
- Drop your PDF into the box. Thumbnails of the pages appear.
- Choose which pages to convert, if you do not want all of them.
- Set Column detection and decide on the two checkboxes described below.
- Click Convert to Excel and download the .xlsx file.
- Open it and compare the totals and a few rows with the PDF.
Column detection
Column detection decides how big a gap between two pieces of text must be before they count as separate cells. Normal works for most documents. More columns splits at narrower gaps, which helps when columns sit close together, for example a description followed immediately by a code. Fewer columns only splits at wide gaps, which helps when a single cell holds several words with irregular spacing and keeps being cut into pieces.
If the first result is wrong, change this setting and convert again. It takes a few seconds, and it is usually the quickest way to fix a table whose columns are merged or whose words are split across several cells.
Numbers, leading zeros and one sheet
By default, values that look like numbers, including those with thousands separators such as 1,250.50, are stored as numbers so you can calculate with them. This is wrong for values that only look like numbers: phone numbers, postcodes, product codes and IDs with leading zeros. If you convert those, untick “Store numbers as numbers” and they stay as text.
The second option puts all selected pages on one sheet, one under the other. Use it for a table that continues over several pages. Leave it off if each page is a separate table, which then gets its own sheet named after the page.
Why scanned PDFs do not work
If a PDF is a scan, the pages are pictures and there is no text to read. The tool tells you so instead of producing an empty file. First run OCR PDF, which adds a text layer, and then convert the searchable PDF. Expect more mistakes than with a digital PDF, since OCR adds its own errors, and check every number.
A quick test is to try to select a word in the PDF with your mouse. If you can, the file has text. If you can only select the whole page, it is a picture.
What can go wrong
Tables drawn with lines but with very small gaps between the columns are hard to split. Cells that span several columns or rows, and cells holding several lines of text, may shift values into neighbouring columns or rows. Headers that sit above two columns may land in just one. Footnotes and page numbers appear as extra rows.
None of this is dangerous as long as you check. Compare the totals with the PDF, sort a column and look for odd values, and delete the rows you do not need. Formatting such as colours, borders, fonts and formulas is not recreated, you get plain cells.
Other directions
To go from a spreadsheet to a PDF, use Excel to PDF or CSV to PDF. If you want the whole document as editable text, use PDF to Word. To pick only the pages that hold the table before converting, use Split PDF. Your file stays on your device throughout, which is important for financial data.