๐ Input Method
Drag a folder here, or click to select a folder
Auto-read directory structure to generate tree diagram
โ or manually enter file paths (one per line) โ
Upload a folder or enter paths to generate ASCII directory tree diagrams
Zero Dependencies ยท Works Offline ยท No UploadsDrag a folder here, or click to select a folder
Auto-read directory structure to generate tree diagram
โ or manually enter file paths (one per line) โ
Directory Tree Generator is a free online tool that converts project directory structures into ASCII tree diagrams. It supports two input methods: uploading a folder for auto-reading or manually entering path lists. You can customize connector styles, indentation, filter rules, and output formats. The generated tree can be used directly in README documents, project descriptions, and code reviews. All processing happens locally in your browser โ your file data is never uploaded to any server.
1. Choose an input method: drag a folder to the upload area, or manually enter file paths in the text box (one per line)
2. Set filter rules: enter directory or file names to exclude, separated by commas
3. Adjust display options: choose connector style, indent spaces, file size display, sorting method, etc.
4. Click "Generate Tree" to see the result in the output area
5. Click "Copy Result" to copy the tree to your clipboard, or select Markdown format to paste directly into README.md
Display project directory structure in GitHub README.md files, helping new contributors quickly understand code organization. Use Markdown code block output for direct pasting.
Reference project structure in code reviews or technical docs, paired with explanatory text about architecture design โ clearer and searchable compared to screenshots.
Generate current directory tree before refactoring or migration, compare old and new structures to ensure no files are missed.
Show standard project structures in programming courses, helping students understand MVC, layered architecture, and other organizational patterns.
ASCII directory trees follow the output format of the Unix/Linux tree command, which has become the de facto standard for displaying project structures. The standard format uses Unicode box-drawing characters (โโโ, โโโ, โ) or ASCII characters (|--, +--, |) to represent hierarchy. In Markdown, directory trees are displayed in triple-backtick code blocks to maintain monospace font alignment. Common filter rules include excluding version control directories (.git/.svn), dependency directories (node_modules/vendor), build outputs (dist/build), and system files (.DS_Store/Thumbs.db).
Three methods: drag-and-drop folder upload, manual path entry, or paste existing file lists.
Enter directory or file names in the exclude field, separated by commas. Built-in presets include node_modules/.git/dist.
Yes. Select Markdown code block output format, copy with one click, and paste directly into README.md.
Absolutely not! All file reading and tree generation happens locally in your browser.
Theoretically unlimited, but we recommend no more than 20 levels. Set a max depth to truncate with ellipsis.
Yes. Choose Unicode/ASCII/simple connector styles, adjust indent spaces, sorting, and more.
Chrome/Edge/Firefox support it. Safari may not in some versions โ use manual input as an alternative.