A powerful userscript that allows you to export your Claude.ai conversations in multiple formats with improved reliability and features.
- Multiple Export Formats: Choose from Markdown, Plain Text, or JSON
- Auto-Scroll Loading: Automatically loads full conversation before export
- Smart Conversation Detection: Robust element detection that adapts to UI changes
- Speaker Identification: Distinguishes between human and Claude messages
- Clean Output: Automatically removes UI elements, buttons, and icons
- Metadata Inclusion: Adds timestamps, export date, and message counts
- User-Friendly Interface: Elegant dropdown menu with hover effects
- Debug Mode: Built-in debugging for troubleshooting
- Cross-Browser Compatible: Works with all major userscript managers
- Mobile-Friendly: Compact design that works on small screens
Clean, intuitive interface with multiple format options
Professional formatting with proper conversation structure
- Perfect for documentation and note-taking
- Includes headers and proper formatting
- Compatible with GitHub, Notion, and other markdown editors
- Simple, universal format
- Easy to read and share
- Compatible with any text editor
- Structured data format
- Includes full metadata
- Perfect for programmatic processing or backup
-
Install a userscript manager:
- Tampermonkey (Chrome, Firefox, Safari, Edge)
- Greasemonkey (Firefox)
- Violentmonkey (Chrome, Firefox, Edge)
-
Click the userscript file or copy the code
-
Your userscript manager will prompt you to install
-
Visit Claude.ai and start chatting
- Have a conversation with Claude
- Look for the π₯ Export Full button in the bottom-right corner
- Click to open the format selection menu
- Choose your preferred format:
- π Markdown - For documentation and notes
- π Plain Text - For simple text files
- π JSON Data - For structured data
Your conversation will automatically download with a timestamped filename including message count.
The script uses multiple CSS selectors to find conversation elements, making it resilient to Claude.ai UI updates:
const selectors = [
'[data-testid*="message"]',
'[class*="message"]',
'.col-start-2',
'[role="presentation"] > div > div'
];
Automatically removes unwanted elements while preserving conversation content:
- SVG icons and images
- UI buttons and controls
- Hidden accessibility elements
- Navigation elements
Forces complete conversation loading before export:
- Scrolls to top to load older messages
- Waits for content to fully load
- Processes in batches to avoid memory issues
- Shows progress notifications during loading
Files are automatically named with timestamps and message counts:
claude-FULL-conversation-156msgs-2025-05-26T14-30-45.md
The script can be easily customized by modifying the CONFIG
object:
const CONFIG = {
buttonText: 'Export Full', // Button text
formats: ['txt', 'md', 'json'], // Available formats
defaultFormat: 'md', // Default selection
includeTimestamps: true, // Include timestamps
includeMetadata: true, // Include conversation metadata
autoScroll: true, // Auto-scroll to load full conversation
debug: true // Enable debug logging
};
Export button not appearing?
- Make sure your userscript manager is enabled
- Check that the script is active on claude.ai
- Refresh the page
Empty or incomplete exports?
- Ensure you have an active conversation
- Try scrolling through the full conversation first
- Check browser console for debug messages
- Use the "Debug Info" button to see what the script detects
UI looks different?
- Claude.ai occasionally updates their interface
- The script uses multiple selectors for compatibility
- File an issue if exports stop working
Auto-scroll not working?
- Check console for error messages
- Try disabling auto-scroll in CONFIG if needed
- Some conversations may be too long for auto-loading
Found a bug or want to add a feature? Contributions are welcome!
- Fork the repository
- Create a feature branch
- Make your changes
- Test with different conversation types
- Submit a pull request
- Original Script: TheAlanK & SAPIENT
- Enhanced Version: iikoshteruu
- Based on: Export Claude.Ai v1.1-miniaturized
MIT License - feel free to modify and distribute!
Made with β€οΈ for the Claude.ai community