Use Tab to increase indent and Shift+Tab to decrease on the left side. Use + or - for list markers. Edit ASCII structure on the right side for automatic conversion.
The Tree Directory Structure Generator is an online tool that enables bidirectional conversion between Markdown-formatted lists and ASCII tree structures. This tool is particularly useful for displaying project structures, document directories, and similar hierarchical content.
Input the following Markdown list:
+ react-app
+ config
+ webpack.config.js
+ components
+ Modal
+ Form
+ Table
+ pages
+ home
+ app
+ help
+ package.json
+ package-lock.json
It will generate the following tree structure:
react-app
├── config
│ └── webpack.config.js
├── components
│ ├── Modal
│ ├── Form
│ └── Table
├── pages
│ ├── home
│ ├── app
│ └── help
├── package.json
└── package-lock.json
This tool is primarily implemented using React and TypeScript. Core functionalities include:
useMemo
and useCallback
to optimize performance and avoid unnecessary recalculationsreact-hot-toast
to provide feedback on successful copyinguseLocalStorage
to persist user input and retain previous contentCurrently, this tool does not provide an API interface and is only available as an online tool.
With this simple yet powerful tool, you can easily create beautiful tree directory structures, improving the readability of your documents and the visualization of your project structures.