Tree Generator
Free online tree generator tool, no installation required
About Tree Generator
Converts an indented plain-text outline into an ASCII or Unicode directory-tree diagram, suitable for pasting into a README. The tool reads the leading whitespace of each line to infer parent/child nesting (deeper indent = child), then emits connector characters (├─ / └─ for Unicode, +-- for ASCII) that visually branch each entry under its parent.
How to Use
1. Type or paste your outline into the Input textarea. Each line is one node; indentation (spaces) determines the hierarchy. 2. Choose a Style: ASCII (uses +-- and | connectors, safe for any renderer) or Unicode (uses ├─ and │ connectors, more compact and modern). 3. Click Generate to render the tree. 4. Use Copy next to the output to copy the rendered tree to the clipboard as plain text.
Indentation Rules and Connector Style
Indentation is measured by the position of the first non-whitespace character on each line, so any consistent step (2 spaces, 4 spaces, tabs rendered as spaces) works. - A line at the same indent as the previous one is treated as a sibling. - A deeper indent than the previous line is treated as its child. - A shallower indent closes the current branch and returns to the matching ancestor. Connector glyphs by style: - Unicode: ├─ for a non-last child, └─ for the last child, │ (three spaces of width) for vertical continuation. - ASCII: +-- for child connectors, | for vertical continuation. The ASCII mode keeps output safe for plain-text environments that strip Unicode box-drawing characters.
▶Does the tool support tabs as indentation?
▶What is the difference between ASCII and Unicode style?
▶Can I generate a tree from a real folder on disk?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee