Skip to content
Jellykit

Folder Tree Diagram Generator

Drop a folder to get a text tree diagram of its files and subfolders, with patterns to leave things out, ready to paste into docs.

  • Runs on your device
Loading tool

About Folder Tree Diagram Generator

A tree diagram is the quickest way to show how a project or an archive is laid out: in a README, a support ticket, documentation or a handover note. Drop a folder, or choose one, and its structure is drawn in the same style as the tree command, with box-drawing lines or plain ASCII.

Leave out the noise with patterns such as node_modules, .git or *.log, limit the number of levels, show folders only, or add the size of every file and folder. Only names and sizes are read; no file is opened, and nothing leaves this device. Copy the result or download it as a text file.

How it works

  1. A dropped folder is walked entry by entry, so empty subfolders appear too. A folder chosen with the button arrives as a list of files, so empty subfolders cannot be seen that way.
  2. A pattern without a slash, such as node_modules or *.log, leaves out any item with that name at any depth. A pattern with a slash, such as docs/drafts or src/**/test, is matched from the top folder.
  3. Items are sorted the way people read numbers, so file2 comes before file10, with folders first unless you turn that off. The last line counts the folders and files shown.

Questions

Why are hidden files such as .env in my tree?

The browser hands over every file in the folder, hidden or not. Add the names you do not want, such as .env or .*, to the patterns to leave them out.

Why does an empty folder not appear?

When a folder is chosen with the button rather than dropped, the browser lists only files, so a folder with nothing in it is invisible. Drag and drop the folder instead to include empty folders.

How large a folder can it draw?

Up to 200,000 files. The contents of the files are never read, so even a large folder is drawn in a few seconds.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.