Practical overview
When it fits
Use Repo2Txt when an AI-assisted development task needs a manually prepared text snapshot of selected codebase files. Choose GitHub for repository URLs, or the Local provider for a directory or ZIP.
Who it is for
- Developers assembling codebase context for an LLM prompt.
- Users who want to select files from a GitHub repository, local directory, or ZIP before creating a text export.
- Developers reviewing file and token counts while deciding what repository material to include.
Documented uses
- Gather selected repository files into one text artifact.
- Narrow exported contents by file extension, directory, .gitignore rules, or custom ignore patterns.
- Copy or download the generated text for an LLM-assisted development workflow.
- Use token and line counts to assess the selected files.
Requirements & limits
The README says the hosted tool requires no installation. A personal access token is documented for private GitHub repositories and higher GitHub rate limits; tokens are stored in sessionStorage.
- GitHub URLs can target a default branch, a named branch, or a folder path; a token is documented for private repositories and higher rate limits.
- Local directories and ZIP uploads use the same filtering and export options as the GitHub workflow.
- Gitignore support, custom ignore patterns, extension filters, directory selection, and a file tree preview help shape the exported context.
- Token and line counts are available for files and the generated selection.
- The project describes processing as local in the browser, without server uploads; GitHub tokens are stored in sessionStorage.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Export selected files from a GitHub repository
Create a text file from chosen repository contents for use as LLM context.
Before you start
- A GitHub repository URL.
- A personal access token for private repositories; the README also documents one for higher rate limits.
Steps
Enter the GitHub repository URL and, if needed, a personal access token.
Load the repository.
Choose files using the file tree or extension filters.
Generate the output, then copy it or download it as a .txt file.
Expected outcome
A single formatted text output containing the selected repository files, ready to copy or download.
Guide limitations
- GitLab and Azure DevOps support are labeled beta.
- The documented workflow describes text export, not LLM analysis or code changes.
Export project files from a local directory or ZIP
Prepare selected local project files as a single text output.
Before you start
- A local project directory or ZIP file.
Steps
Switch to the Local provider.
Choose Directory or Zip File.
Select the project folder or upload the ZIP.
Apply the available filtering and export options, then generate the output.
Expected outcome
A text artifact assembled from the selected local project files.
Guide limitations
- The README states that the same filtering and export options as the GitHub workflow apply; it does not detail additional local-source steps.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 October 2026
- Original website title
- abinthomasonline/repo2txt · Official homepage title · retained in its source language
Related options
repo2txt-classic — The README points readers seeking the classic version to this separate project.

