Batch save all your Claude AI chats to local Markdown files. Converts Anthropic's data export (JSON) to searchable format with interactive HTML index. 批量备份Claude对话到本地。
- 😩 Saving Claude chats one-by-one is tedious
- 📦 Anthropic's official data export gives you a huge JSON file - not human-readable
- 🔍 You can't search through your chat history locally
- Download your data from Claude.ai (Settings → Export Data)
- Run this converter on the
conversations.jsonfile - Get beautifully formatted Markdown files + interactive HTML index
Now you can search all your Claude conversations in Sublime Text, VS Code, or any text editor!
- ✅ Batch convert all chats to readable Markdown format
- ✅ Incremental updates (only converts changed chats)
- ✅ Interactive HTML index with search, filter & sort
- ✅ Track chat updates (⚡ badge for recently updated)
- ✅ Full-text searchable in any text editor
pip install -r requirements.txtpython converter.py -i conversations.json -o ./Claude_Chats/python converter.py -i conversations.json -o ./Claude_Chats/python converter.py -i conversations.json -o ./Claude_Chats/ --forcepython converter.py -i conversations.json -o ./Claude_Chats/ --index-onlyClaude_Chats/
├── _INDEX.html # Interactive web index (open in browser)
├── _INDEX.md # Markdown index (for text editors)
├── _SYNC_LOG.json # Sync history (tracks conversions)
└── YYYY-MM-DD_Title.md # Individual chat files
- Search: Real-time search through chat titles
- Filter: Filter by month/year
- Sort: Click column headers to sort by Created, Updated, or Title
- Update Badge: ⚡ indicates chats updated after creation
"ModuleNotFoundError: No module named 'tqdm'"
→ Run: pip install -r requirements.txt
HTML index shows no conversations
→ Delete _SYNC_LOG.json and run conversion again
Force full re-conversion
→ Delete _SYNC_LOG.json or use --force flag
MIT