
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
chatgpt-to-markdown
Advanced tools
Convert ChatGPT conversation JSON files to Markdown format with ease.
Go to chat.openai.com > Settings > Data controls > Export data and export your data.
Unzip the file you're mailed and run:
npx chatgpt-to-markdown path/to/your/conversations.json
NO NEED TO INSTALL - npx will automatically install the package if it's not already installed.
This will generate one Markdown file for each chat same directory as the conversations JSON file. The file name will be the chat title, with invalid filename characters replaced by spaces.
Duplicate titles get (1), (2) suffixes to keep names unique.
For example, the Markdown output for a chat with the title Medium-Style Table CSS might look like this:
# Medium-Style Table CSS
- Created: 26/9/2023, 10:10:54 am
- Updated: 26/9/2023, 10:11:19 am
## user
Generate CSS for a Medium-style table
## assistant
Creating a Medium-style table requires a clean and minimalist design. Here's a simple CSS snippet to help you create a table that resembles the style seen on Medium. This code assumes that you have a basic HTML table structure in place.
```css
/* Resetting some table styles */
table {
border-collapse: collapse;
width: 100%;
margin-bottom: 20px;
}
...
```
Go to claude.ai > Settings > Privacy > Export data and export your data. Unzip the file you're mailed and run:
npx -p chatgpt-to-markdown claude-to-markdown path/to/your/conversations.json
This writes a Markdown file per conversation (using the conversation name), including summaries, attachments (extracted content), files, thinking blocks, tool calls and tool results.
Analyze thinking time statistics from your ChatGPT conversations:
npx -p chatgpt-to-markdown thinktime path/to/your/conversations.json
This will analyze all conversations and show statistics about thinking/reasoning time, including:
Optional flag:
--save-details: Save detailed results to thinking_analysis_results_node.jsonnpm install chatgpt-to-markdown
You can also use chatgpt-to-markdown programmatically in your JavaScript or TypeScript projects.
import chatgptToMarkdown from "chatgpt-to-markdown";
const json = [
// ... your ChatGPT conversation data
];
const sourceDir = "./output";
const options = {
dateFormat: (d) => d.toLocaleString(),
};
chatgptToMarkdown(json, sourceDir);
dateFormat: A function that takes a Date object and returns a string. Defaults to a string format like "1 Jan 2023 11:30 PM".git clone https://github.com/sanand0/chatgpt-to-markdown.git
cd chatgpt-to-markdown
npm install
npm run lint
npm test
npm publish
git commit . -m"$COMMIT_MSG"; git tag $VERSION; git push --follow-tags
thoughts, reasoning_recap, sonic_webpage. Include projectsuser_editable_context to avoid polluting Markdown with custom instructionstether_browsing_display, tether_quote and system_errorFAQs
Convert ChatGPT exported conversations.json to Markdown
The npm package chatgpt-to-markdown receives a total of 23 weekly downloads. As such, chatgpt-to-markdown popularity was classified as not popular.
We found that chatgpt-to-markdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.