Skip to main content

Directory Tree Generator: ASCII Folder Tree for Your README

Turn an indented file list into a clean ASCII folder tree with box-drawing guides, choose Unicode or ASCII, then copy it into any README, browser-only

  • Runs locally
  • Category Developer & DevOps
  • Best for Checking file type, size, metadata, and obvious mismatch signals before sharing.
Write one file or folder per line and use indentation to show nesting; end a folder line with a slash. The tool draws the README-style tree with ├── └── and │ guides. Pick 2-space, 4-space or Tab indentation, switch between Unicode and ASCII connectors, and keep or drop the folder slash. Flip to Reverse to turn a tree back into an indented list. Everything runs in your browser and the share link reopens the exact tree.
Mode
Options
Indented list7 entries
ASCII tree

What this tool does

Free directory tree generator that turns a plain indented list of files and folders into the box-drawing tree people put in a README or paste into a chat. Write one entry per line, use indentation to show what sits inside what, end a folder line with a slash, and the tool draws the connectors for you. It produces the same shape the unix tree command prints, with the proper branch and pipe guides so every level lines up no matter how deep the nesting goes. You can set the indent unit to two spaces, four spaces or a Tab, switch the connectors between Unicode and plain ASCII for terminals that mangle box characters, keep or drop the trailing slash on folders, and copy the whole tree with one click. A reverse mode does the opposite: paste a finished tree and get the indented list back so you can edit a structure someone already drew and regenerate it. Everything runs in your browser as you type, nothing is uploaded, and the share link reopens the exact tree.

Tool details

Input
Files + Text
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Copy
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
Shareable URL state
Key settings are encoded in the URL so another person can reopen the same setup.
Performance budget
Initial JS <= 9 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Developer & DevOps · Developer
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How Directory Tree Generator fits into your work

Use it before upload, handoff, archive, support review, or any moment where a file needs one local check before it leaves your machine.

File jobs

  • Checking file type, size, metadata, and obvious mismatch signals before sharing.
  • Preparing mixed folders for upload, archive, intake, or review.
  • Keeping sensitive files in the browser instead of sending them to an account-based service.

File checks

  • Do not treat the extension alone as proof of the real file type.
  • Review metadata before a file goes to customers, vendors, or a public page.
  • Keep the original file until the copied, converted, or exported result is verified.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 .gitignore Generator Pick your stack — Node, Python, Go, Docker, macOS, VS Code — and get a deduped, sectioned .gitignore. Browser-only. Open
  2. 2 Add Line Numbers Number every line of pasted text — set start, step and separator, zero-pad to align, skip blanks, or strip numbers back off — browser-only Open
  3. 3 ASCII Art Generator Generate ASCII art from text — figlet-style banners, multiple fonts. Open

Real-world use cases

  • Document a project structure in your README

    A good README opens with the folder layout so a new contributor knows where things live. Type the structure as an indented list, mark the folders with a slash, and the tool draws the box-drawing tree. Paste it inside a fenced code block and it renders in monospace on GitHub. When you add a folder later, edit the list and regenerate rather than nudging box characters around by hand and breaking the alignment.

  • Show a directory layout in a tutorial or blog post

    Writing a guide where the reader has to create a specific set of files? A tree makes the target obvious at a glance. Sketch the layout, generate the tree, and drop it in so readers can compare their own folder to the picture instead of parsing a paragraph of prose about which file goes where. Switch to ASCII connectors if your blog platform mangles the Unicode box characters.

  • Capture a folder layout where the tree command is not available

    You are on a machine without the unix tree command, or in a sandbox, or you only have a screenshot of someone else's file explorer. Re-type the structure as an indented list and get the same output the tree command would have produced, including the branch and pipe guides, without installing anything. Copy it into a ticket, a code review, or a design doc to show exactly which files a change touches.

  • Plan a folder structure before you create it

    Designing the layout for a new service or library is easier to reason about as a tree than as scattered notes. Draft the directories and key files as an indented list, watch the tree update live, and rearrange until it reads well. Share the URL with a teammate to agree on the shape before a single folder exists, then build it out to match.

Common pitfalls

  • Mixing indent units in one list. If some lines use two spaces and others use a Tab while the tool is set to spaces, a child can land at the wrong depth or jump under the wrong parent. Pick one unit, set the tool to match, and keep the whole list consistent.

  • Forgetting the trailing slash on folders. Without it, a folder with no children looks like a file, so an empty directory like assets/ shows as plain assets. Add the slash to any folder, especially leaf folders that hold nothing yet, so readers can tell directories from files.

  • Pasting the rendered tree somewhere that breaks box characters. A Unicode tree turns into question marks or boxes in some terminals, log viewers and plain-text email. If the target garbles it, switch the connectors to ASCII and copy again so the shape survives.

Privacy

Building the tree is plain JavaScript that runs entirely in your browser tab: the file and folder names you type never leave the page and are never logged, so you can sketch the layout of an unreleased or internal project without it going anywhere. One caveat: the shareable URL encodes your list in the query string, so a share link pasted into chat records those names in the recipient server's access log, and a very long structure is dropped from the link while the tool keeps working on screen. For a confidential layout, use the copy button and paste the text rather than sharing the URL.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-05-29