← Back to tools
View AGENTS.md for dir2txt
dir2txt
Export directory structure and contents into formatted .txt or .json files
Description
dir2txt is a blazing-fast CLI tool to export a directory's structure and contents into a neatly formatted .txt or .json file. Perfect for creating project documentation or providing codebase context.
When to use this tool
✓ Good fit when
- You need to document a project's directory structure
- You want to export codebase contents for context
AI Summary
Fast CLI tool that exports directory structures and file contents to formatted text or JSON files.
Capabilities
- + Export directory structure to text
- + Export file contents alongside structure
- + Output in .txt or .json format
Use When
- → You need to document a project's directory structure
- → You want to export codebase contents for context