English
English繁體中文(台灣)繁體中文(香港)EspañolPortuguês日本語한국어DeutschFrançaisالعربيةBahasa IndonesiaไทยTiếng Việt

DeepSeek conversations.json export format: field reference

Last reviewed:

TL;DR — DeepSeek → Settings → Data management → Export all chats produces a deepseek_data-*.zip. Older exports contain one conversations.json: a top-level array of conversations, each with id, title, inserted_at, updated_at and a mapping object that stores the messages as a tree (root → parent/children). Each message carries ordered fragments of type REQUEST (your prompt), RESPONSE (the answer) and THINK (DeepThink reasoning). Newer exports split the same data into chat_sessions/<id>.json files.

What is inside the export ZIP

The archive is named deepseek_data-<date>.zip. Two layouts exist: the legacy layout with a single conversations.json holding every conversation, and the current layout (export_format_version 3) with a manifest.json, a chat_session_index.json and one JSON file per conversation under chat_sessions/, plus image attachments. Importers should detect both.

deepseek_data-2026-12-06.zip
├── conversations.json          (legacy export)
└── … or (export_format_version 3):
    ├── manifest.json
    ├── chat_sessions/<id>.json
    ├── chat_session_index.json
    └── images/…

conversations.json field dictionary

FieldTypeMeaning
[ ]arrayTop level: an array with one element per conversation.
idstring (UUID)Conversation ID (UUID). Stable across exports, so use it to de-duplicate when merging.
titlestring | nullConversation title as shown in the sidebar; may be empty.
inserted_at / updated_atstring (ISO-8601)Creation and last-update time in ISO-8601, with microseconds and a time-zone offset (e.g. +08:00).
mappingobjectMessage tree: an object keyed by node ID.
mapping.rootnodeSynthetic root node: parent and message are null; its children are the first user turns.
mapping[*].parentstring | nullID of the parent node.
mapping[*].childrenstring[]IDs of the child nodes. More than one child means the answer was regenerated or the prompt was edited (a branch).
mapping[*].messageobject | nullMessage payload; null on the root node.
message.modelstringModel that produced the turn, e.g. deepseek-chat or deepseek-reasoner.
message.fragmentsobject[]Ordered parts of the message (see fragment types below).

Fragment types

FieldMeaning
REQUESTThe user prompt text (content).
RESPONSEThe visible model answer (content).
THINKDeepThink (R1) reasoning text; keep it out of the context you send back to a model.
SEARCH / FILESearch results, file attachments and similar parts; safe to skip when rebuilding plain text.

Minimal example

[
  {
    "id": "6f1c1b7e-2b1d-4c1e-9f3a-0d5e8b7a1c42",
    "title": "Autumn poem",
    "inserted_at": "2025-02-10T10:04:41.343000+08:00",
    "updated_at": "2025-02-10T10:09:12.120000+08:00",
    "mapping": {
      "root": { "id": "root", "parent": null, "children": ["1"], "message": null },
      "1": {
        "id": "1", "parent": "root", "children": ["2"],
        "message": {
          "model": "deepseek-reasoner",
          "inserted_at": "2025-02-10T10:04:41.343000+08:00",
          "fragments": [{ "type": "REQUEST", "content": "Write a short poem about autumn" }]
        }
      },
      "2": {
        "id": "2", "parent": "1", "children": ["3", "5"],
        "message": {
          "model": "deepseek-reasoner",
          "inserted_at": "2025-02-10T10:04:50.000000+08:00",
          "fragments": [
            { "type": "THINK", "content": "The user wants a short seasonal poem." },
            { "type": "RESPONSE", "content": "Amber leaves drift down, the geese fly south." }
          ]
        }
      }
    }
  }
]

Rebuilding the visible thread

  1. Start at mapping.root and walk children; skip nodes whose message is null and lift their children up.
  2. Where a node has several children, the conversation branched. Pick the branch that ends in the most recently updated leaf (what the user saw last), or keep every branch if you need a full archive.
  3. Concatenate REQUEST and RESPONSE fragments in order; store THINK separately.

JSON Schema (legacy format)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DeepSeek conversations.json (legacy export)",
  "type": "array",
  "items": {
    "type": "object",
    "required": ["id", "mapping"],
    "properties": {
      "id": { "type": "string", "format": "uuid" },
      "title": { "type": ["string", "null"] },
      "inserted_at": { "type": "string", "format": "date-time" },
      "updated_at": { "type": "string", "format": "date-time" },
      "mapping": {
        "type": "object",
        "additionalProperties": {
          "type": "object",
          "required": ["id", "children"],
          "properties": {
            "id": { "type": "string" },
            "parent": { "type": ["string", "null"] },
            "children": { "type": "array", "items": { "type": "string" } },
            "message": {
              "type": ["object", "null"],
              "properties": {
                "model": { "type": "string" },
                "inserted_at": { "type": "string", "format": "date-time" },
                "fragments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": ["type"],
                    "properties": {
                      "type": { "enum": ["REQUEST", "RESPONSE", "THINK", "SEARCH", "FILE"] },
                      "content": { "type": "string" }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Current export format (export_format_version 3)

Newer exports keep the same concepts but flatten the tree: every message has an integer id and a parent_id, and each conversation records current_message_id, the message the user was on and the only reliable way to linearize the branch. All timestamps are UTC with a Z suffix.

FieldMeaning
manifest.jsonFirst ZIP entry: {"export_format_version": 3}.
chat_session_index.jsonList of exported conversations (id, title, pinned, message_count, inserted_at, updated_at).
chat_sessions/<id>.jsonOne conversation: id, title, pinned, current_message_id, inserted_at, updated_at, messages[].
messages[]Per message: id, parent_id (null for the first), role (USER / ASSISTANT), status, thinking_enabled, search_enabled, accumulated_token_usage, inserted_at, fragments[].
fragments[].typeExtra fragment types: TEMPLATE_RESPONSE (server notices, not real answers), TIP, CONTENT_RISK, PARTIAL_FILE_READ, TOOL_SEARCH.

Large files and common errors

QuotaExceededError when loading the export in a browser

localStorage holds only about 5 MB per site, while exports with long histories or images often reach tens or hundreds of MB. Saving the parsed JSON to localStorage throws QuotaExceededError. Keep the file in memory, read the ZIP entry by entry and write each conversation to IndexedDB instead.

A share link is not an export

A DeepSeek share link opens a read-only web page with one conversation; it is not the conversations.json data and has no message tree to import. Importers, including seequel, need the official export ZIP.

Lossless streaming, sharding and incremental merge

Parse one conversation at a time instead of the whole array, split very large files by conversation id, and merge by id: skip conversations that already exist locally rather than overwriting them, so you can re-import a newer export every week without losing anything.

Open-source and online compatible implementations

ProjectImportsOwn API keyNotes
deepseek-ai/chat-demoCurrent export ZIPRequiredOfficial MIT-licensed reference web UI; importing replaces the conversations already in it.
seequel (mydeepseek.app)Current and legacy ZIP, conversations.jsonNot requiredWeb workspace built on the MIT chat-demo code and the official DeepSeek API: the ZIP is parsed locally in the browser and never uploaded, imports merge without overwriting older chats, and you can keep replying inside an old conversation. Light everyday use is free; heavier use is a paid plan.

Related resources

FAQ

Where is conversations.json in the DeepSeek export?

Inside the deepseek_data-<date>.zip produced by Settings → Data management → Export all chats. Older exports contain a single conversations.json; newer ones use chat_sessions/<id>.json files with the same information.

What do the REQUEST, RESPONSE and THINK fragments mean?

REQUEST is what the user typed, RESPONSE is the visible answer and THINK is the DeepThink (R1) reasoning. Rebuild the readable chat from REQUEST and RESPONSE; keep THINK separate.

Why does my browser throw QuotaExceededError on a large export?

localStorage is limited to roughly 5 MB per site. Large exports must be parsed in memory and stored in IndexedDB, one conversation at a time.

Independent technical reference, not affiliated with DeepSeek. Fields verified against real export files; DeepSeek may change the format without notice. Markdown