1001Ferramentas
🌳Dev

ASCII Tree Generator

Paste an indented structure (spaces/tabs) and generate an ASCII tree ready for README — ├──, └── etc. Everything in your browser.

Indented structure (2 spaces or 1 tab per level)

Generate ASCII directory trees

Those folder trees you see in READMEs, with the ├── and └── branches, give documentation a professional air. The catch is building them by hand: aligning each character one by one turns into torture. Paste an indented structure here and the tool draws the ASCII tree for you.

Write the hierarchy using spaces or tabs to mark the levels. The alignment comes out clean and the connectors land in the right spots on their own. It works well for documenting a project's structure, explaining how files are organised, or illustrating a diagram in plain text.

Generation happens in the browser itself and the result comes out ready to paste straight into your README or docs. No more aligning slashes and dashes by hand.

Frequently asked questions

How should I indent the input text?
Two spaces or one tab per level, without mixing the two. Each tab is read as two spaces and the total gets divided by two, so four spaces per level count as two levels at once and the tree grows branches that were never there. Odd indentation, three spaces for instance, lands on a broken level and the connectors stop lining up. A blank line is dropped, and whatever follows the indentation is copied verbatim: trailing slash, comment, anything typed.
Can the tool read a folder from my computer?
No, there is no upload and no directory picker. You type or paste the structure into the text box and it draws the connectors; nothing leaves the browser. A handy way to produce the input is running tree -i --noreport or find . -type d in a terminal and pasting the indented output. It draws no distinction between a folder and a file either, so a trailing slash on a folder name has to be typed in with the name.
Why is there a stray vertical bar in the tree?
That happens when more than one item sits at level zero. Root lines print with no connector of their own, yet their descendants still draw the column for level zero, so a vertical stroke appears pointing at nothing: put a README.md next to src and the button.js line, two levels down, picks one up. For clean output, build one root at a time and paste the second tree separately.

Related Tools