AI Chat Log to Markdown
Convert raw JSON chat logs into beautifully formatted Markdown. Automatically applies headers to roles and adds dividers between messages. 100% client-side.
- Formats system and assistant roles
- Clean Markdown dividers
- No upload, no sign-up
- Runs in your browser
- No upload
- No sign-up
- Clean Markdown format
- Works offline
Related tools
Free AI and developer tools that run in your browser. Nothing uploaded, ever.
Why this tool is the best choice
Stop copy-pasting from JSON. Get a clean, readable transcript instantly.
| Feature | TToolDeck | Manual Formatting | JSON Viewers |
|---|---|---|---|
| Runs entirely in your browser | Yes | No | No |
| Chat logs never sent to a server | Yes | No | No |
| Formats system and assistant roles | Yes | No | No |
| Clean Markdown dividers | Yes | No | No |
| Handles nested code blocks | Yes | Partial | No |
| Free without paywalls | Yes | Yes | Partial |
How it works
- 1
Paste your JSON
Copy the raw JSON array of messages from your API response, database, or code.
- 2
Automatic conversion
The tool reads the roles and content, capitalizing names and adding clean Markdown dividers.
- 3
Copy the Markdown
Get a beautifully formatted transcript ready to paste into Notion, GitHub, or a blog post.
Everything you get for free
Readable Transcripts
JSON is hard to read. Markdown makes your chat logs look like a natural conversation, perfect for documentation or sharing.
Role Capitalization
Roles like "user" and "assistant" are automatically capitalized to "### User" and "### Assistant" for proper Markdown headers.
100% Secure
Your chat logs might contain private API keys or business logic. We process everything locally so nothing is uploaded.
Preserves Code Blocks
If your AI used markdown for code blocks inside the chat, we preserve that formatting perfectly.
Clean Dividers
We automatically insert `---` between messages, ensuring your Markdown renderer creates clear visual separators.
Works Offline
After the page loads, the conversion runs entirely in JavaScript. You can use it without an internet connection.
What people use it for
Saving ChatGPT Logs
Export a valuable conversation from ChatGPT and convert it into a readable Markdown file for your notes.
Creating Blog Posts
Turn an interview or brainstorm with an AI into a formatted draft for your blog.
Documentation
Convert API test conversations into Markdown to include in your project documentation.
Sharing with Teammates
Send a clean Markdown transcript to a colleague instead of a messy JSON dump.
Archiving
Store your AI conversations in a human-readable format that will still make sense years from now.
Prompt Engineering
Format your system prompts and user tests into Markdown to review how the model responded.
Questions people ask
What format does it accept?
It accepts standard JSON chat logs used by OpenAI and Anthropic APIs. Specifically, an array of objects where each object has a "role" and "content" property.
Does it support System prompts?
Yes. Any role (System, User, Assistant, Tool) will be capitalized and used to create the Markdown header.
Why convert chat logs to Markdown?
Markdown is much easier to read, copy into a document, or paste into a Notion page for sharing. It strips out the messy JSON syntax and focuses purely on the conversation.
Does it work with Claude and OpenAI?
Yes, as long as the JSON structure contains a "role" and "content" key, it will work perfectly.
Is my data sent to a server?
No. The conversion happens locally in your browser using JavaScript. Your chat data is never transmitted.
Does it format the code blocks inside the messages?
Yes, if the content string already contains markdown formatting (like ```code```), it will be preserved in the output.
Is there a limit on the JSON size?
Because it runs locally, the limit is only your device's memory. It can handle very large chat histories.
Can I use this for other JSON data?
This tool is specifically designed for arrays of chat messages. If you need to repair general JSON, use our JSON AI Fixer tool.