Copilot Conversation Exporter

Export Microsoft Copilot conversations to Markdown or JSON (optionally includes AI Thoughts when present)

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!)

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!)

Upphovsman
NoahTheGinger
Dagliga installationer
1
Totala installationer
34
Betyg
1 0 0
Version
2.0.0
Skapad
2025-04-12
Uppdaterad
2025-09-27
Size
17,7 KB
Licens
MIT
Gäller för

Copilot Conversation Exporter

A simple Tampermonkey userscript that adds an Export button to copilot.microsoft.com. This button lets you quickly export your Copilot conversation as a nicely formatted Markdown file or raw JSON data.

Copilot web chat exporter demo

Features

  • Multiple Export Formats: Export conversations as Markdown (.md) or JSON (.json) files.
  • API-Based Data Retrieval: Fetches conversation data directly from Copilot's API for complete accuracy.
  • AI Thoughts Included: Captures and includes AI reasoning content when present.
  • Clean Formatting: Properly formats messages with support for images, citations, and rich content.
  • Easy Access: The export button is fixed in the bottom-right corner of the screen.
  • Timestamped Files: Exported files include timestamps to prevent naming conflicts.

Installation

  1. Install Tampermonkey (or another userscript manager) in your browser.
  2. Create a new userscript and copy-paste the code from the repository into it.
  3. Save the script.
  4. Navigate to copilot.microsoft.com and you should see the Export button in the bottom-right corner.

Usage

  • Start a Conversation: Begin chatting with Copilot as you normally would.
  • Click the Button: Hit the Export button at the bottom-right.
  • Choose Format: Select either Markdown or JSON format from the dialog that appears.
  • Download: The script will fetch the conversation data and automatically download a file named {conversation_title}_{timestamp}.md or {conversation_title}_{timestamp}.json.

Customization

The script uses Copilot's official API endpoints to retrieve conversation data. If you need additional formatting for the Markdown output, you can modify the conversationToMarkdown() and partsToMarkdown() functions. The JSON export provides the raw conversation data for custom processing.

License

This project is released under the MIT License.