Export your Claude Desktop chats to Markdown and JSON
A simple terminal tool that helps you browse and export conversations from your Claude AI assistant data exports. Get your chat history in both human-readable Markdown and structured JSON formats.
- Go to your Claude account settings and export your data.
- Once you receive the email, download the zip file.
- Unzip the file and place the extracted folder in the same directory as this tool.
- Run the tool with
./claude_chat_browser.py - Browse your conversations with arrow keys
- Press Enter to select a conversation
- Press Y to export to Markdown and JSON.
- Browse All Conversations: Newest conversations appear first
- See Previews: View the first few messages before exporting
- Export Easily: Get both Markdown and JSON versions of any conversation
- Read Chronologically: Exported conversations are organized by time with timestamps
- No Extra Software Needed: Uses only standard Python libraries
- In Claude Desktop app, go to Settings → Export Data
- Download and extract the ZIP file
- Place the extracted folder (a
data-...folder containingconversations.json) in the same directory as this tool
# Make executable (first time only)
chmod +x claude_chat_browser.py
# Start the browser
./claude_chat_browser.py- Navigate: Use ↑/↓ arrows to select conversations
- Change Pages: Use ←/→ arrows to move between pages (10 conversations per page)
- View Details: Press Enter to see conversation details
- Export: Press Y when prompted to save as Markdown and JSON
- Exit: Press Q to quit
When you export a conversation, two files are created in the exports/ folder:
- [date]_[name].md: Easy-to-read Markdown with all messages in order
- [date]_[name].json: Complete structured data you can use in other tools
- The tool automatically finds the most recent Claude data export in your directory
- Exported conversations have timestamps so you can see when each message was sent
- Use the JSON exports if you want to process your conversations with other tools
For developer information, see docs/DEVELOPMENT.md.
MIT License - See LICENSE file for details.
