Format and download ChatGPT conversations to markdown, JSON, and PNG for sharing and exporting chat logs.
Exports the active ChatGPT chat log directly from the browser console.
- Navigate to chat.openai.com/chat.
- Open the chat thread you'd like to export.
- Follow the below steps depending on which output type you'd like.
- Open browser console
- Copy and paste this function:
fetch('https://raw.githubusercontent.com/ryanschiang/chatgpt-export/main/dist/json.min.js').then(response => response.text()).then(text => eval(text))
OR:
- Copy contents of
/dist/json.min.js
- Paste into browser console
- Open browser console
- Copy and paste this function:
fetch('https://raw.githubusercontent.com/ryanschiang/chatgpt-export/main/dist/md.min.js').then(response => response.text()).then(text => eval(text))
OR:
- Copy contents of
/dist/md.min.js
- Paste into browser console
- Open browser console
- Copy and paste this function:
fetch('https://raw.githubusercontent.com/ryanschiang/chatgpt-export/main/dist/image.min.js').then(response => response.text()).then(text => eval(text))
OR:
- Copy contents of
/dist/image.min.js
- Paste into browser console
This is a trivial implementation as ChatGPT currently does not support sharing or exporting conversations. It may break with future changes.
It currently supports:
- Paragraphs / Text
- Lists
- Code blocks
- Tables