Convert PDF to CSV

PDF to CSV reads a native-text PDF in this browser tab, groups the aligned text into rows and columns, and writes one CSV per detected table. Each CSV is parsed again and compared cell by cell before the download appears. A scan has no text layer and yields no table, and CSV holds values only, so formatting, merged cells and a second sheet do not carry over.

PDF to CSV

How to convert a PDF into a CSV file

  1. Choose the PDF

    Open PDF to CSV and drop the file on the page, or pick it. It is read in this browser tab and never uploaded.

  2. Pick the detected tables

    The tool lists every block of text it can align into rows and columns. Select one table for a single CSV, or several for a ZIP with one CSV per table.

  3. Choose cell safety

    Spreadsheet-safe mode puts an apostrophe before a cell that starts with =, +, - or @, so a spreadsheet does not run it as a formula. Exact-text mode leaves those characters alone.

  4. Check and download

    Each CSV is parsed again and compared cell by cell with the detected matrix. Read the source preview beside the cells, then download.

What the table detector needs from the PDF

A PDF stores words at coordinates on a page. It has no idea of a cell. PDF to CSV looks at the native text layer, finds words that line up in repeated rows and columns, and treats each aligned block as a table. That is an inference from position, not a read of a structure, so it works on the tables a PDF usually holds: an export from a database, an invoice line list, a price list, a statement, a report table with ruled lines or clear column gaps.

Three things defeat it. A scanned PDF has no text layer, only a picture of a table, and the detector has nothing to align. The tool refuses it instead of producing an empty file, and the fix is text recognition first. A table whose columns are separated by a single space, so that the gap inside a cell matches the gap between cells, splits in the wrong places. A page laid out in two text columns, as in a journal article, looks like a two-column table to a position-based detector and has to be deselected.

Merged cells are a milder problem. A heading that spans two columns lands in one of them, and the other is empty, because CSV has no way to say that a cell is wide. Rotated tables and forms with a box drawn around each single value are usually not detected at all.

How to convert PDF to CSV file by file

Drop the PDF on the page. The tool lists the tables it found, each with the page it sits on. Select the ones you want. One selection downloads as a single .csv. Several download as a ZIP holding one CSV per table, and the tool never joins unrelated tables into one file. A statement that runs over four pages therefore arrives as four CSVs, and you join them in the spreadsheet, where you can see the seam.

Then choose how cells are written. In spreadsheet-safe mode a cell that begins with =, +, - or @ gets a leading apostrophe, so that a CSV made from an untrusted PDF cannot run a formula when it is opened. In exact-text mode the cell is written as it was read, which is what you want when the values are negative numbers with a leading minus. Every cell that holds a comma, a quote or a line break is quoted, and a quote inside a value is doubled, which is the form every spreadsheet expects.

Everything happens in this browser tab: the PDF, the detected cells, the preview and the CSV. Nothing is uploaded, and there is no account.

What CSV cannot hold, and when Excel is the better output

CSV is values separated by commas. Bold, colour, borders, column width, number formats, merged cells, a second sheet: none of it survives, because there is nowhere to put it. That is a feature when the CSV is going into a database, a script or an import that wants plain values. It is a loss when the table is going back to a person.

PDF to Excel uses the same detector and writes a workbook instead, with each detected table on its own sheet, and reads the workbook back before the download. Choose it when the PDF holds several tables you want in one file, when the values should stay numbers, or when someone is going to open the result in Excel and read it. Convert PDF to Excel covers that route in full. Choose CSV when the next step is code, a database load, a mail merge or any tool that reads plain text.

How to check a PDF table to CSV result

The tool's own check proves one thing: that the CSV parses back into the same rows, columns and cell strings the detector produced. It cannot prove that the detector drew the column boundaries where the author of the PDF meant them. That part is yours, and it takes a minute.

  1. Count the rows. A statement page says how many transactions it holds, or you count them. The CSV, opened in a spreadsheet, must have that many rows plus a header. A short count means a row merged with its neighbour. A long one means a wrapped description split into two rows.
  2. Sum a column. Add the amount column and compare it with the total printed on the PDF. A match is strong evidence that every value landed in the right column with the right sign.
  3. Read the first and last row against the preview. The tool shows the source page beside the detected cells, and a column that shifted by one shows up there before it shows up in a spreadsheet.
  4. Look for cells that hold two values. A description that ran into the amount column reads as text where a number should be, and a spreadsheet sorts it to the wrong end.

Convert a bank statement PDF to Excel walks through the same checks on the most common case, a statement whose descriptions wrap to a second line. The rest of the spreadsheet and document guides are under PDF, Word and Excel help.

Questions people ask

Why does the tool find no table in my PDF?
The PDF has no text layer, or its text is not aligned into repeated rows. A scan needs text recognition first. A table with a single space between columns may need the columns widened in the source before export.
Can I get every table from a PDF in one CSV?
No. Each detected table becomes its own CSV, and several arrive as a ZIP. Join them in a spreadsheet, where you can see where one table ends and the next begins, or use PDF to Excel to get them as sheets of one workbook.
Why do some cells start with an apostrophe?
Spreadsheet-safe mode is on. A cell that begins with =, +, - or @ gets an apostrophe so a spreadsheet does not run it as a formula. Switch to exact-text mode when those characters are data, such as negative numbers.
Does the CSV keep the column widths and bold text?
No. CSV holds values and separators only. Widths, formats, colours and merged cells have nowhere to go. Use PDF to Excel when the layout matters.
What separator does the CSV use?
A comma, with each row ended by a carriage return and line feed. A cell that holds a comma, a quote or a line break is quoted. Excel in a locale whose list separator is a semicolon may open it in one column; use Data, From Text/CSV and pick the comma.
Does it convert a scanned PDF table to CSV?
Not in this version. A scan is a picture with no text layer, and the tool refuses it rather than writing an empty file. Run text recognition first, then convert the result.

Do it now

The tool runs in this browser. Your file never leaves the machine, and the result is checked before you download it.

PDF to CSV

Where to go next