repo2txt is an open-source developer tool that converts the contents of a code repository into a single structured text file that can be easily consumed by large language models. The tool is designed to address the challenge of analyzing entire codebases with AI assistants, where code is normally distributed across many files and directories. By collecting repository contents and formatting them into a single text document, repo2txt allows developers to feed complete projects into AI systems for analysis, documentation, or code explanation tasks. The application can load repositories from platforms such as GitHub or from local directories and provides an interface for selecting which files should be included in the generated output. It also supports filtering by file types and automatically respecting ignore patterns defined in project configuration files.

Features

  • Converts entire code repositories into a single structured text file
  • Supports repositories from GitHub, local directories, and compressed archives
  • Smart filtering based on file types and ignore patterns
  • Directory tree preview for selecting files before export
  • Real-time token counting for large language model prompts
  • Fully browser-based processing for privacy and security

Project Samples

Project Activity

See All Activity >

Follow repo2txt

repo2txt Web Site

Other Useful Business Software
AI-powered service management for IT and enterprise teams Icon
AI-powered service management for IT and enterprise teams

Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity. Maximize operational efficiency with refreshingly simple, AI-powered Freshservice.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of repo2txt!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Large Language Models (LLM)

Registered

2026-03-06