Paste Any AI File Tree Get a Clean Project Instantly (Tree2Zip)
Source: Dev.to
Overview
Tree2Zip lets you paste any file‑tree output from an LLM (e.g., ChatGPT) and instantly download a clean, working .zip archive.
If you’ve ever copied a project structure from an AI and faced:
- Weird indentation
- Broken nesting
- Inline comments in filenames
- Missing folders
you know how frustrating it can be to turn that “clean” tree into a real project.
Tree2Zip removes that friction by handling the messy output automatically.
How It Works
- Paste any file‑tree text (including symbols like
├──,│, mixed spaces/tabs, and inline comments). - Click Generate.
- Download a ready‑to‑use ZIP file with the correct folder hierarchy.
Features
- Robust parsing of irregular indentation (spaces, tabs, mixed).
- Supports common tree symbols (
├──,│, etc.). - Strips inline comments (
# comment). - Handles inconsistent formatting without requiring perfect input.
- Works out‑of‑the‑box with trees generated by ChatGPT or other LLMs.
Example
Paste a tree like this:
djs-api/
├── src/
│ ├── index.ts # Entry point
│ ├── utils/
│ │ └── helper.ts
│ └── config.ts
Click Generate → Download and you’ll receive a ZIP containing:
djs-api/
└── src/
├── index.ts
├── utils/
│ └── helper.ts
└── config.ts
Use Cases
- Bootstrapping AI‑generated projects
- Rapid prototyping
- Sharing project structures
- Teaching / tutorials
- Saving time on repetitive setup
Just paste and download.
Try It
Feedback & Contributions
We’re especially interested in:
- Weird or broken trees it fails on
- Edge cases from different LLMs
- Feature ideas (templates, file contents, etc.)
Built for developers who use AI daily and are tired of fixing its formatting. 😅