📦 Project Code to TXT for LLM

Processed locally in the browser · nothing uploaded AI-Ready

Recursively merge project code into one path-annotated TXT for LLM analysis.

Step 1 · Select project folder
or
📋 Actions & workflow
Waiting for a project folder…

How to use Project Code to TXT for LLM

Follow the steps to get it done

1

Select several files

Open the page and start — no registration or sign-in needed.

2

Extract the plain text content

Settings can be changed at any time; all computation happens in your browser.

3

Merge and export as TXT

Copy or download the result when you are done. Nothing is kept on this site.

Page Actions

Choose a folder (button)

Choose a project folder through the browser file API, with subfolders read recursively.

File type ticks

Tick the code and text suffixes to include. Directories such as node_modules, .git, and dist are skipped automatically.

Merge

Join all the text together in the "// --- file path ---" format, with a live preview on the right.

Download TXT

Export the merged text as a single TXT file, ready to feed to an AI.

Clear

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):

  1. Open the tool page https://tools.waoww.com/tools/alltotext/
  2. 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.
  3. Tick the code and text suffixes to include. Directories such as node_modules, .git, and dist are skipped automatically.
  4. Click the 「⚡ 2. Combine file contents」 button (#btnCombine). The merged text is shown live in the preview area (#preview) on the right.
  5. 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

About 40 text and code suffixes. Directories such as node_modules, .git, and dist are skipped automatically, and only text content is read.
No. This tool only reads the contents of text and code files. Text in images and scanned documents cannot be extracted.
No. All computation for this tool happens in your browser's memory, and nothing remains after you close the page. No request is sent to this site's servers.
Any recent browser works (Chrome, Edge, Firefox, or Safari from the last three years). It works on phones too, but batch file handling and table checks are more efficient on a large screen.
Refresh the page first (resources may be cached by the browser), then check that the file format and size match the hints on the page. If it still fails, send the steps to reproduce via 「Feedback」 in the top bar.
No hard limit on file count or size in the code. It automatically skips node_modules, .git, dist, build, .next, .nuxt, and vendor folders, and recognizes about 40 text and code file extensions.
Text tools mainly handle one piece of content at a time. Some tools can generate multiple items in one run or import two files at once — see the workbench buttons.
A single merged TXT file: all text content joined and labeled by file path, previewable on the right, ready to download and feed to a large language model.
Yes, once the page has loaded successfully (it relies on the browser cache). If you clear the cache or switch devices, you need to go online to load it again.
No. Favorites and recent-use records only store tool names, never your files or text. When you are not signed in, favorites are kept only in your browser's localStorage; after signing in they sync to your account and work across devices. Recent-use records stay on your own machine.
First check that the input is complete and the format matches the hints on the page — you can click the example on the page to verify quickly. If it is still wrong, refresh the page and send us the steps and a screenshot via the feedback form.
Send your question or suggestion via 「Feedback」 in the top bar. Describe the use case and the outcome you want, and we will assess it before updating the tool and the page.