Skip to content

A lightweight browser-based tool to export your ChatGPT conversations in beautiful Markdown or PDF format. No extensions, no setup—just copy, paste, and download. Ideal for writers, researchers, developers, and anyone who wants to save or share AI chats.

License

AGPL-3.0, MIT licenses found

Licenses found

AGPL-3.0
LICENSE
MIT
LICENSE.old
Notifications You must be signed in to change notification settings

pasabanov/chatgpt-chat-exporter

 
 

ChatGPT Chat Exporter

Export your full ChatGPT conversations as clean, readable Markdown or PDF files — including all messages, sender labels, and code blocks.

ChatGPT Chat Exporter in action


✅ Features

  • Captures all messages, not just yours
  • Differentiates You and ChatGPT
  • Preserves code blocks, formatting, and structure
  • Supports export as Markdown or Printable PDF
  • Works directly from the browser — no install required
  • NEW: Available as userscripts for enhanced security!

📦 How to Use

Method 1: Install as Userscript (Recommended)

This is the safest and most convenient method:

  1. Install a userscript manager extension in your browser:

  2. Click one of these links to install the userscript:

  3. Open ChatGPT and click the "Export as Markdown" or "Export as PDF" button that appears in the sidebar.

Method 2: Console Method

If you prefer the manual method:

Export as Markdown

  1. Open a conversation in ChatGPT
  2. Open DevTools → Console
  3. Paste contents of exporter-markdown.js
  4. Hit Enter — .md file will download

Export as PDF

  1. Same as above — paste exporter-pdf.js
  2. A printable tab opens with full conversation
  3. Click Save as PDF

🖼️ Demo

Export process

Markdown Output PDF View

🧩 Customize

Want to:

  • Change "You" to your name?
  • Add timestamps?
  • Export as JSON?

Feel free to fork and tweak — or open an issue and suggest it!


🛠️ Contributing

PRs and suggestions welcome — especially for more export formats (HTML, TXT, EPUB).

See CONTRIBUTING.md for details on how to contribute.


📜 License

Original work

The original work is licensed under the MIT license.

Copyright (c) 2025-2026 Rashid Azarang

Modified work

All new changes are licensed under, and the original work is sublicensed under, the AGPL-3.0-or-later license.

Copyright © 2025 Petr Aleksandrovich Sabanov.

Metrics

repo size

About

A lightweight browser-based tool to export your ChatGPT conversations in beautiful Markdown or PDF format. No extensions, no setup—just copy, paste, and download. Ideal for writers, researchers, developers, and anyone who wants to save or share AI chats.

Resources

License

AGPL-3.0, MIT licenses found

Licenses found

AGPL-3.0
LICENSE
MIT
LICENSE.old

Contributing

Stars

Watchers

Forks

Languages

  • JavaScript 100.0%