How to Extract Files and Code Blocks from ChatGPT & Claude AI Replies into a ZIP
1. The Tedious Copy-Paste Workflow
When ChatGPT or Claude designs a full application, it outputs multiple code blocks across several files: App.tsx, styles.css, schema.sql, and api.ts. Manually creating files, copying each block, and pasting it into your IDE is slow and prone to copy errors.
2. Intelligent File Path Detection
Modern AI prompts indicate file destinations using various styles:
- Inline comments at the top of fences:
// filepath: src/components/Header.tsx - Markdown headings preceding code blocks:
### 1. `backend/server.py` - Code fence metadata tags:
```python:utils/helpers.py
3. In-Browser ZIP Bundling
The MafLabs Extract Files utility parses these patterns automatically, previews individual files, and bundles them into a structured ZIP archive directly in your browser memory.
Try the Free Tool on MafLabs
Run 100% in your browser. Fast, ad-free, and private with zero cloud data retention.
Open Extract Files from AI Reply →