๐Overview
A browser extension that enables users to export their Claude AI conversations in multiple professional formats. This tool makes it easy to save, share, and archive your AI interactions with beautiful formatting and syntax highlighting.
๐Features
- Multiple Export Formats:
- Markdown (.md): Clean, portable markdown files
- Styled HTML (.html): Professional HTML with Prism.js syntax highlighting and custom CSS
- PDF Export: Print-ready HTML that opens in a new window for easy PDF generation
- One-Click Export: Download any Claude conversation with a single click
- Bulk Export: Export multiple conversations at once from chat history
- Format Preservation: Maintains conversation structure, code blocks, and formatting
- Syntax Highlighting: Automatic code syntax highlighting for multiple languages (Python, JavaScript, SQL, Go, Bash, and more)
- Customizable Options:
- Choose between all messages or assistant-only responses
- Include or exclude Claudeโs thinking blocks
- Preferences are saved automatically
- GitHub Gist Integration: Create and update GitHub Gists directly from conversations
- Cross-Browser Support: Works on both Chrome and Firefox
๐Installation
๐Chrome
- Download the extension from the Chrome Web Store
- Click โAdd to Chromeโ
- Grant necessary permissions
๐Firefox
- Download the extension from Firefox Add-ons
- Click โAdd to Firefoxโ
- Grant necessary permissions
๐Usage
๐Quick Export from Conversation Page
- Navigate to any Claude conversation at claude.ai
- Look for the โDownloadโ button added by the extension (next to the Share button)
- Click to open the export options menu
- Choose your preferred format:
- Download MD: Plain markdown file
- Download HTML: Styled HTML with syntax highlighting
- Download PDF: Opens print-ready HTML in new window (use Ctrl+P or Cmd+P to save as PDF)
- Configure message filtering and thinking block options
- The file will be downloaded or opened automatically
๐Bulk Export from Chat History
- Navigate to your Claude chat history page
- Select one or more conversations using the checkboxes
- Click the export button that appears in the toolbar
- Monitor progress in the toast notification at bottom-right
- Files will download automatically with chat titles as filenames
- Click the X button on the toast to cancel the export at any time
๐Extension Popup
- Click the extension icon in your browser toolbar
- View the captured conversation in markdown format
- Use โRefresh Pageโ to capture the latest data
- Create or update GitHub Gists for easy sharing
๐GitHub Gist Integration
- Click the settings icon in the extension popup
- Add your GitHub Personal Access Token
- Create token at: https://github.com/settings/personal-access-tokens/new
- Required scope:
gist
- Click โCreate Gistโ or โUpdate Gistโ in the popup
- Gist will open automatically in a new tab
๐Export Format Details
๐Markdown Format
- Clean, portable text format
- Preserves conversation structure
- Code blocks with language tags
- Compatible with all markdown editors
๐Styled HTML Format
- Professional styling with custom CSS
- Prism.js syntax highlighting for code blocks
- Responsive tables with proper borders and spacing
- Optimized typography for readability
- Can be opened directly in any browser
๐PDF Export
- Print-optimized HTML formatting
- Custom CSS for clean, professional output
- Removes browser headers/footers for cleaner PDFs
- Opens in new window for easy browser-based PDF saving
- Maintains all formatting including code highlighting
๐Technical Details
The extension uses:
- Content scripts to inject download functionality into Claude.ai pages
- Background scripts for message handling and storage management
- Markdown conversion with proper formatting and code block handling
- HTML generation with Prism.js integration for syntax highlighting
- PDF generation with custom CSS and print optimization
- Browser APIs for file downloads and tab management
- Chrome Storage API for data persistence and preference management
- Fetch API interception to capture conversation data in real-time
๐Key Components
markdown-builder.js: Core markdown generation utilitiespdf-generator.js: PDF export with custom CSS supportstyled-html-generator.js: Enhanced HTML generation with Prism.jsdownload-button.js: In-page download button with format optionsbulk-export.js: Bulk export functionality for chat history
๐Privacy
- No data is sent to external servers (except when creating GitHub Gists, which requires your explicit action)
- All processing happens locally in your browser
- Conversations are only saved when you explicitly export them
- GitHub tokens are stored securely in Chrome local storage
- HTTPS-only communication with GitHub API
๐Source Code
The project is open source and available on GitHub at https://github.com/abhimanyu-sikarwar/claude-extension. Contributions are welcome!
๐License
Licensed under Apache License 2.0
๐Support
For issues, feature requests, or contributions, please visit the project repository.
๐Recent Updates
๐Latest Features (November 2025)
- โจ PDF Export: Generate print-ready PDFs with custom styling
- โจ Styled HTML Export: Professional HTML with Prism.js syntax highlighting
- ๐จ Custom CSS Support: Beautiful formatting for all export types
- ๐ก Syntax Highlighting: Support for multiple programming languages
- ๐ Enhanced Tables: Properly formatted tables in all export formats
- ๐ง Print Optimization: Clean PDF output without browser headers/footers