ASCII Tree Printer

Turn an indented list or paths into an ASCII directory tree.

The ASCII Tree Printer turns a list of file paths or an indented outline into a tree drawn with line characters, like the output of the tree command. Choose Unicode connectors or plain ASCII ones. It is handy for READMEs, documentation and design notes.

What is an ASCII tree?

A text tree shows a hierarchy such as a directory layout using connector characters. Each child is drawn with a branch symbol, the last child in a group gets a different corner symbol, and vertical bars carry the lines down through deeper levels. The idea comes from the tree command and is common in READMEs and pull request descriptions because it is plain text that survives copy and paste. This tool accepts two input forms. A list of slash-separated paths builds the hierarchy from the path segments and merges shared folders. An indented list builds it from the indentation depth, so you can describe any outline, not just files. The Unicode style uses box-drawing characters, while the ASCII style uses only plus, backslash, hyphen and the vertical bar.

How to use ASCII Tree Printer

  1. Enter the structure Type paths, one per line, or an indented list, in the Paths or indented list box.
  2. Choose a style Select the Unicode or ASCII option under Style.
  3. Read the tree Print tree is the selected operation, so the Tree box updates as you type or switch the style.
  4. Copy Copy the Tree output or download it as tree.txt.

Frequently asked questions

Can it read a real directory?

No. It only formats text you paste. You can generate a list of paths with a command such as find or git ls-files and paste it in.

Why is there a dot at the top?

When the input has several top-level entries there is no single root, so a dot is used as the root, like the tree command.

Will it add trailing slashes to folders?

No. Names are printed as given, with slashes only used to split path segments.

Can I mix paths and indentation?

No. If any line is indented, the input is read as an indented outline and slashes stay part of the names.

Is my input sent anywhere?

No. The tree is built in the page and the input stays on your device.