File Tree Generator

Create beautiful ASCII folder structure diagrams for your documentation.

File tree will appear here

Input Format

Simple List (One per line)

src/
src/components/
src/components/Button.tsx
src/lib/
src/lib/utils.ts
package.json
README.md

Output

.
├── src/
│   ├── components/
│   │   └── Button.tsx
│   └── lib/
│       └── utils.ts
├── package.json
└── README.md

Tip: Use trailing slashes for directories. Files and folders are sorted alphabetically.

Share Your Documentation

markshare renders code blocks beautifully. Create README files with file trees and share them as webpages instantly.

Try markshare Free

FAQ

What's the input format?

Enter file paths one per line. Use forward slashes for directories. Add a trailing slash to indicate folders.

Can I copy from terminal output?

Yes! You can paste output from find or ls -R commands and clean it up.

Are files sorted?

Yes, directories are listed first, followed by files. Both are sorted alphabetically within their groups.