ChatGPT Conversation Export

Export ChatGPT conversations to Markdown, HTML, or text, with best-effort Deep Research capture and manual paste fallback.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

Author
Crimsab
Daily installs
1
Total installs
2
Ratings
0 0 0
Version
0.1.6
Created
2026-06-18
Updated
2026-06-18
Size
42.2 KB
License
N/A
Applies to

ChatGPT Conversation Export

A standalone userscript for exporting ChatGPT conversations as clean Markdown, HTML, or plain text.

It is designed for normal ChatGPT chats and Deep Research threads. The exported files are meant to be readable by humans and useful for agents, knowledge bases, note-taking systems, and local study workflows.

Features

  • Adds an Export button to the ChatGPT header.
  • Exports conversations to:
    • Markdown (.md)
    • HTML (.html)
    • Plain text (.txt)
  • Preserves headings, paragraphs, lists, code blocks, links, images, and tables.
  • Renders Markdown tables as real HTML tables in the HTML export.
  • Removes ChatGPT interface noise such as copy/share buttons and hidden screen-reader labels.
  • Removes raw internal ChatGPT citation markers such as turn9search18 artifacts.
  • Detects embedded Deep Research frames.
  • Supports Deep Research with a manual paste fallback when browser sandboxing prevents automatic reading.
  • Does not use external libraries or remote code.

Deep Research Support

Deep Research often lives inside sandboxed cross-origin iframes. A browser extension can inject code into those frames more reliably, but a GreasyFork/Tampermonkey userscript cannot always do that.

This script handles Deep Research in two ways:

  1. It first tries to capture readable Deep Research content automatically.
  2. If the iframe is detected but cannot be read, it opens a small non-blocking panel called Paste Deep Research content.

The fallback flow is:

  1. Start an export from the Export button.
  2. If the paste panel appears, leave it open.
  3. Click Copy contents inside the Deep Research panel in ChatGPT.
  4. Paste the copied report into the userscript panel.
  5. Click Continue export.

The paste panel is intentionally non-modal, so it does not block the page and you can still interact with ChatGPT behind it.

Clean Output

The export is cleaned before saving:

  • ChatGPT action buttons are removed.
  • Sandboxed iframe placeholders are removed.
  • Raw internal citation markers are stripped.
  • Markdown spacing is normalized.
  • Deep Research pasted content is cleaned with the same pipeline as normal chat content.

This makes the output suitable for:

  • Obsidian or other Markdown notebooks
  • Local archives
  • OpenClaw or other agent memory systems
  • Research notes
  • HTML reading copies
  • Plain text ingestion

Installation

Install a userscript manager such as Tampermonkey, Violentmonkey, or Greasemonkey, then install the .user.js file.

The script runs on:

Usage

  1. Open a ChatGPT conversation.
  2. Click Export in the conversation header.
  3. Choose Markdown, HTML, or Text.
  4. If Deep Research is blocked by iframe sandboxing, paste the copied Deep Research content into the panel and continue.

Privacy

The script runs locally in your browser.

It does not send conversation content to any server. Exported files are created locally through the browser download flow.

Limitations

  • Deep Research automatic capture is best-effort because userscripts cannot reliably access every sandboxed iframe.
  • If automatic capture fails, use the built-in paste fallback.
  • The script follows ChatGPT's current DOM structure; future ChatGPT UI changes may require updates.