Skip to main content

PDF to CSV

Extract the tables in a PDF into a CSV file to open in Excel, LibreOffice or Google Sheets. Processed locally in your browser, without uploading the document.

  • Export
Automate

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Your files are processed locally in your browser and are never sent to our servers.

Select the pages containing tables to convert to CSV. All pages are selected by default.

Drop your file here

Recommended size: up to 100 MB

Was this tool useful?

On this page

How does this tool work?

PDF to CSV extracts the tables in a PDF so you can open them in a spreadsheet: a bank statement, a price list, a stock report, results exported by software that only offers PDF. Only tables are converted, row by row and column by column, into a text file that Excel, LibreOffice Calc or Google Sheets can read. The analysis happens in your browser, without uploading the document.

The text of each selected page is read together with its position. Fragments aligned horizontally form rows; when several consecutive rows contain at least two fragments that regularly start at the same horizontal positions (within 8 points), the tool treats them as columns.

A block only counts as a table if it has between 2 and 24 columns, at least two rows with two filled cells, and at least 62% non-empty cells. This safeguard stops a plain paragraph from turning into a meaningless table. If no reliable table is found, a message says so.

The CSV uses a comma as separator. A cell containing a comma or a quotation mark is wrapped in quotes, which protects amounts written with a decimal comma (1,20 €). When several tables are detected, they follow one another in the same file, separated by a blank line.

How to use this tool

  1. Import the PDF

    Every page is selected by default in the thumbnail grid.

  2. Keep the pages that hold the tables

    Deselect text or cover pages for a cleaner file.

  3. Download the CSV

    The document.csv file opens in a spreadsheet or imports into a database.

Use cases

Analyse a bank statement

Pull the transactions from a PDF statement to sort, filter or total them.

Reuse a price grid

Turn a supplier price list into comparable data in a spreadsheet.

Work with a frozen export

Reuse a stock report or results table that some software can only export as PDF.

Examples

A price table

The amounts contain a decimal comma, so they are quoted to avoid being split into two columns. The page title and paragraphs are not part of the CSV.

Input

Three-column table Product / Price / Quantity, with the rows Pen · 1,20 € · 10 and Notebook · 3,50 € · 4

Result

Product,Price,Quantity
Pen,"1,20 €",10
Notebook,"3,50 €",4

Tips and best practices

  • In Excel, open the file via Data › From Text/CSV and choose UTF-8 encoding with a comma separator, otherwise accents or columns may be misread.
  • Check amounts after import: a spreadsheet may read “3,50 €” as text; replacing the € sign is often enough.
  • If a table is not recognised, PDF to Markdown or PDF to HTML at least let you recover its text.

Frequently asked questions

Why is no table found?

The PDF’s columns are not regular or full enough to be recognised with confidence, or the document is a scan without text. The tool would rather stop than produce a wrong table.

Do scanned PDFs work?

Not directly: a scan contains no text. Run it through OCR PDF first; the result will then depend on the quality of the recognition.

Which separator is used?

The comma, in line with the standard CSV format. Cells that themselves contain a comma or a quotation mark are wrapped in quotes.

Are merged cells handled?

Not precisely: each text fragment is attached to the nearest column. A cell merged across several columns may end up in just one of them.

What happens to several tables across several pages?

They all go into the same file, in page order, separated by a blank line. A table that continues on the next page therefore appears as two blocks.

Are my figures sent online?

No. Reading the PDF and creating the CSV happen in your browser, which suits statements and financial documents.

Related tools

Tools similar or complementary to this one.

Alternatives

Extract PDF tables into an XLSX workbook, with a separate sheet for each detected table and local processing.

PDF & documentsUse this tool

Works well with

Extract selectable text from a PDF and convert it to Markdown locally, without OCR or uploading the document.

PDF & documentsUse this tool

Convert the text of a PDF into a structured HTML page with headings, paragraphs and tables.

PDF & documentsUse this tool

Turn the text of a PDF into structured XML (pages, headings, paragraphs, tables), ready for automated processing.

PDF & documentsUse this tool
GuideBest practicesBeginner

PDF: understand the format and manage documents properly

Understand how PDF files are structured, the difference between native and scanned PDFs, and the right operations for merging, reorganizing, converting or completing documents.

29 August 20263 min