📦 Project Code to TXT for LLM
Recursively merge project code into one path-annotated TXT for LLM analysis.
How to use Project Code to TXT for LLM
Follow the steps to get it done
Select several files
Open the page and start — no registration or sign-in needed.
Extract the plain text content
Settings can be changed at any time; all computation happens in your browser.
Merge and export as TXT
Copy or download the result when you are done. Nothing is kept on this site.
Page Actions
Choose a project folder through the browser file API, with subfolders read recursively.
Tick the code and text suffixes to include. Directories such as node_modules, .git, and dist are skipped automatically.
Join all the text together in the "// --- file path ---" format, with a live preview on the right.
Export the merged text as a single TXT file, ready to feed to an AI.
Clear the selected files and the merged result.
How to Let AI Use It
Follow the steps to operate the browser page — no API key needed
There is no MCP tool for this one. Let an AI assistant follow these steps to operate the browser page (button IDs and labels match the workbench above):
- Open the tool page https://tools.waoww.com/tools/alltotext/
- Click the 「📁 1. Select project folder」 button (#btnFolderPicker) to choose a project folder. When that is not supported, click 「Fallback directory picker」 (#btnFallbackPicker) to select files instead.
- Tick the code and text suffixes to include. Directories such as node_modules, .git, and dist are skipped automatically.
- Click the 「⚡ 2. Combine file contents」 button (#btnCombine). The merged text is shown live in the preview area (#preview) on the right.
- Click the 「💾 3. Download combined document」 button (#btnDownload) to download the merged file and feed it directly to a large model. Progress is shown in the log line (#log).
Example prompt (send it to your AI assistant as-is)
「Open tools.waoww.com/tools/alltotext/ and merge the code in this project folder into one TXT file. I want to feed it to a large model.」
How It Works & Highlights
How it works, and where it fits
This tool uses the File System Access API (with a webkitdirectory fallback) to read a folder recursively in the local browser, filter by file type, and join the contents into plain text marked with file paths. Files are not uploaded, which makes it a good way to prepare project context for an LLM.
Highlights
- ✓ Read a whole project recursively and pack it with one click
- ✓ Skip dependency and build output directories automatically
- ✓ Output is marked with file paths, so an AI can locate references precisely
Tips
- 💡 Before feeding the text to an AI, check the preview first. Removing unrelated test snapshots saves tokens.
- 💡 For very large projects, export by module in separate folders several times, so no single text gets too long.
- 💡 Think in .gitignore terms: selecting only core directories such as src works best.
FAQ
Privacy, format limits, and usage tips