What to do when a file is too large for ChatGPT
The two limits an AI chat sets, a measured example, and the steps to cut a PDF, Word, Excel or CSV file down to a size it can read.
By OpenAnyDoc ·
The short answer
If a file is too large for ChatGPT, Claude or Gemini, send less of it: keep only the pages, sheets or rows your question needs, split the rest into parts, and paste each part as compact text. First check which limit you hit, because the upload size limit and the chat's token limit are fixed in different ways. OpenAnyDoc's Token counter measures the file and its split and convert tools cut it down, all in your browser without uploading it.
Two different limits
An AI chat can refuse a file for two separate reasons. The first is the upload limit: the size in megabytes, the number of files or the number of pages the service accepts. The second is the context window: how much text, counted in tokens, the model can read at one time. A file can pass the first and still overflow the second.
This is what each service's own help page says (checked 24 November 2026):
- ChatGPT: documents up to 512 MB per file, text and document files capped at 2 million tokens per file, and CSV files and spreadsheets about 50 MB, depending on the size of each row. Source: ChatGPT's help page on uploading files.
- Claude: in a chat, 500 MB per file, up to 20 files, and PDFs up to 1,000 pages; for a PDF of more than 100 pages it reads the text only. Additional token limits may apply based on the length of the extracted text. Source: Claude's help page on uploads.
- Gemini: up to 10 files in one prompt and 100 MB per file other than video. Its help page explains that with a context window of 1 million tokens Gemini can read up to 1,500 pages of text, and that going past the window can lead to answers that miss part of the content. Source: Gemini Apps Help.
- Limits change with the plan and the model, and the help pages change too; check them before you rely on a number.
A 1 MB file can still be too long
Megabytes say little about tokens. We made a synthetic CSV of 20,000 orders with 7 columns (order number, date, region, product code, quantity, unit price, total) and counted it with the same counter the site uses:
So the file is far below every upload limit above, yet its text alone would fill more than half of a 1-million-token context window before any question or answer. Other models count tokens their own way, so for them these numbers are estimates. Why tables, Arabic and the model change the count is explained in how many tokens a PDF uses.
- The whole file: 1.02 MB and 590,807 tokens, about 29.5 tokens per row.
- The first 1,000 rows: 29,541 tokens. The first 5,000 rows: 147,670 tokens.
- The same 1,000 rows as indented JSON: 70,529 tokens, more than twice the CSV.
- The same 1,000 rows as a Markdown table: 34,559 tokens; as TOON: 30,545 tokens.
Measure the file first
Token counter reads the file on your device and shows the tokens, words and characters of the text you would paste:
- Open Token counter and drop the file, or paste text. It reads PDF, Word, PowerPoint, Excel, CSV, JSON, TXT and Markdown files.
- Compare the count with the limit of the chat you use, and leave room for your question and the answer.
- Delete what you do not need in the text box; the count updates as you edit.
- If a PDF counts 0 tokens, it is a scan with no text in it. Run OCR PDF first.
Keep only what the question needs
The surest fix is to send less. Pick the tool for your file type:
- PDF: Extract PDF pages saves only the pages you click as a new PDF, such as the one chapter or the three tables you are asking about.
- A long PDF you need in full: Split PDF cuts it by page ranges, every few pages, or one file per page.
- Word: Split Word cuts a .docx at its Heading 1 or Heading 2 titles, or at page breaks, so each part is a whole section.
- Excel: Split Excel makes one file per sheet, one file every N rows, or one file per value of a column, such as one file per region.
- CSV: Split CSV cuts the file by rows per file or by megabytes per file, with the header row in every part. Filter rows or hide columns first, and the parts hold only those.
Make the text smaller
The same content can cost very different numbers of tokens depending on its form, and pasting text lets you see exactly what the chat gets:
- PDF: PDF to Markdown turns the pages into text with headings, lists and tables marked, so you can read what the chat will read and trim it. Giving ChatGPT a PDF without losing the tables covers the tables.
- Spreadsheets: paste CSV rather than JSON; in the test above it took less than half the tokens. Giving an AI chat a spreadsheet compares CSV with Markdown tables.
- JSON records: JSON to TOON writes the same list of records with the field names once at the top, and shows the token count before and after. Deeply nested data saves little.
- Columns nobody asked about cost tokens on every row; remove them before you paste.
Paste it in parts
When everything is needed, send it in parts in one conversation. Start with a short message such as "I will send a report in 4 parts. Reply only OK until I send part 4, then answer my question." Label each part ("Part 2 of 4: pages 11 to 20"), keep each one well inside the limit, and ask your question after the last part.
All the parts sit in the same context window, so splitting does not add room: if the total is too large, the chat may miss details from the early parts. For a question about one section, a new chat with only that section works better. Before you paste, Mask data can replace names, email addresses and other personal data in a CSV, JSON, Excel or text file on your device.
Why did the chat ignore part of my file?
The chat probably read more than its context window holds. When a file is longer than the window, a service may answer from only part of it or miss details spread through it, and Gemini's help page says so directly. Count the text first, send only the pages or rows the question needs, and ask again in a new chat.
How many rows of a spreadsheet can I paste at once?
It depends on the number of columns and the length of the values, so count a sample rather than guess. In our test, a 7-column order table took about 29.5 tokens per row. Divide the room you have by your own tokens per row, then set Split CSV or Split Excel to that many rows per file.
Does counting or splitting the file upload it anywhere?
No, the file is read and split in your browser, and nothing is sent to a server or to an AI service. The only thing that reaches the chat is the text you paste yourself. You can check for yourself that nothing is uploaded by watching the network panel while a tool runs.
Questions?
Write to support@openanydoc.com and say which kind of file and which chat you are working with (no personal data).