Export ChatGPT/Gemini/Grok/Claude Chat -> MD, JSON, CSV, TXT, HTML

Kairox
2026-04-11T10:29:55Z

Export ChatGPT, Gemini, Grok, Claude conversations to Markdown, JSON, CSV, TXT, HTML

🚀 AI Conversation Exporter & Previewer (Draggable Floating Button)

Export your chat history from ChatGPT, Gemini, Grok, and Claude seamlessly with this powerful, customizable, and beautifully designed userscript. Say goodbye to manual copying and pasting – export your entire conversation with a single click in your preferred format!

✨ Key Features

Multi-Platform Support: Works flawlessly across the most popular AI platforms:

🤖 ChatGPT (chatgpt.com)

✨ Google Gemini (gemini.google.com)

🧠 Anthropic Claude (claude.ai)

🌌 xAI Grok (grok.com)

Multiple Export Formats: Choose the format that best suits your needs:

Markdown (.md): Perfect for Obsidian, Notion, Typora, or GitHub. Preserves code blocks, bold text, lists, and LaTeX equations.

JSON (.json): Ideal for developers! Exports the conversation as a structured array of User and AI turns, ready to be fed into your scripts or AI agent workflows.

CSV (.csv): Great for data analysis. Exports the chat into a neat spreadsheet format.

HTML (.html): A beautifully styled, standalone webpage containing your chat, perfect for sharing or archiving.

Plain Text (.txt): A simple, raw text output.

Premium Glassmorphism UI: Enjoy a sleek, modern, and non-intrusive floating button with a frosted glass effect that adapts to your system's dark or light theme.

Draggable & Smart Positioning:

Freely drag the "Export" button anywhere on your screen.

The script remembers its position even after you refresh the page.

The export menu smartly opens upwards or downwards depending on where you place the button, ensuring it never goes off-screen!

Internationalization (i18n): The button and menu texts automatically adapt to your browser's language (supports 104 languages!).

Zero Interference: Built using safe, isolated DOM injection techniques that bypass strict Content Security Policies (CSP) without breaking the AI website's core functionality.

🛠️ How to Use

1. Install a Userscript Manager: Make sure you have an extension like Tampermonkey or Violentmonkey installed in your browser.

2. Install this Script: Click the green "Install this script" button above.

3. Start Exporting:

Open any chat on ChatGPT, Gemini, Claude, or Grok.

Look for the floating Export button (default position is the bottom right corner).

Wait for the page to fully load.

Click the button to open the menu.

Select your desired format (Markdown, JSON, CSV, TXT, or HTML).

The file will automatically download to your computer!

4. Move the Button: Click and hold the button to drag it to a more convenient location on your screen.

📝 Notes & Troubleshooting

Page Loading: Please ensure the chat page has fully loaded before clicking export. If the export fails, wait a few seconds and try again.

Long Conversations: For extremely long chats, you might need to scroll down to the bottom of the page first to ensure all messages are loaded into the browser's memory before exporting.

Missing Button? If the button doesn't appear, try refreshing the page. Some AI sites use complex single-page application (SPA) routing, but the script is designed to automatically detect and reappear.

🔒 Privacy & Security

This script runs 100% locally in your browser. It does not send your chat data to any external servers, analytics trackers, or third parties. It simply reads the text currently visible on your screen and packages it into a downloadable file.

Created with ❤️ for the AI community.