Skip to content
100% local

ASCII tree generator

Turn an indented list of files and folders into an ASCII or Unicode tree diagram.

Input

ASCII tree generator

Paste an indented list of folders and files and this tool draws it as a tree diagram, with the connecting lines filled in automatically — ├── and └── for branches, │ for the vertical lines that carry a folder's structure down the page. It's built for documentation: a README showing a project's layout, a wiki page describing a file structure, or a comment explaining how a directory is organized, without hand-drawing every line yourself.

Line style switches between Unicode box-drawing characters (├── └── │) and a plain-ASCII style using + and | for terminals, plain-text emails or older editors that don't render Unicode glyphs reliably. Indent size per level sets how wide each level's connector is, to match your source list's own indentation. Root name adds one top-level line above the tree — your project's name — so it has a single clear root instead of several items sitting flush left. Add trailing slash to folders appends "/" after any entry that has children, a quick visual cue for which lines are directories. Direction flips the whole operation: paste a tree back in and get the indented list it came from, handy for editing a tree pasted from a chat message or a colleague's file listing.

Input can use either spaces or tabs — a tab always counts as one full level, regardless of the indent-size setting, and blank lines are ignored. Reversing a tree back to a list recognizes both the Unicode and ASCII styles automatically, so you don't need to know which one produced the tree you're pasting.

Everything runs locally in your browser — nothing you paste here is uploaded or stored anywhere. Copy the result, download it as a .txt file, or send the output straight back into the input to refine a large tree in stages.

FAQ

Does it support both spaces and tabs for indentation?
Yes. Tabs and spaces both work as indentation, and a tab always counts as one full level regardless of the indent-size setting.
What is the difference between the Unicode and ASCII line styles?
Unicode uses the box-drawing characters ├── └── and │ for a cleaner look. ASCII uses plain + and | characters instead, for terminals or text fields that don’t render Unicode glyphs reliably.
Can I convert a tree back into an indented list?
Yes. Switch direction to "Tree → indented list" and paste a tree diagram — it recognizes both the Unicode and ASCII line styles automatically.
How does it decide which entries get a trailing slash?
When "Add trailing slash to folders" is on, any entry that has at least one child line beneath it gets a "/" appended, since only folders can contain other entries.
Is my file or folder list uploaded anywhere?
No. The tree is generated entirely in your browser — your list never leaves your device.