ASCII Tree Generator
Converts an indented list into a tree like the one printed by the tree command, using box-drawing or plain ASCII branches. You can add a trailing slash to folders.
Use the tool
Why this tool exists
Documenting a project layout is a common chore. A README or a design document often needs a folder structure that shows what lives where, and drawing the branches with the right characters by hand is fiddly. The tree command only works on a real directory, which does not help when you are planning a structure that does not exist yet.
Type the names with indentation, using spaces, tabs or leading dashes, and the tool builds the tree. Items that have children can be marked with a trailing slash so folders stand out. Choose the unicode style for modern displays or ASCII for places that cannot render box characters. The conversion is local, so internal project names are not uploaded.
How to use it
- Type or paste an indented list, one item per line.
- Choose unicode or ascii branch style.
- Tick Add / to folders if you want trailing slashes on items with children.
- Copy the finished tree into your README or document.
Frequently asked questions
How is the structure worked out?
By indentation. A line indented further than the line above becomes its child. Tabs count as four spaces, and a leading dash, asterisk or plus sign is ignored, so Markdown bullet lists work as input.
Can it read an existing folder?
No, it cannot read your file system. It only formats text you give it. To capture a real directory, run the tree command or list the paths yourself and indent them.
What is the slash option for?
Any item that has children gets a trailing slash, which marks it as a directory. Empty folders look like files unless you add the slash yourself in the input.
Why do branches look broken in my editor?
The unicode style needs a monospaced font that includes box-drawing characters. If your tool cannot show them, switch to the ascii style, which uses plain dashes, pipes and backticks.