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.
| Batch | Columns returned | Date format |
|---|---|---|
| Chat 1, files 1–10 | Vendor, Invoice number, Date, Total | 2026-03-14 |
| Chat 1, files 11–20 | Vendor, Invoice #, Date, Total amount, PO number | 2026-03-14 |
| Chat 2, files 21–30 | Supplier, Invoice number, Invoice date, Total | 14/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:
| ChatGPT | FilesToRows | |
|---|---|---|
| Files per run | Limited per message, varies by plan | Up to 500, each up to 10 MB |
| Columns | Re-stated in every prompt, can drift | Defined once, the same for every file |
| Source of each row | Only if you ask for it | File name column added automatically |
| Output | Tables in the chat, or one file per batch | One Excel or CSV file for the whole run |
| Scans and photos | Read with vision, quality varies | OCR runs automatically, quality depends on the scan |
| Reuse next month | Paste the prompt again | Saved column setup |
| File storage | Depends on your plan and settings | Deleted 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 name | Extraction prompt |
|---|---|
| Vendor | Company that issued the invoice, not the customer |
| Invoice number | Invoice number exactly as printed |
| Invoice date | Issue date in YYYY-MM-DD |
| Due date | Payment due date in YYYY-MM-DD; empty if not stated |
| Total | Total amount payable as a number, no currency symbol |
| Currency | Three-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.