> ## Documentation Index
> Fetch the complete documentation index at: https://ophel.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat Export: Markdown, JSON, zip packages, and asset preservation

> Export AI chats in Markdown, JSON, plain text, or zip packages — with per-platform support for images, attachments, code artifacts, Deep Research reports, and thinking chains.

Ophel can export any AI chat to a file, preserving not just the text but also images, uploaded files, generated assets, code artifacts, and reasoning chains — depending on what the platform exposes. You control the output format, what gets included, and how files are packaged.

## How to export

| Method | Description |
| - | - |
| Outline toolbar | Click the highlighted ![Export icon](https://ophel.app/docs/images/icons/export.svg) **Export Chat** button in the Outline tab toolbar |
| Floating quick buttons | Click the ![Toolbox icon](https://ophel.app/docs/images/icons/tools.svg) toolbox icon, then click ![Export icon](https://ophel.app/docs/images/icons/export.svg) **Export** |
| Keyboard shortcut |  exports the current chat |
| Chats tab | Click the ![Three-dot menu icon](https://ophel.app/docs/images/icons/more-horizontal.svg) three-dot menu on a chat row and choose **Export** — this also works for chats you have not opened (on some sites Ophel opens the chat for you first, shown as **Open and export...**). In batch mode, selecting exactly one chat reveals an export button too |

By default, every entry above opens the **Export Chat** dialog. If you prefer one-click exports with your saved defaults, turn off **Settings → Features → Chats → Export Settings → Show Export Options Dialog**.

After the export starts, a full-page progress overlay blocks accidental interaction while Ophel loads history, extracts content, packages assets, saves the file, and restores the page.

## The Export Chat dialog

The dialog shows the title of the chat being exported — handy when you export a chat from the list without opening it. It offers:

* **Formats** — ![Markdown file icon](https://ophel.app/docs/images/icons/markdown.svg) Markdown, HTML, ![JSON file icon](https://ophel.app/docs/images/icons/json-file.svg) JSON, ![TXT file icon](https://ophel.app/docs/images/icons/txt-file.svg) Text, and ![Copy Markdown icon](https://ophel.app/docs/images/icons/copy.svg) **Copy Markdown** (straight to the clipboard). When you are exporting the chat on the current page, a ![Copy outline icon](https://ophel.app/docs/images/icons/copy-outline.svg) **Copy outline** option also appears here — it copies the structured Markdown outline instead of the full chat.
* **Export options** — Include Thoughts, Show Turn Numbers (not available for JSON), Markdown Divider, **Package as ZIP (with attachments)** for Markdown, and **Use clean style** (no decorative emojis). A gear button jumps to the full [export settings](#export-settings). Copying an outline ignores these options.
* **Export segments...** — a link at the bottom left switches to [segmented export](#segmented-export) for the current chat.

Click **Export** (or **Copy**) to finish.

## Export formats

| Format | What it preserves | Best for |
| - | - | - |
| ![Markdown file icon](https://ophel.app/docs/images/icons/markdown.svg) Markdown (`.md`) | Speaker labels, headings, lists, code blocks, and image references | Notes, wikis, documentation, and AI-to-AI handoff |
| ![Zip package icon](https://ophel.app/docs/images/icons/zip-file.svg) Markdown zip package (`.zip`) | The Markdown file plus referenced images, attachments, and generated artifacts in `assets/` | Chats with files, images, Canvas code, or document artifacts |
| HTML (`.html`) | A self-contained, formatted web page with rendered Markdown, speaker labels, and optional turn numbers | Reading, printing, and sharing with people who do not use Markdown |
| ![JSON file icon](https://ophel.app/docs/images/icons/json-file.svg) JSON (`.json`) | Structured messages with roles, timestamps, model metadata, and content | Programmatic processing, indexing, and archival workflows |
| ![TXT file icon](https://ophel.app/docs/images/icons/txt-file.svg) Plain text (`.txt`) | A clean transcript without Markdown formatting | Searchable text archives and plain text editors |

Choosing **Copy Markdown** in the Export Chat dialog copies the entire chat to your clipboard without saving a file.

## Segmented export

Segmented export lets you select and export specific parts of a chat instead of exporting the entire thread. This is useful for long chats where you only need certain sections, or when you want to organize different topics into separate files.

### How to use segmented export

**1. Open the segmented export dialog**

Open the [Export Chat dialog](#the-export-chat-dialog) for the current chat — for example from the ![Export icon](https://ophel.app/docs/images/icons/export.svg) **Export Chat** button in the Outline toolbar — then click **Export segments...** at the bottom left.

**2. Select segments**

Ophel automatically detects chat segments based on user questions. You can:

* Search for specific segments using the search box
* Select segments individually by clicking checkboxes
* Use range selection (e.g., "1-3, 8") to select multiple segments at once
* Click **Select visible** to select all segments matching your search
* Click **Invert visible** to flip the current selection

**3. Choose export mode**

Pick one of three output modes:

* **ZIP (one Markdown per segment)** — Each selected segment becomes a separate `.md` file inside a zip archive
* **Merged Markdown** — All selected segments are combined into a single `.md` file
* **Copy Markdown** — Copies the merged Markdown directly to your clipboard

**4. Export**

Click **Export selected** to download or copy your selection.

### Segment detection

Ophel treats each user question as the start of a new segment. A segment includes:

* The user's question
* The AI's complete response
* Any nested back-and-forth exchanges before the next top-level user question

Each segment shows a preview with metadata: number of user messages, number of AI messages, and approximate character count.

## Packaging mode

Go to **Settings → Features → Chats → Export Settings → Markdown Export Method** to choose how Markdown exports handle assets:

| Mode | Behavior |
| - | - |
| **Markdown only** | Exports a single `.md` file. Images and attachments appear as text references or external links. |
| **Zip package** | Bundles the Markdown file together with all assets in a `.zip` archive. |

When zip mode is active, Ophel downloads the archive directly instead of a standalone Markdown file.

### Zip package structure

```
chat-title.zip
├── chat-title.md
└── assets/
    ├── images/       ← Generated and embedded images
    ├── files/        ← User-uploaded attachments (PDFs, documents, etc.)
    └── documents/    ← Exported artifacts (Claude documents, Gemini Canvas code)
```

All references inside the Markdown file use stable relative paths, so the zip extracts cleanly into any folder.

## Platform export capabilities

Each AI platform exposes different types of content. The table below shows what Ophel can preserve per platform.

| Platform | User attachments | Generated images | Thinking chains | Artifacts & reports |
| - | :-: | :-: | :-: | - |
| **ChatGPT** | ✅ | ✅ | — | Deep Research reports |
| **Gemini** | ✅ | ✅ | ✅ | Canvas code, Deep Research reports |
| **Gemini Enterprise** | ✅ | ✅ | ✅ | Canvas code, Deep Research reports |
| **Gemini Notebook** | — | — | — | Active column content |
| **AI Studio** | ✅ | — | — | — |
| **Claude** | ✅ | — | ✅ | Document artifacts |
| **Grok** | ✅ | ✅ | — | — |
| **DeepSeek** | ✅ | — | — | — |
| **Doubao** | ✅ | ✅ | — | — |
| **Kimi** | ✅ | — | ✅ | Share page exports |
| **Qwen Studio** | ✅ | ✅ | ✅ | — |
| **Qianwen** | ✅ | ✅ | — | — |
| **Yuanbao** | ✅ | ✅ | ✅ | — |
| **Z.ai** | ✅ | — | ✅ | — |
| **ChatGLM** | ✅ | ✅ | ✅ | — |
| **ima** | ✅ | ✅ | ✅ | — |

> [!NOTE]
>
> This table reflects what Ophel can extract from each platform's current page
> structure. If a platform redesigns its DOM, some capabilities may need adapter
> updates before they work again.

## Platform-specific export details

### ChatGPT

* **Generated images** — AI-generated image-only replies are included in both Markdown and zip exports.
* **Deep Research reports** — When a Deep Research report is available, the export includes the report title and a link. In zip mode, linked report files are preserved under `assets/files/`.
* **User attachments** — Uploaded images and linked files from user prompts are packaged in zip mode.

### Gemini & Gemini Enterprise

* **Canvas code artifacts** — Exports open Canvas artifacts, switches to the code tab, and includes the generated code in the Markdown output. When a Canvas panel is open, **Copy Markdown** and **Download Markdown** buttons appear directly in the Canvas toolbar for quick code export.
* **Deep Research exports** — Covers owned app chats, share pages, and generated report share pages. Closed report panels are opened during export and restored afterward.
* **Deep Research report actions** — When a Deep Research report panel is open, **Copy Markdown** and **Download Markdown** buttons appear in the report toolbar, exporting only the current report without changing the regular chat export.

### Gemini Notebook

* **Per-column export** — Export works on the column you are currently viewing. The chat column and each Studio panel document (such as notes or reports) are exported separately, so open the column you want before exporting.
* **Document outline** — The outline can switch between the chat and the current document, and the export follows the active column.

### Claude

* **Document artifacts** — Markdown document artifacts are exported as linked files under `assets/documents/` in zip packages.
* **Thinking chains** — Expanded Claude thinking blocks are included when "Include Thoughts in Export" is enabled.
* **Attachments** — Uploaded images and linked files from user prompts are packaged in zip mode, preserving the original reply order of text and artifact links.

### Kimi

* **Share page export** — Kimi share pages are supported for export, outline extraction, and scroll navigation.
* **Thought chains** — Visible thinking content is included when "Include Thoughts in Export" is enabled.
* **User images** — Uploaded images are preserved in Markdown and zip exports.

### Deep Research report export (Gemini)

Gemini Deep Research reports are handled separately from regular chat exports:

* The Outline tab shows a **Chat / Document** source switch when a report is open, letting you browse the report outline independently from the chat outline.
* The report panel toolbar includes **Copy Markdown** and **Download Markdown** buttons for exporting only the report content.
* During a full chat export, Ophel opens the report panel if it is closed, extracts the content, and restores the panel state afterward.

## Export settings

Configure export behavior in **Settings → Features → Chats → Export Settings**:

| Setting | Description | Default |
| - | - | - |
| Show Export Options Dialog | Open the Export Chat dialog on every export; when off, export immediately with the defaults below | On |
| Default Export Format | Format used by quick exports and preselected in the dialog: Markdown, JSON, TXT, or HTML | Markdown |
| Markdown Export Method | Markdown only or zip package | Markdown only |
| Add Timestamp to Filename | Adds a timestamp to the exported filename | Off |
| Include Thoughts in Export | Exports reasoning steps for platforms that expose them | On |
| Show Turn Numbers in Export | Numbers each chat turn in the output | Off |
| Markdown Divider | Separator inserted between chat turns | `---` |
| Export Style | Standard or Clean — Clean removes decorative emojis from exported files | Standard |
| Custom User Name | Replaces "User" in the exported output | (empty) |
| Custom AI Name | Replaces the AI name in the exported output | (empty) |

## Copy as Markdown

Open the [Export Chat dialog](#the-export-chat-dialog) and choose ![Copy Markdown icon](https://ophel.app/docs/images/icons/copy.svg) **Copy Markdown**, then click **Copy**. The whole chat lands on your clipboard in Markdown format — faster than exporting a file when you just need to paste the content into a note, email, or another AI chat.

## Export from share pages

Ophel supports exporting from share pages on most platforms. The browser tab title and export filename use the page heading when the chat title is not exposed on a share page. Platform-specific share page support:

* **Gemini** — owned app chats, chat share pages, and report share pages
* **Kimi** — share page chats with images and file labels
* **Doubao** — share links under `/thread/`
* **Z.ai** — chat and share pages
* **ChatGLM** — share pages with thinking content
* **Qwen Studio** — regular and share page chats with thinking details


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.