Folder Structure Visualizer is a developer tool that converts ASCII folder trees into an interactive visual explorer and allows exporting the structure as a downloadable scaffold ZIP.
Instead of manually creating dozens of folders and files when starting a project, you can paste a tree structure and generate the entire scaffold instantly.
-
๐ ASCII โ Visual Tree Paste a standard ASCII folder tree and instantly visualize it.
-
๐ณ Collapsible Folder Explorer Expand or collapse folders like a real file explorer.
- ๐ Smart Search & Highlight Instantly search files and folders by name.
- Highlights matching text in real-time
- Automatically expands relevant folders
- Filters out non-matching branches for clarity
-
๐ File & Folder Counters Automatically counts total files and directories.
- ๐จ Intelligent File Icons Automatically assigns icons based on file types and names.
- Supports multiple languages (JS, TS, Python, Java, C/C++, etc.)
- Recognizes config files (
package.json,.env,vite.config) - Enhances readability like a real IDE file explorer
-
๐ Copy Path Click any file or folder and copy its full path.
-
๐ Copy Tree as Markdown Export the folder structure as Markdown.
-
๐ฆ Download Project Scaffold Generate and download a ZIP containing the entire folder structure.
- โ๏ธ React + Vite Preset Instantly generate a ready-to-run React + Vite frontend scaffold.
-
๐จ Tailwind CSS Preset Add Tailwind CSS configuration and generate a styled starter homepage.
-
๐ฆ TypeScript (TSX) Preset Generate TSX-based React scaffolds with
App.tsx,main.tsx,vite.config.ts, and TypeScript config files. -
๐งฉ Node + Express Preset Generate a backend starter with Express and a clean folder structure.
-
๐ฅ Custom Starter Screens Generated React scaffolds include a branded startup homepage with setup instructions.
-
โ ๏ธ Vite 8 Node Warning Generated frontend scaffolds show a built-in Node.js version warning for Vite 8 compatibility. -
๐ซ Smart Ignore Rules Automatically filters out generated folders like
node_modules,dist,build,.next, andcoverage. -
๐ฑ Drag & Drop Input Drop ASCII trees directly into the editor.
-
๐ง Flexible Parsing Supports both standard ASCII trees (โโโ, โโโ, โ) and indentation-based structures. Indentation is only valid under folders (lines ending with /).
-
โจ Smooth UI Interactions
- Animated folder expand/collapse
- Rotating chevrons for visual feedback
- Subtle hover and click effects for better UX
- Real-time search filtering
- Auto-expands matching folders
- Highlights matched text for quick scanning
- Generate React, TSX, Tailwind, and Express setups
- Choose custom folder placement dynamically
- Paste ASCII tree โ instantly visualize structure
- Explore like a real file system
my-app/
โโโ public/
โ โโโ favicon.ico
โโโ src/
โ โโโ components/
โ โ โโโ Navbar.jsx
โ โ โโโ Footer.jsx
โ โโโ pages/
โ โ โโโ HomePage.jsx
โ โโโ App.jsx
โ โโโ main.jsx
โโโ package.json
โโโ README.md
This becomes an interactive visual tree inside the UI.
The Download ZIP feature creates a project scaffold where the ZIP file is automatically named after your root folder.
โ ๏ธ Important All files are generated as empty files, allowing developers to start coding immediately without manually creating folders and files.
โ ๏ธ Note The scaffold system may occasionally generate a few extra folders or files (e.g.,src/utils/) that were not explicitly defined in the ASCII tree.This happens because certain presets (React, Vite, Tailwind, etc.) include framework-required or helper directories to ensure the project runs out of the box.
These additions are non-breaking and safe to remove.
If they are not needed for your project, feel free to delete them ("yeet them") without affecting functionality.
The scaffold system can optionally generate starter files for:
- React + Vite
- React + Vite + Tailwind CSS
- React + Vite + TypeScript (TSX)
- React + Vite + TypeScript (TSX) + Tailwind CSS
- Node + Express API
- Root
.gitignore
These presets are merged into the parsed folder tree and exported as part of the ZIP.
- Framework: React (Vite)
- Languages: JavaScript, TypeScript
- Styling: CSS, Tailwind CSS
- Backend Preset: Node.js, Express
- Icons: Lucide React & React Icons
- ZIP Generation: JSZip
When scaffold options are selected, the exported ZIP can generate frontend starter projects with:
App.jsxmain.jsxvite.config.js
App.tsxmain.tsxvite.config.tsvite-env.d.tstsconfig.jsontsconfig.app.jsontsconfig.node.json
When Tailwind is enabled, the scaffold also includes:
-
tailwind.config.js -
postcss.config.js
The scaffold intelligently adapts styling based on selected options:
-
With Tailwind CSS enabled
- Uses utility-first styling
- Does NOT generate
App.css - Includes Tailwind config and directives in
index.css
-
Without Tailwind
- Generates a standard
App.css - Uses traditional CSS styling
- Generates a standard
This ensures clean, minimal, and relevant project output without unused files.
Generated frontend starter pages include a visible warning that Vite 8 requires:
- Node.js 20.19+, or
- Node.js 22.12+
Clone the repository:
git clone https://github.com/<your-username>/folder-structure-visualizer.gitNavigate into the project:
cd folder-structure-visualizerInstall dependencies:
npm installStart the development server:
npm run devOpen in browser:
http://localhost:5173
- Input โ User pastes an ASCII folder tree.
- Parsing โ The parser converts the text into a nested JSON data structure.
- Visualization โ The UI renders the structure as a collapsible file explorer.
- Action โ The structure can then be:
- copied as Markdown
- explored visually
- exported as a ZIP scaffold (ignoring build artifacts)
The application is optimized for responsiveness and smooth interaction:
- Efficient tree rendering using recursive components
- Search operates with lightweight string matching (
includes) - Only relevant branches are displayed during filtering
- Minimal DOM updates ensure good performance even on mobile devices
For extremely large folder trees, performance remains stable due to controlled rendering and state management.
- Built a recursive tree rendering system from scratch
- Designed a dynamic scaffold generator with conditional file creation
- Implemented intelligent file-type recognition and icon mapping
- Created a responsive and animated file explorer UI
- Developed a real-world developer utility tool with practical use cases
- Quick Scaffolding โ Set up new projects in seconds.
- Repo Visualization โ Understand complex repository structures instantly.
- Architecture Sharing โ Share project designs with teammates.
- Documentation โ Generate clean trees for README files.
- Preset-Based Project Bootstrapping โ Generate React, TSX, Tailwind, and Express starter structures instantly.
- README auto-generation for exported projects
- Preset variants (Minimal / Standard / Production-ish)
- Custom starter pages and branding options
- Export GitHub-ready repository metadata
This project is licensed under the MIT License.
Farhaan Khan Computer Science Engineering student passionate about building developer tools and learning through projects.
If you found this project useful, consider starring the repository to support development!




