Export your HTML, CSS, and JavaScript code into LLM-friendly Markdown files.
🔗 Live App: https://code-exporter.netlify.app
CodeExporter helps you share code with AI assistants like Claude and ChatGPT. Instead of pasting code that exceeds context limits, export it as properly formatted Markdown files that LLMs prefer.
- ✏️ Write HTML, CSS, and JavaScript in split-panel editors
- 👁️ Live preview as you code
- 📄 Export to Markdown format (
.html.md,.css.md,.js.md) - 📦 Export combined file (
.code.md) - all code in one file - 💾 Export as code files (
.html,.css,.js) - ⌨️ Keyboard shortcut:
Ctrl+Sto run code
- Write your code in the three editors (HTML, CSS, JavaScript)
- Press
Ctrl+Sor click "Run Code" to preview - Click "Export Files" to download your code
- Choose your export format:
- Individual Markdown Files - Separate
.mdfiles for each code type - Individual Code Files - Raw
.html,.css,.jsfiles - Combined Markdown File - All code in one
.code.mdfile (perfect for AI assistants)
- Individual Markdown Files - Separate
LLMs handle Markdown files better than raw code pasted in chat. Markdown preserves formatting, maintains syntax highlighting context, and stays within file attachment limits.
- CodeMirror 5.65.16 - Code editors
- Split.js 1.6.5 - Resizable panels
- Vanilla JavaScript - No frameworks
# Clone the repo
git clone https://github.com/MahmudZar/Code-Exporter.git
# Open index.html in your browser
open index.html
# Or use a local server
python -m http.server 8000