Folder Structure Generator – Markdown, Tree, JSON & YAML

Turn indented text or ASCII trees into beautiful directory structures for your README, blog posts and docs. 100% browser-based, no upload.

Try it Free →

Features

🌳

Four Output Formats

One input, four outputs: Markdown nested list, ASCII tree, JSON and YAML — switch with tabs.

Live & Debounced

Edits parse and re-render after 200 ms so every format stays in sync without a convert button.

🧠

Smart Parsing

Auto-detects 2-space, 4-space or tab indentation, and recognises ASCII tree characters like ├── └── │.

💬

Inline Comments

Append # your comment to any line — comments are preserved in Markdown, tree, JSON and YAML output.

🔀

Flexible Sorting

Keep original order, sort alphabetically, or put folders first — applies to every output format.

📚

Built-in Samples

Load ready-made templates for React, Node.js, Python and Monorepo projects with one click.

🔒

Privacy First

All parsing happens in your browser. Nothing is uploaded; your directory layout stays on your device.

📥

Copy & Download

Copy any format to your clipboard, or download as .md, .txt, .json or .yaml in one click.

How to Use

1

Paste or type your structure

Use indented lines like "src/" with two spaces per level, or paste an ASCII tree with ├── └── │.

2

Mark folders with a trailing /

Lines ending in / become folders; others become files. Add "# comment" at the end to annotate.

3

Choose a sort order

Keep original, sort alphabetically, or show folders first — perfect for clean README trees.

4

Switch tabs to pick a format

Markdown for docs, ASCII tree for terminals, JSON or YAML for tooling. All update live.

5

Copy or download

Hit Copy to drop the result into your README, or Download to save as .md/.txt/.json/.yaml.

Frequently Asked Questions

Is this tool free?
Yes — the folder structure generator is completely free with no signup or limits.
Is my data uploaded anywhere?
No. Parsing and conversion run entirely in your browser using JavaScript and js-yaml. Nothing leaves your device.
What input formats are supported?
Two styles: plain indented text (2-space, 4-space, or tab) and ASCII tree output containing ├── └── │ characters.
How do I mark a folder vs a file?
Add a trailing slash (e.g. src/) to mark a folder. Lines without a slash are treated as files, and any line that has children is automatically promoted to a folder.
Can I add comments?
Yes — anything after a # at the end of a line is treated as a comment. Comments appear in Markdown and tree output, and become a comment field in JSON and YAML.
Can I convert ASCII tree output back to JSON or YAML?
Absolutely. Paste any tree containing ├── └── │ and the tool will parse it into the unified model, then emit Markdown, JSON and YAML side by side.

← Back to pudone! home