ASCII tree generator
Turn an indented list of files and folders into an ASCII or Unicode tree diagram.
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.