Convert a Local Folder to Text

Combine a directory or ZIP archive into one formatted text file

Try the new version of repo2txt

Supported archive format: .zip

Convert From GitHub Instead

Create one text file from a local codebase

The local converter turns files from a folder or ZIP archive into one structured text output. Use the directory tree and extension filters to keep only the source, documentation, or configuration files you need before copying or downloading the result.

How to convert a folder to text

  1. Select a local directory, or choose a ZIP archive.
  2. Review the generated file tree and uncheck anything you do not want to include.
  3. Use the extension filters to narrow the export to relevant file types.
  4. Generate the combined text, then copy it or download it as a text file.

Useful for code and documentation

  • Prepare focused source context for an LLM prompt.
  • Combine project documentation and configuration for review.
  • Estimate the output token count before using the generated text.
  • Use the GitHub repository to text converter when the project is hosted on GitHub.

Your selected files stay in the browser

repo2txt Classic reads selected folders and ZIP archives through browser file APIs and assembles the output locally. The site has no file-upload backend, so your selected source files are not uploaded to repo2txt. ZIP is the only supported archive format.