Paste. Fix. Download. — Meet Tree2Zip
If you’ve ever copied a file tree from ChatGPT and tried to use it…
…you already know the problem.
- Weird indentation
- Broken nesting
- Inline comments in filenames
- Missing folders
What looks like a clean project structure turns into a mess when you actually try to recreate it.
So I built Tree2Zip:
👉 Paste any file tree → get a clean, working .zip instantly
Why I built this
I kept running into the same issue:
LLMs are great at generating project structures, but the output is often inconsistent or slightly broken.
So instead of helping, it creates friction:
- You fix indentation manually
- You recreate folders by hand
- You clean up filenames
It’s small… but annoying every single time.
I wanted something that just:
takes whatever the AI gives you and turns it into a usable project
What makes Tree2Zip different
There are tools that convert folder trees into ZIPs.
But most of them assume perfect input.
Tree2Zip is built for real-world AI output, meaning it handles:
- Messy indentation (spaces, tabs, mixed)
- Tree symbols (├──, │, etc.)
- Inline comments (# like this)
- Inconsistent formatting
Basically:
if it came from ChatGPT, it should work
Example
Paste something like this:
djs-api/
├── src/
│ ├── index.ts # Entry point
│ ├── utils/
│ │ └── helper.ts
│ └── config.ts
Click generate → download:
Clean folder structure
Correct nesting
No broken filenames
Ready to use instantly.
Use Cases
- Bootstrapping AI-generated projects
- Rapid prototyping
- Sharing project structures
- Teaching / tutorials
- Saving time on repetitive setup
No login. No setup. No friction.
Just paste and download.
Feedback welcome
I’m especially interested in:
- weird / broken trees it fails on
- edge cases from different LLMs
- feature ideas (templates, file contents, etc.)
Built for developers using AI every day, and tired of fixing its formatting 😅
Example GIF

Top comments (0)