Export your full ChatGPT conversations as clean, readable Markdown or PDF files — including all messages, sender labels, and code blocks.
- 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!
This is the safest and most convenient method:
-
Install a userscript manager extension in your browser:
- Tampermonkey (Chrome, Firefox, Safari, etc.)
- Violentmonkey (Chrome, Firefox)
- Greasemonkey (Firefox)
-
Click one of these links to install the userscript:
-
Open ChatGPT and click the "Export as Markdown" or "Export as PDF" button that appears in the sidebar.
If you prefer the manual method:
- Open a conversation in ChatGPT
- Open DevTools → Console
- Paste contents of
exporter-markdown.js - Hit Enter —
.mdfile will download
- Same as above — paste
exporter-pdf.js - A printable tab opens with full conversation
- Click Save as PDF
| Markdown Output | PDF View |
|---|---|
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!
PRs and suggestions welcome — especially for more export formats (HTML, TXT, EPUB).
See CONTRIBUTING.md for details on how to contribute.
The original work is licensed under the MIT license.
Copyright (c) 2025-2026 Rashid Azarang
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.