Will ChatGPT read a Markdown, CSV or XML file?

Note · December 3, 2026 · Kei Watanabe

Five file types, one code word. ChatGPT read md, txt and json and refused csv and xml after downloading them. Claude read all five.

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 typeChatGPTClaude
Markdown (.md)read, 2 of 2read, 3 of 3
Plain text (.txt)read, 2 of 2read, 3 of 3
JSON (.json)read, 3 of 3read, 3 of 3
CSV (.csv)refused, 2 of 2read, 3 of 3
XML (.xml)refused, 2 of 2read, 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

  1. 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.
  2. 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.
  3. Your sitemap is XML, and that is fine. Sitemaps are for crawlers that index, not for an assistant reading on someone's behalf.
  4. 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

Get the next note by email. One measurement a week from our own logs, with the method to repeat it.
Subscribe, free