You can read Claude conversations JSON in a local text editor and convert selected message fields into a readable document. Start with the official account export, then check the files and keys you actually received: as of November 2026, Anthropic’s export help does not publish a fixed consumer JSON schema or promise a particular filename. The local converter below lets you select the fields from your own file.
Get the right export first
Anthropic’s export documentation says, “Data exports include conversation data and the user data for your account.” Individual Free, Pro, Max, and Ultra users can request this on the web or Claude Desktop, as of November 2026. The mobile apps do not provide the request route.
- Open Settings.
- Open Privacy.
- Select Export data.
- Open the export email when it arrives.
- Download the data while signed in to that account.
The emailed link expires after 24 hours. Request another if it expires. Team and Enterprise members need an owner to enable personal exports, while Primary Owners use the organization export route. The account-export guide covers that request in more detail.
Keep the downloaded original and work on a copy. Identify any archive, instructions, download manifest, and conversation records before opening a converter. A small JSON document containing URLs is not interchangeable with a list of messages, and changing its extension will not make it one.
Use the accompanying instructions to identify your download’s contents. Check its actual structure before applying a tutorial written for a different package.
Read JSON without writing code
JSON stores values in named fields and ordered lists. Open it in a text editor and work through a recognizable conversation before exploring unfamiliar account fields.
Visual Studio Code’s JSON support includes formatting, navigation, and folding. You can use Format Document from the editor’s context menu to make a working copy easier to read. The folding controls beside the line numbers collapse object and array contents, which helps isolate one conversation without removing it.
- Open the copied JSON file in a local text editor.
- Search for a distinctive phrase from the conversation.
- Find the enclosing message object.
- Find the list containing its neighboring messages.
- Note the exact keys used for speaker and text.
- Compare the final message with the conversation you recognize.
Read the surrounding structure, not just the search match. A phrase might occur in a title, an attachment description, or a quoted earlier answer. Follow the matching message out to its enclosing list to find the complete exchange.
Formatting changes presentation without repairing content. If the editor reports invalid JSON, keep the original untouched and check that the download finished. A missing closing bracket can indicate a truncated file.
Understand the fields you are reading
This fictional packing-list discussion illustrates JSON. Its keys, messages, and timestamps were written for this guide, not captured from Claude or copied from an official schema.
{
"conversations": [
{
"title": "Field kit packing list",
"messages": [
{
"sender": "human",
"created_at": "2026-11-04T09:00:00Z",
"text": "Keep the spare batteries separate from the used ones."
},
{
"sender": "assistant",
"created_at": "2026-11-04T09:01:00Z",
"text": "Use separate labeled pouches.\nCheck the labels before packing."
}
]
}
]
}
In this example, the outer object contains a conversation list, and each conversation has a message list. Each message records a speaker, a timestamp, and text. The escaped line break inside the second text value becomes a real line break when JSON is decoded.
| Element | What it tells you here | What to check in your file |
|---|---|---|
| Conversation title | The topic of this example | Whether titles identify the intended record |
| Sender field | Which speaker supplied the text | The actual role labels and their meaning |
| Message timestamp | When this message occurred | Whether a field refers to creation, editing, or export |
| Message text | The selected written content | Whether additional structured blocks exist |
| List position | Where a record appears in this list | Whether branches or other relationships need interpretation |
A timestamp attached to the conversation is not automatically the timestamp of every reply. Preserve the original value and any zone information instead of relabeling it as your local time. Mark unclear fields as unknown instead of inferring a chronology.
The Python documentation states, “This module’s encoders and decoders preserve input and output order by default.” That ordering behavior lets a converter keep the selected list’s order. Check branch relationships separately before treating the selected list as the conversation shown in Claude. Sorting records by date can discard that distinction.
Convert one selected message list locally
The script below uses Python’s standard JSON reader and local-file operations. It reads one file, selects one message list, and writes a new Markdown file without making network requests. It refuses to overwrite an existing output and stops when the selected message fields are not strings.
Use this filename for the script. Python must already be installed on your computer, but no additional package is required.
json_excerpt.py
import json
import re
import sys
from pathlib import Path
if len(sys.argv) != 7:
raise SystemExit('Use: input.json output.md pointer role_key text_key time_key')
source, target, pointer, role_key, text_key, time_key = sys.argv[1:]
try:
node = json.loads(Path(source).read_text(encoding='utf-8-sig'))
if pointer and not pointer.startswith('/'):
raise ValueError('The message-list pointer must start with /.')
for token in pointer.split('/')[1:] if pointer else []:
if re.search(r'~(?![01])', token):
raise ValueError('Invalid pointer escape.')
token = token.replace('~1', '/').replace('~0', '~')
if isinstance(node, list):
if not re.fullmatch(r'0|[1-9][0-9]*', token):
raise ValueError('An array position must be a nonnegative integer.')
node = node[int(token)]
else:
node = node[token]
if not isinstance(node, list) or not node:
raise ValueError('Select a nonempty message list.')
output = ['Selected conversation', 'Text-only derivative; original JSON is separate.', '']
for number, message in enumerate(node, 1):
role, body = message[role_key], message[text_key]
stamp = message[time_key] if time_key != '-' else 'not selected'
if not all(isinstance(value, str) for value in (role, body, stamp)):
raise ValueError('Expected string fields; inspect structured content manually.')
output.extend([f'Message {number} | {role} | {stamp}', '', body, '', '---', ''])
with Path(target).open('x', encoding='utf-8') as handle:
handle.write('\n'.join(output))
except (OSError, ValueError, KeyError, IndexError, TypeError) as error:
raise SystemExit(f'Stopped: {error}') from None
print(f'Wrote {len(node)} messages to {target}')
The pointer argument identifies the message list you found in the editor. JSON Pointer uses slash-separated field names and zero-based list positions; the path below selects the first conversation’s messages in our file. Choose the path from your actual file.
The command below uses the keys. Follow these steps for that example before substituting fields from your own export.
- Save the script under the filename shown above.
- Save the JSON under the command’s input filename.
- Open a terminal in the folder containing both files.
- Run the command using your installed Python 3 command.
python3 json_excerpt.py example.json packing-list.md /conversations/0/messages sender text created_at
The arguments after the output name are the message-list pointer, speaker key, text key, and timestamp key. Substitute the keys from your actual file only after checking their meaning. Use a hyphen for the timestamp key if you want to omit timestamps instead of guessing how to interpret them.
Check the packing-list conversion
Open the new Markdown file and check the request followed by the answer. Confirm that the instruction to check the labels starts on its own line, and compare the role labels and timestamp strings with the example.
Do not mistake the converter’s completion message for a content review. It counts written message records without reviewing their meaning. Check the first passage, the final passage, and any qualification whose omission would change the practical advice.
If you select the wrong list, stop and return to the JSON editor. If your text lives in multiple content blocks, this small converter is the wrong tool until you define which blocks belong in the transcript. It does not reconstruct images, tool results, artifact files, or branches.
Keep a note beside the derivative describing the selected source and any omissions. Use that record when checking the file later.
Source copy: example.json
Selected list: /conversations/0/messages
Derivative: packing-list.md
Speaker field: sender
Text field: text
Timestamp field: created_at
Checked: Opening, final sentence, line break, speaker labels
Excluded: Other fields and any separate files
Handle a failed conversion
Read the failure before changing the source. The script validates the selected messages before opening its output, so a missing field or unsupported text structure stops the conversion instead of writing an apparently complete excerpt.
| Failure | Likely issue | Next action |
|---|---|---|
| Existing output file | The destination name is already in use | Choose a new output name |
| Missing key | Your selected fields differ from the example | Check the actual message keys |
| Expected string fields | A value contains structured content or another type | Read that structure before choosing a converter |
| Invalid JSON | The input is incomplete or a different format | Check the original download and selected file |
This small script loads the input into memory. If the file is too large for your computer to handle, use a tool designed for that size. Cutting arbitrary characters out of JSON can break its structure or remove part of a conversation.
Avoid mistaking text for a complete backup
An account export can combine private material from many conversations. Share a checked excerpt when someone needs one exchange, rather than handing over the full account file. Keeping the conversion local avoids sending the archive to a web-based JSON viewer, but the folder’s own sharing and synchronization settings still matter.
The organization-export documentation explicitly excludes generated Word, Excel, PowerPoint, and PDF files. It also says material deleted before the export request is absent, and member exports exclude uploaded-file contents. Save required originals and generated deliverables separately. A reference to a file is not a copy of its contents.
A text-only derivative cannot replace that source package. Keep the untouched download, the selected readable record, and the files needed to understand it as separate items in your backup routine. Treat the Markdown as a reading copy, with the source data available for later conversions.
Choose a simpler reading copy when appropriate
If you still have the original chat and only need a readable document, exporting it directly as Markdown avoids interpreting an account archive. DocMyChat can export one original chat or reply in desktop Chrome, but it does not read the official data-export archive or provide JSON export.
Native Claude Docs and decks appear as titled links without their contents in the conversation export. Save those documents through their own export controls when the actual deliverable matters. Choose the direct conversation route for a reading copy and the inspected account data for archival analysis.
Start with the file and compare the output yourself. Then select one recognizable conversation from a working copy of your real export, verify its fields, and keep its checked derivative beside the untouched original.
Questions
Why does my download contain links instead of messages?
First check whether you have download instructions or a manifest rather than conversation records. Follow the instructions accompanying your own official export; this article does not assume a fixed package layout, and its conversion script never follows URLs.
Can I repair JSON by deleting the line that fails?
Do not edit the only original. A reported error may come from a truncated download, the wrong file type, or an earlier missing delimiter; removing a line can damage otherwise valid conversation content.
Why does the script reject a message with content blocks?
It deliberately accepts only selected string fields. A list of text, image, tool, or other blocks needs a converter that understands those blocks; silently turning them into a string would create a misleading transcript.
Can I import the converted Markdown as native chat history?
No. A readable derivative is a document, not a restoration package. Anthropic does not support importing an account export into another personal Claude account. See the account migration guide for the available routes.
What if two conversations have the same title?
Compare their contents and any identifiers present in your file before selecting a message list. Record which source record you used; the title alone may not distinguish two related drafts.