GitHub Repo to Text Converter — Export Code as Plain Text for AI
Convert a GitHub repository's full file structure and source code into a single plain-text document — perfect for pasting into ChatGPT, Claude, or other AI assistants.
Features
Full Repo Export
Fetches and concatenates every source file into one document with clear file separators.
AI-Ready Format
The output format includes file paths and content in a layout that LLMs understand easily.
Public Repos
Works with any public GitHub repository without requiring authentication.
How It Works
Paste the URL of any public GitHub repository.
The tool uses the GitHub API to retrieve the file tree and source code.
All files are concatenated into one document with clear file path headers.
Copy the text to your clipboard or download it as a .txt file.
Frequently Asked Questions
Related Tools
Compare two versions of any code file side by side with syntax highlighting for 50+ languages. Changed lines are highlighted in green and red — like a lightweight code review tool.
Drop a folder onto the tool and see a visual breakdown of every file and subfolder by size. Instantly find what is taking up the most space in any project, codebase, or downloads folder.
Paste formatted text from Word, Google Docs, or Outlook and instantly see the clean HTML code behind it. Useful for publishing content to a CMS, email template, or webpage.