Asking a chatbot to turn a PDF table into a spreadsheet feels like magic the first time it works. You upload a file, you get rows and columns back, and you paste them into Excel or Google Sheets. The risk is that the result looks just as tidy when it is wrong. A single changed digit, a dropped row or a value in the wrong column will not announce itself.
This guide covers three things: how to prompt ChatGPT, Gemini and Claude so the output is easy to check, what to think about before uploading a private document, and a practical checklist for verifying the numbers. We did not run our own accuracy tests, and we do not claim any model is more accurate than another. Where we mention test results, they come from other people's published work and are credited to them.
Can ChatGPT, Gemini and Claude read tables in a PDF?
Yes, with differences in how the vendors describe it, and those descriptions change. These are the statements in the official documentation we checked on December 5, 2026:
- Gemini. Google's Gemini API documentation says the models process PDFs and other documents and understand visual and structural context, including tables, across up to 1,000 PDF pages. It lists 50 MB per file and says to avoid blurry scans and low-contrast pages and to rotate pages to the correct orientation before uploading.
- Claude. Anthropic's help page says chat uploads can be up to 1,000 pages, that Claude analyzes both text and visual elements in PDFs of 100 pages or fewer, and that for PDFs of 101 to 1,000 pages it processes text only and does not analyze visual elements. Its developer documentation says PDF support relies on vision capabilities, that dense PDFs with complex tables can fill the context window before the page limit, and recommends splitting the document into sections.
- ChatGPT. OpenAI's help page says ChatGPT can analyze both text and images in PDFs, including charts and diagrams, and notes that PDFs saved as project files or GPT knowledge are handled differently, so embedded images may not be included automatically. It lists a 512 MB size limit for documents and a cap of 2 million tokens per text document.
The practical lesson is that "the model can read PDFs" is not the same as "this table will be extracted correctly." Those limits are for whole files. A dense, multi-page table with merged cells is harder than a clean one-page table, and the vendor limits do not tell you how accurate the output will be.
A note on sources: you will find different page and size numbers on third-party blogs. Where they differ from the vendor pages above, trust the vendor page for your own plan, because limits vary by product, plan and date.
What prompt works best for extracting a table?
A good prompt names the columns, forbids guessing, and asks for an output that is easy to check. Here is a prompt template you can adapt. It is written for this guide, so replace the bracketed parts.
Extract the table on pages [3-4] of the attached PDF.
Output rules:
- Return CSV only, inside one code block.
- Use exactly these columns, in this order: [Date, Description, Amount, Balance].
- Copy every value exactly as printed. Do not round, correct, reformat or calculate anything.
- Keep minus signs, parentheses, currency symbols, commas and decimal points as printed.
- If a cell is blank in the PDF, leave it blank. If a character is unreadable, write [UNREADABLE] in that cell.
- Include one extra column called Page with the PDF page number for each row.
- Do not include any row that is not part of the table, and do not summarise.
After the code block, tell me: the number of data rows you extracted, and the printed total for each numeric column if the PDF shows one.
Why each part is there:
- Fixed columns stop the model from renaming or merging headers from one run to the next.
- "Copy exactly" reduces the chance of it tidying numbers it thinks look odd.
- A Page column helps you find any row you need to check against the source.
- Asking for the printed total means you get the figure from the document and not a fresh calculation. You will calculate the totals yourself in the next step.
- An explicit unreadable marker is better than a plausible guess.
If a table runs over several pages, ask for one page range at a time and paste the results into one sheet. If the headers repeat on every page, tell the model to skip repeated headers. Long tables are harder for the models (Anthropic's documentation suggests splitting dense documents into sections), so check the last rows and the page boundaries first.
What mistakes should you expect from an AI extraction?
Other people have tested this, and their results are a useful warning. A DEV Community post published on October 28, 2026, whose author says it was first published on AISparkHub, describes a test of ChatGPT, Gemini and Claude on three scanned documents: a retail receipt, a financial statement and a two-page Census table. The authors scored cells against the source and reported scores between 9.33/10 and 10/10. They also reported that high scores still hid substantive mistakes, including:
- Two loan values omitted from a financial statement
- A balance of -258,274,249 returned as -238,274,249
- Decimals changed in the Census table, for example 0.2 returned as 2 and 6.4 returned as 64.4
- Disclosure codes such as (D) and (NA) substituted or changed
- A missing apostrophe in a product name on a receipt
Please read these as one test by one team, on three documents, with their own scoring method. It is not our result and it does not rank the models for your documents. What it does show is the kind of error to look for: dropped values, shifted decimals, wrong signs and changed codes. None of those makes a table look broken.
The Parsio guide on extracting data with ChatGPT, written by a company that sells a document-parsing product, makes a similar point in plain terms: the result is still a model's reading of the document, so treat it as a fast first pass that you verify. That source has a commercial interest, but the advice is consistent with the test above.
How do you check the numbers in a spreadsheet?
Paste the CSV into Excel or Google Sheets, and then run these checks in order. They take a few minutes and catch most of the errors above. Assume the extracted data is in columns A to D, rows 2 to 101, with column C as Amount.
- Row count. Count the rows in your sheet and compare the number with the source. Use
=COUNTA(A2:A101). If the PDF prints a transaction count or you can count lines on the page, compare. If the model told you how many rows it extracted, check that too. A missing row is the quietest error. - Totals. Calculate each numeric column yourself with
=SUM(C2:C101)and compare with the total printed in the PDF. If they do not match, the difference tells you where to look. A difference of exactly 10, 100 or 1,000 often points to a shifted digit or decimal. - Running balance. For a statement with a balance column, check that each row follows from the one above. If the Balance is in column D, in row 3 use
=ROUND(D2+C3-D3,2)and fill down. Every result should be 0. A non-zero result marks the exact row where something changed. This assumes your amounts are signed (money out is negative), so adjust the formula if the PDF shows money in and money out in separate columns. - Numbers stored as text. Count cells that are not numbers with
=SUMPRODUCT(--NOT(ISNUMBER(C2:C101))). It should be 0 for a numeric column. Text values often come from stray symbols, spaces or the wrong decimal separator. - Blanks.
=COUNTBLANK(A2:D101)shows how many cells are empty. Compare with the number of blank cells you expect. - Duplicates. Look for rows that appear twice, which can happen at page boundaries. Use conditional formatting for duplicate values or a helper column such as
=COUNTIFS(A$2:A$101,A2,C$2:C$101,C2)and look for values above 1. Real duplicates exist (two identical payments), so check them against the page before deleting. - Random spot checks. Pick at least five rows, including the first and last row of each page, and compare every cell with the PDF. To choose rows at random, use
=RANDBETWEEN(2,101). Spot checks catch a wrong digit that totals would not, if two errors cancel out. - Second pass. For important documents, run the extraction twice, in two different tools or in two new chats, and compare the two CSV files cell by cell. Where they differ, check the page. Matching does not prove either is right, but a mismatch tells you where to look. This is a verification method we suggest, not a tested result.
Regional settings can cause errors too. A value printed as 1.234,50 in a European PDF is 1234.50 in an English-language spreadsheet, and a pasted value may be read as text or as the wrong number. Negative numbers shown as (1,234.00) may become text. Dates such as 03/04/2026 can be read as March 4 or April 3 depending on your locale. Fix the format after verifying the digits, not before.
Is it safe to upload a bank statement, payslip or contract?
Not by default. A PDF often contains more than the table: names, addresses, account numbers and employer details. Before uploading, think about whether you need to send the whole file.
The vendors' own pages say different things for different plans, and they change:
- ChatGPT. OpenAI's data controls page says that on personal ChatGPT Free, Plus and Pro, data sharing for model improvement is enabled by default and you can turn it off under Data controls. By default OpenAI does not use content from ChatGPT Business, Enterprise, Edu or Healthcare workspaces to train its models. Temporary chats are not used to improve models and may be retained for up to 30 days for safety purposes.
- Gemini. Google's Gemini Apps Privacy Hub says human reviewers, including trained reviewers from service providers, review some data, and asks you not to enter confidential information you would not want a reviewer to see or Google to use to improve its services. It says temporary chats are not used to train Google's models, and that chats reviewed by human reviewers are not deleted when you delete your history and are retained for up to three years.
- Claude. Anthropic's privacy center says that on consumer plans (Free, Pro and Max), chats may be used to improve its models if you allow it, if conversations are flagged for safety review, or if you opt in to training programs. Incognito chats are not used to improve Claude. Business and API products are covered by separate terms.
These summaries are not complete, and the policies are revised often. Read the current page for the plan you are actually using.
A short privacy checklist:
- Remove what you do not need. Crop to the pages with the table, or black out names, addresses and account numbers before uploading.
- Check the data setting on your account first. If you do not understand it, do not upload the document.
- Use a temporary or incognito chat if one is available, and delete the chat and any saved copy afterwards.
- Use a work or business account only if your employer's policy allows it, and never upload other people's personal data without permission.
- Consider whether copying and pasting the table, or doing the conversion on your own computer, would be enough. For a text-based PDF, a local tool can avoid uploading the file at all. The PDF Table to Excel tool on this site works in the browser on text PDFs only (no OCR), so check its page for its limits and current status.
Privacy is not only about the vendor. A downloaded CSV in your Downloads folder is also a copy of the data, so clean up after yourself.
When is an AI assistant the wrong tool for the job?
Use another route, or add more checks, when:
- The numbers carry real consequences, such as tax figures, invoices, legal documents or financial statements. Use the AI output as a draft and verify every figure that matters.
- The document is long. Dense multi-page tables can exceed context limits, and Anthropic's documentation itself suggests splitting. Process page ranges and check the boundaries between them.
- The scan is poor. Blurry, skewed or low-contrast pages are where errors concentrate. Rescan if you can.
- You need the same result every time. The Parsio guide notes that the same document can come back with different field names or formats from one run to the next. A fixed-rule tool or a copy-and-paste from a text PDF is more repeatable.
- The document is confidential. If you cannot remove the sensitive parts, do not upload it.
If your PDF has real selectable text, plain copy and paste into a spreadsheet, or Excel's own import, is often enough and avoids the verification problem for the most part. If you work with tables on web pages instead, see how to export an HTML table to Excel or CSV and how to copy a table from a website to Google Sheets.
Sources and further reading
All pages were checked on December 5, 2026. Vendor limits and privacy terms change, so check the current page for your plan.
- Google, Document understanding, Gemini API
- Google, Gemini Apps Privacy Hub
- Anthropic, Upload files to Claude (Help Center)
- Anthropic, PDF support (developer documentation)
- Anthropic, Is my data used for model training?
- OpenAI, Uploading files and audio to ChatGPT
- OpenAI, Data controls in ChatGPT
- DEV Community, AI PDF to Excel: We Tested ChatGPT, Gemini, and Claude on Scanned Tables (October 28, 2026; third-party test, not ours)
- Parsio, How to Extract Data from PDFs Using ChatGPT (2026 Guide) (vendor guide, October 2026)