ChatGPT Exporter

A lightweight, open-source tool to export chats to Markdown & PDF from your browser: clean Markdown, print-ready PDF, proper code blocks — and Gemini support.

Works on ChatGPT; Gemini Markdown supported.

Why ChatGPT Exporter Over Extensions?

🔒 No Store Install

Works entirely client-side in your browser. No Chrome Web Store installation required.

🛡️ Minimal Permissions

Userscripts have a smaller permission footprint than full extensions. Your data stays private.

📝 Clean Output

Produces cleaner Markdown and stable PDF exports with properly preserved code blocks.

🌐 Open Source

MIT licensed. Review the code, contribute, or modify it for your needs.

Compare with popular extensions to see the full differences.

How to Use ChatGPT Exporter

Userscript Method
Console Method

Userscript Installation (Recommended)

  1. Install a userscript manager: Add Tampermonkey or Violentmonkey to your browser
  2. Install the exporter: Click the install button above for Markdown or PDF
  3. Open ChatGPT: Navigate to any conversation
  4. Export: Click the new export button that appears in the interface

The file downloads automatically with smart naming based on your conversation.

Console Method (Quick, No Install)

  1. Open ChatGPT: Navigate to the conversation you want to export
  2. Open Developer Console: Press F12 or right-click → Inspect → Console
  3. Paste the script: Copy and paste the exporter code
  4. Press Enter: Your file downloads immediately

Perfect for one-time exports. See the full documentation for the console snippet.

Supported Formats & Platforms

Format File Type Best For Features
Markdown .md Note-taking apps, version control Clean formatting, code blocks preserved, Obsidian-ready
PDF .pdf Sharing, archiving, printing Print-optimized, maintains layout, professional appearance
HTML .html Web publishing, custom styling Self-contained, customizable CSS, embeddable
Gemini .md Google Gemini conversations Markdown export for Gemini chats (v0.4+)

🔐 Privacy & Security

Your conversations never leave your browser. ChatGPT Exporter runs entirely client-side with no external servers or data collection.

ChatGPT Exporter vs OpenAI's Built-in Export

OpenAI offers an account-level data export, but it's designed for different use cases:

Feature ChatGPT Exporter OpenAI Account Export
Export Type Individual conversations All data at once
Format Markdown, PDF, HTML JSON in ZIP file
Speed Instant download Email delivery (can take time)
Use Case Share, publish, reference specific chats Archive, account transfer, compliance

Learn more: How to export all your ChatGPT data

Frequently Asked Questions

How is this different from OpenAI's data export?
OpenAI's export delivers a ZIP with all history in JSON via email; it's not a per-chat Markdown/PDF export. ChatGPT Exporter saves the current conversation directly from your browser in readable formats.
Do I need a Chrome extension?
No. Use a userscript manager (Tampermonkey/Violentmonkey) or paste a console snippet. No Chrome Web Store installation required.
What formats are supported?
Markdown (.md), print-ready PDF (via HTML), HTML (.html), and Gemini Markdown are all supported.
Does it preserve code blocks and formatting?
Yes — code blocks and structure are preserved in both Markdown and PDF exports with proper syntax highlighting.
Is it safe?
It runs locally in your browser with no external connections. The code is open-source (MIT license) and can be reviewed on GitHub.
Why not use an extension instead?
Extensions like ChatGPT Exporter and ExportGPT exist but require store installation and broader permissions. If you value minimal footprint and transparency, a userscript or console-only approach is simpler and safer.

About the Developer

Created by Rashid Azarang

GitHub RepositoryMarkdown ScriptPDF ScriptRelease Notes

Version 0.5.0 • MIT License • Last updated: January 2025