pdftoolskit.org
65 PDF tools that run in your browser
Sign in Create account

PDF to Excel: Extract Tables to .xlsx

real .xlsx · columns from text positions · one sheet per page

Drop a PDF with tables and get an .xlsx workbook, built in your browser with no upload. Columns are detected from where the text sits on the page, each page becomes a sheet (or everything lands on one), and plain figures are stored as numbers.

Drop PDF files here or click to select

One or many · an .xlsx per file

    no files
    Ready.

    No PDF handy? Try sample-10-pages.pdf. More free sample files.

    What ends up in the workbook

    Every line of text on every page becomes a row, not only the table. Titles, paragraphs, footers and page numbers arrive as rows too, because a PDF does not mark where a table starts. Expect to delete those rows, or narrow the file first with Extract pages or Crop PDF.

    Within a line, a new cell starts wherever the horizontal gap between two text runs exceeds the column gap setting multiplied by the font size, and never for gaps under 6 pt. Cells are then snapped to shared column positions, within 14 pt, so rows line up when a cell is empty. Those positions are worked out per page, so a table that runs across pages can have a different number of columns on each page.

    A cell that is only digits, with an optional minus sign, decimal point or exponent, is written as a number, so SUM works at once. That also means 007 becomes 7 and 1e5 becomes 100000. Anything else, including 1,234.56, $40 and 12%, is written as text. The first row of each sheet is bold. No formulas, number formats or column widths are written.

    With One sheet per page, sheets are named Page 1, Page 2 and so on. With Everything on one sheet, the single sheet is called All pages and consecutive pages are separated by one empty row.

    Tuning the column gap

    How to convert a PDF to Excel

    1. Drop the PDF or PDFs. Each file becomes its own .xlsx, named like the PDF.
    2. Choose the sheet layout. One sheet per page keeps pages apart; everything on one sheet suits a single table that continues over several pages.
    3. Adjust the column gap if you already know the columns merge or split. Otherwise leave 1.6 and check the result.
    4. Click Convert to Excel. A Download link appears for each file once its pages have been read.
    5. Open the workbook, delete the rows that are not table data, and check whether figures with separators or currency signs need converting to numbers.

    FAQ

    Is this a real Excel file?

    Yes, a SpreadsheetML package with workbook.xml, one worksheet part per sheet and a small styles part, zipped in the page. It is the format Excel, LibreOffice Calc and Google Sheets read, not a renamed CSV.

    Why do I get rows that are not from the table?

    The tool has no notion of a table. It converts every text line on the page, so headings, footers and paragraphs become rows. Delete them afterwards, or extract only the table pages first.

    Do numbers come through as numbers?

    Only cells made of digits, an optional minus sign, a decimal point or an exponent. Leading zeros are lost in the process. Values with thousands separators, currency or percent signs stay text; convert them in Excel with Text to Columns or VALUE.

    Why do the columns differ from page to page?

    Column positions are computed for each page separately. A page where one column is empty, or where a footer sits at an odd position, gets a different grid. Check the join when you put everything on one sheet.

    What about scanned or password-protected PDFs?

    A scan has no text layer, so the batch stops with "No text rows found" at that file. Run OCR PDF first. A password-protected PDF will not open; remove the password with Unlock PDF.

    Related tools

    Part of: Get the text out of a PDF and edit it

    Check for a text layer first. Converters read text, not pixels, so a scan has to go through OCR before any of them will find a word.

    1. 1 PDF Word Count Zero words means there is no text layer
    2. 2 PDF OCR Add one, if it is a scan
    3. 3 PDF to Word Converter Paragraphs and headings as an editable .docx
    4. 4 PDF to Excel Converter Tables as a real workbook, columns detected from the gaps
    5. 5 PDF to Markdown Converter Headings and lists for a wiki or a README

    This workflow, start to finish · all 20 workflows

    Part of: Pull a table out of a PDF into a spreadsheet

    Excel and CSV use the same column detection; try Excel first because it keeps pages as sheets. Positioned HTML is the fallback when columns will not separate.

    1. 1 PDF OCR Only if the statement is a scan with no text layer
    2. 2 PDF to Excel Converter Every page as a sheet in one .xlsx
    3. 3 PDF to CSV Converter The same rows as plain CSV for a script or a database
    4. 4 PDF to HTML Converter Absolutely positioned spans when the column gaps are too irregular

    This workflow, start to finish · all 20 workflows