Will ChatGPT read a Markdown, CSV or XML file?
We asked ChatGPT and Claude to read the same code word in five kinds of file. Claude read all of them. ChatGPT read Markdown, plain text and JSON, and turned down CSV and XML after it had downloaded them.
Hi, I'm Kei. I run glasp.co. Every week I show one thing our own analytics and server logs say about AI search, what it does and does not prove, and how you can check the same thing on your site.
The question
A lot of advice for AI search says: offer a plain copy of your content. An llms.txt file, Markdown versions of pages, data as CSV or JSON. That advice assumes an assistant will read those files. Does it?
How we tested it
We put a code word that exists nowhere else into five small files, one per type: Markdown (.md), plain text (.txt), JSON (.json), CSV (.csv) and XML (.xml). The server sent each with the usual type for its extension, for example text/markdown, text/csv and application/xml. Three sets per assistant, a different code word in every file.
We asked each assistant in a new chat: "Please open this URL and tell me the code word written on the page." One file per ask, on November 30, 2026, in the web apps: ChatGPT on a free account in temporary chats, Claude in incognito chats. Our server log shows each fetch and the answer our server gave.
What happened
| File type | ChatGPT | Claude |
|---|---|---|
| Markdown (.md) | read, 2 of 2 | read, 3 of 3 |
| Plain text (.txt) | read, 2 of 2 | read, 3 of 3 |
| JSON (.json) | read, 3 of 3 | read, 3 of 3 |
| CSV (.csv) | refused, 2 of 2 | read, 3 of 3 |
| XML (.xml) | refused, 2 of 2 | read, 3 of 3 |
ChatGPT's answers for four files in one set were lost when our browser automation stopped responding, so its column counts 11 asks, not 15. The log shows those four files fetched normally.
ChatGPT refused by file type, not because it could not get the file. For CSV it said the site "serves the file as text/csv, which I couldn't retrieve"; for XML, an "unsupported content-type error (application/xml)". Yet our log shows ChatGPT-User downloading every CSV and XML file with a normal 200 answer. The file arrived; the assistant would not use it.
Claude read all fifteen. For three of them we confirmed only the first part of the code word on screen; the rest matched.
A paper from November 2026 (Chen and others, "Fetch, Read, Reuse", arXiv 2611.30546) found OpenAI's API model turning down Markdown as well as XML, CSV and Word files. The ChatGPT app in our test read Markdown. So the API and the app do not behave the same way, and a test of one does not settle the other.
What to do with it
- Plain text and Markdown copies are read by both. An llms.txt file is plain text, so ChatGPT and Claude will read it when asked to. Whether anything asks for it on its own is a separate question, covered in Who asks for llms.txt.
- Do not publish data only as CSV or XML. If you want an assistant to quote your numbers, put them in an HTML table on a page as well, or offer JSON. A CSV download alone is invisible to ChatGPT when a person asks about it.
- Your sitemap is XML, and that is fine. Sitemaps are for crawlers that index, not for an assistant reading on someone's behalf.
- Check your own server's types. Fetch your file and look at the Content-Type header. A Markdown file sent as text/plain and one sent as text/markdown may be treated differently by different assistants.
What this does not show
- Two or three files per type for ChatGPT, three for Claude, one account each, the web apps only, one day. Enough to see a pattern, not a rate.
- Each type was sent with one Content-Type. A CSV file sent as text/plain might be read; we did not test that.
- Word, PDF and other formats were not tested. Nor were Perplexity, Gemini or Copilot.
- These products change. A rerun next month may differ.