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 as code files (
.html
,.css
,.js
) - ⌨️ Keyboard shortcut:
Ctrl+S
to run code
- Write your code in the three editors (HTML, CSS, JavaScript)
- Press
Ctrl+S
or click "Run Code" to preview - Click "Export Files" to download your code
- Choose Markdown format for sharing with AI assistants
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?tab=readme-ov-file
# Open index.html in your browser
open index.html
# Or use a local server
python -m http.server 8000