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

PDF to CSV: Extract Table Data

RFC 4180 quoting · per page or combined · comma, semicolon or tab

Pull rows out of a PDF as CSV, entirely in your browser. Columns are inferred from where the text sits on the page. Take one CSV per PDF or one per page, with a comma, semicolon or tab between fields.

Drop PDF files here or click to select

One or many · CSV per file or per page

    no files
    Ready.

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

    What the CSV contains

    Every line of text on every page becomes a row, including titles, footers and page numbers, because a PDF does not mark where a table begins. A new field starts wherever the gap between two text runs exceeds the column gap setting times the font size, and never for gaps under 6 pt. Fields are snapped to shared column positions per page, so a table that runs over several pages can have a different field count on different pages.

    No header row is added and nothing is converted: CSV is text, so 007 stays 007. Rows end with CRLF. The file is UTF-8 without a byte-order mark; if Excel shows accented characters wrongly when you double-click it, import it through Data, From Text, or use PDF to Excel instead.

    With One CSV per PDF the pages are simply concatenated into name.csv, repeated headers included. With One CSV per page you get name-page-1.csv, name-page-2.csv and so on, each with its own Download link.

    Delimiters and quoting

    How to convert a PDF table to CSV

    1. Drop the PDF or PDFs into the box.
    2. Pick the output shape, one CSV per PDF or one per page, and the delimiter.
    3. Adjust the column gap if columns merge (lower it) or split (raise it). The range is 0.5 to 5; the default is 1.6.
    4. Click Convert to CSV. A Download link appears for each output file.
    5. Open the CSV and delete the rows that are page furniture rather than data.

    FAQ

    How are commas inside values handled?

    With the comma or semicolon delimiter, a field containing a comma, a double quote or a line break is quoted and inner quotes are doubled. With the tab delimiter nothing is quoted.

    Why do I get page numbers and headings as rows?

    They are text on the page like everything else, and nothing marks them as furniture. Delete those rows, or crop the page area first with Crop PDF and convert the cropped file.

    Can I choose which pages to extract?

    Not here; every page is converted. Pull the pages you want first with Extract pages, then convert that file. Or choose one CSV per page and keep only the files you need.

    My table has wrapped cells and the rows are misaligned.

    A cell that wraps onto two lines in the PDF is two lines of text, so it becomes two rows. There is no automatic fix; merge those rows in a spreadsheet or a script.

    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 file will not open; remove the password with Unlock PDF.

    Related tools

    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