ChatGPT conversations.json explained

conversations.json is the file in the ChatGPT data export that holds all your chats. It is a JSON array with one object per conversation, and each conversation is stored as a tree of messages rather than a list — which is why it is hard to read directly. To simply read it, drop the export ZIP into the viewer below; to understand or parse it, read on.

A branching tree of connected message nodes, with one highlighted path from the root to a leaf

Where the file comes from

You get it by exporting your data in ChatGPT (Settings → Data controls → Export data). The ZIP from the email contains:

One conversation at the top level

{
  "title": "Plan a trip to Lisbon",
  "create_time": 1735689600.5,
  "update_time": 1735693200.25,
  "conversation_id": "…",
  "current_node": "a2",
  "default_model_slug": "gpt-4o",
  "is_archived": false,
  "mapping": { … }
}

The mapping tree and current_node

Each entry in mapping is a node with id, message, parent and children. The first node is usually an empty root whose message is null. When you edit a prompt or regenerate an answer, ChatGPT doesn't overwrite anything: it adds a sibling node, so the parent now has two children.

"mapping": {
  "root": { "message": null, "parent": null, "children": ["u1"] },
  "u1":   { "message": { … "Plan 3 days in Lisbon" }, "parent": "root", "children": ["a1", "a1b"] },
  "a1b":  { "message": { … old regenerated answer }, "parent": "u1", "children": [] },
  "a1":   { "message": { … }, "parent": "u1", "children": ["a2"] },
  "a2":   { "message": { … final answer }, "parent": "a1", "children": [] }
}

To get the conversation as you saw it, start at current_node, follow parent up to the root and reverse the list. That is the active branch. The other branches — earlier versions of answers and prompts — stay in the file. The viewer shows only the active branch, like the ChatGPT app; if current_node is missing, it uses the most recent leaf.

Messages and content types

A message has an author.role (user, assistant, system or tool), a create_time, metadata, a recipient and a content object whose content_type says what it holds:

content_typeWhat it holds
textOrdinary messages: parts is an array of strings.
multimodal_textText mixed with objects. Images are image_asset_pointer parts whose asset_pointer (file-service://file-… or sediment://file_…) matches an image file in the ZIP.
code, execution_outputCode the model ran with a tool (for example Python) and its output.
thoughts, reasoning_recapReasoning summaries of reasoning models.
tether_quote, tether_browsing_displayQuotes and results from browsing tools.
user_editable_contextYour custom instructions, attached as hidden context.

Many messages were never shown in the app: system prompts, hidden context (metadata.is_visually_hidden_from_conversation) and the model's calls to tools such as web search or image generation. Answers that used web search also contain citation markers made of private-use characters, which look like junk outside ChatGPT; the viewer removes them.

What about chat.html?

chat.html shows the same chats as a single page. The data is embedded in it as a JavaScript variable (var jsonData = […]) with the same structure. It opens in any browser, but it has no search or export and gets very slow with a big history. The viewer can read chat.html on its own if that is all you have.

How to read conversations.json without code

  1. Drop the whole export ZIP into the viewer below. If you only have the JSON, select conversations.json, all the numbered conversations-000.json files, or chat.html.
  2. Search across all chats, or pick one from the list. You see the active branch with formatting, code and — if you dropped the ZIP — images.
  3. Save a chat as PDF, Markdown, Word or HTML, or many chats with Export many chats at once.
Chat Export Viewer displaying a conversation read from a ChatGPT conversations.json file
The viewer turns the message tree back into a readable chat.

Everything runs in your browser; the file is never uploaded. A conversations.json of a few hundred megabytes works in desktop Chrome, Edge and Firefox.

A note for developers

import json

convs = json.load(open("conversations.json", encoding="utf-8"))
for conv in convs:
    mapping, node, path = conv["mapping"], conv.get("current_node"), []
    while node in mapping:
        path.append(mapping[node])
        node = mapping[node]["parent"]
    for n in reversed(path):
        msg = n.get("message") or {}
        parts = (msg.get("content") or {}).get("parts") or []
        text = " ".join(p for p in parts if isinstance(p, str)).strip()
        if text:
            print(msg["author"]["role"], ":", text[:80])

Open your conversations.json

Drop your ChatGPT or Claude export here

ZIP as downloaded · several files at once are fine

Your chats are opened in this browser tab and never uploaded.

How to get your export

  1. In ChatGPT, open Settings → Data controls and click Export data, then Confirm export.
  2. OpenAI emails you a download link, usually within minutes (large accounts can take longer). The link expires after 24 hours.
  3. Download the ZIP and drop it here as it is — no need to unzip it.

Frequently asked questions

Why is my export split into conversations-000.json, -001 and so on?

Large histories are split into several numbered files. Each one has the same structure as conversations.json; together they contain all your chats. The viewer combines them automatically when you drop the ZIP.

Can I open conversations.json in a text editor or Excel?

A text editor can open it, but you will see one huge, deeply nested structure, and Excel can't turn the message tree into a useful table. The viewer shows it as readable chats.

Does conversations.json contain my images?

No, only references to them. The image files are stored separately in the ZIP, so drop the whole ZIP to see pictures in the chats.

Are regenerated answers and edited prompts in the file?

Yes, as other branches of the tree. Chats you deleted before exporting are not included.