Can ChatGPT Extract Data from PDFs into Excel? What Works and Where It Breaks

A ChatGPT prompt that reliably turns one PDF into a clean Excel row, why the same approach falls apart with 40 or 400 files, and how to keep the same AI extraction while getting one consistent sheet for the whole batch.

If you have a PDF and need its data in Excel, asking ChatGPT is a natural first move. Upload the file, ask for a table, and a few seconds later you have rows and columns. For one document, that often works well.

The trouble starts when one document becomes forty. This guide shows how to get the best result from ChatGPT for a single PDF, explains where the chat approach breaks down when you have a batch, and covers what to use instead. The same applies to Claude, Gemini, and Copilot chat: the limits come from working in a chat window, not from any one model.

Yes, ChatGPT can extract data from a PDF

ChatGPT can read an uploaded PDF, find the values you ask for, and return them as a table. With its file analysis tools it can also produce an Excel or CSV file to download. For a one-off job, such as pulling the totals out of a single statement or the key dates out of one contract, it's quick and costs nothing extra if you already use it.

The quality of the result depends almost entirely on the prompt. "Extract the data from this PDF" gives you whatever ChatGPT decides is important, in whatever shape it chooses. A precise prompt gives you a table you can paste straight into a spreadsheet.

A prompt that works for one PDF

Attach the file and use a prompt like this, adjusted to your document:

Extract the following fields from the attached invoice and return
a single-row table with exactly these columns, in this order:

Vendor | Invoice number | Invoice date | Due date | Net | VAT | Total | Currency

Rules:
- Dates as YYYY-MM-DD.
- Amounts as plain numbers, no currency symbols or thousands separators.
- Currency as a three-letter code (EUR, USD, GBP).
- "Vendor" is the company that issued the invoice, not the customer.
- If a value is not stated in the document, leave the cell empty.
  Do not guess or calculate missing values.
- Return only the table, no commentary.

Each part of the prompt does a job:

  • Fixed column names and order mean the row lines up with your spreadsheet when you paste it.
  • Formats for dates and numbers mean Excel treats them as dates and numbers, not text.
  • Naming the party stops it from returning your own company's name, which appears on every invoice too.
  • "Leave it empty" is the most important rule. Without it, a model asked for a due date will sometimes produce a plausible one even when the document doesn't state it.

Then check the output against the PDF. On a clean digital document it's usually right. On a faded scan, read every number.

Where it breaks down with many files

A prompt that works for one file doesn't scale to a folder. A batch causes problems that a single file never shows.

1. You can only upload so much at once

ChatGPT limits how many files you can attach to one message and how many you can upload over a period of time, and the limits depend on your plan. Forty invoices means several rounds of uploading, and a few hundred means a long afternoon. Each round is a chance to miss a file or upload one twice.

2. The columns drift

Run the same prompt in separate chats, or keep going in one long chat, and the output slowly changes shape. A column gets renamed from "Total" to "Total amount". Dates switch from 2026-03-14 to 14/03/2026. A new column appears because one invoice had a purchase order number. Each change is small, but together they mean you fix every batch by hand before it fits your sheet.

BatchColumns returnedDate format
Chat 1, files 1–10Vendor, Invoice number, Date, Total2026-03-14
Chat 1, files 11–20Vendor, Invoice #, Date, Total amount, PO number2026-03-14
Chat 2, files 21–30Supplier, Invoice number, Invoice date, Total14/03/2026

Illustrative example of the kind of drift you can see across chats. The exact changes vary from run to run.

3. Long chats lose detail

Every file you add takes up room in the conversation. As a chat grows, the model can pay less attention to rules you set at the start, skip a file, or merge two documents into one row. It rarely tells you when that happens. You find out when the row count doesn't match the file count, if you count.

4. You can't easily trace a row back to its file

When ChatGPT returns twenty rows from twenty uploads, nothing guarantees which row came from which file unless you ask for the file name in every prompt. Without that, checking a suspicious value means searching through the PDFs to find the one it came from.

5. The copying is still on you

Even when every batch is right, you still copy each table out of the chat, or download a separate file per batch, and stitch them into one sheet. The whole point was to stop copying by hand, and you're still doing some of it.

6. Check where your documents go

Invoices, contracts, and resumes contain other people's personal and financial data. Before uploading them to any chat tool, check your plan's data settings, including whether conversations can be used to train models and how long files are kept, and whether your company allows it.

When ChatGPT is the right tool

  • You have one to five documents and need the data once.
  • You want to ask questions about a document, not just pull fields out of it, such as "Does this contract allow early termination?"
  • You're still working out which fields you need. Chatting about one sample document is a good way to figure that out.

For a recurring job or anything over a few dozen files, a batch tool saves you the uploading, the drift, and the stitching.

The batch alternative: same AI idea, different workflow

FilesToRows also uses an AI model to read documents, so the extraction itself works the same way: you describe a value in plain language and the model finds it. The difference is everything around the extraction:

ChatGPTFilesToRows
Files per runLimited per message, varies by planUp to 500, each up to 10 MB
ColumnsRe-stated in every prompt, can driftDefined once, the same for every file
Source of each rowOnly if you ask for itFile name column added automatically
OutputTables in the chat, or one file per batchOne Excel or CSV file for the whole run
Scans and photosRead with vision, quality variesOCR runs automatically, quality depends on the scan
Reuse next monthPaste the prompt againSaved column setup
File storageDepends on your plan and settingsDeleted automatically within 24 hours

Each column has a name and an extraction prompt, written the same way as the rules in the ChatGPT prompt above. Instead of repeating them in every chat, you write them once and every file goes through the same columns:

Column nameExtraction prompt
VendorCompany that issued the invoice, not the customer
Invoice numberInvoice number exactly as printed
Invoice dateIssue date in YYYY-MM-DD
Due datePayment due date in YYYY-MM-DD; empty if not stated
TotalTotal amount payable as a number, no currency symbol
CurrencyThree-letter currency code

Upload the folder, with digital PDFs, scans, Word files, and phone photos mixed together, and download one sheet with one row per file. Sixty invoices take a few minutes, and next month's batch reuses the saved columns.

What it doesn't do

  • No conversation. It fills columns, it doesn't answer follow-up questions about a document. For that, a chat tool is the better fit.
  • One row per file. A PDF holding twelve invoices comes back as one row, so split combined files before uploading.
  • Not for long tables. Each cell holds one value. If you need every line item or transaction as its own row, use a table extraction tool for that part.
  • It still needs a review. Like any AI extraction, it's accurate on clean documents and less so on faded scans and handwriting. Sort the columns and spot-check before you rely on the sheet.

Use both: test in ChatGPT, run in batch

If you already use ChatGPT, it's a good place to design your columns. Upload two or three of your most different documents, try the prompt above, and adjust the rules until the output is what you want. Then copy each rule into a column prompt and run the whole folder through FilesToRows. You can try it without an account, and a free account adds 20 pages.

For walkthroughs of specific document types, see extracting data from multiple invoices into Excel, turning receipts into an expense sheet, and combining data from many different PDFs.

Frequently asked questions

Can ChatGPT convert a PDF to Excel?

Yes, for individual files. Upload the PDF, list the exact columns and formats you want, and ask for a table or a downloadable Excel file. Tell it to leave cells empty when a value is not stated, and check the result against the PDF, especially for scans.

Why does ChatGPT give different columns for different batches?

Each chat interprets the prompt again, and long chats can lose track of rules set at the start. Column names, date formats, and extra columns can change between batches, so results need cleaning before they combine into one sheet. A tool with fixed, saved columns avoids this.

How many PDFs can I upload to ChatGPT at once?

ChatGPT limits files per message and uploads over time, and the limits depend on your plan and change over time. For dozens or hundreds of files, a batch tool is faster: FilesToRows takes up to 500 files in one run, each up to 10 MB.

Does the same apply to Claude, Gemini, or Copilot?

Mostly, yes. The models differ, but the limits described here come from working in a chat window: upload limits, prompts restated per chat, and results copied out by hand.

Is FilesToRows built on ChatGPT?

No. FilesToRows is an independent tool and is not affiliated with OpenAI. It uses its own AI model to read documents and fill the columns you define.

How much does it cost?

Processing is billed per page: one page of a document uses one credit. You can try it without an account, and a free account adds 20 pages.