treediagrammaker.com

Text to Tree

Outline in, ASCII tree out. Paste or type an indented list and copy a clean ├── tree for your README, docs, or code comments. Always free, never watermarked.

Outline

Indent = child (Tab or 2 spaces) · (0.5) probability · [yes] branch label

project
├── src
│   ├── components
│   │   ├── Button.jsx
│   │   └── Tree.jsx
│   └── index.js
├── public
│   └── favicon.ico
├── package.json
└── README.md

Outline in, tree out

This input:

project
  src
    index.js
  package.json

becomes this output, instantly:

project
├── src
│   └── index.js
└── package.json

Indentation is the whole syntax: two spaces or one Tab per level. Editing the outline beats hand-typing box-drawing characters — insert a file in the middle of a deep structure and every and └── below it is redrawn correctly. Your text autosaves in the browser, and Share link encodes the whole tree in the URL so a teammate can edit their own copy without any account.

Where ASCII trees beat images

Round-trip with the visual modes

Text mode shares its outline with every other mode on this site. Draft a directory structure here, then flip to the visual tree diagram view for a slide-ready PNG — or sketch an org chart visually and copy it out as text. Probability and branch labels survive the round trip too: (0.5) and [yes] prefixes show up in the text output the same way you typed them. See the examples for both kinds of starting points.

Frequently asked questions

How do I generate an ASCII folder structure for my README?

Type your directory layout as an indented outline — one file or folder per line, two spaces or Tab per level. The tool renders it with ├──, └──, and │ characters. Click Copy text tree and paste it into a fenced code block in your README.

Does the text output have a watermark?

No, never. The plain-text tree is always clean. Watermarks only apply to free PNG and PDF image exports.

Which characters does the generated tree use?

The standard box-drawing set: ├── for a middle child, └── for the last child, and │ for continuation lines — the same style as the Unix tree command, and it renders correctly in any monospace font.