Combine Files for AI

Combine files for AI merges a project's source files into one bundle you can paste into ChatGPT, Claude or Gemini. Drop files or a whole folder; dependency and build folders, binaries and very large files are skipped automatically. Each file is labelled with its path inside a code fence or an XML tag, a file tree goes at the top, and a running token estimate shows whether it fits the model's context window. Files are read in your browser and never uploaded.

Rough context sizes

TokensAbout
8,00030 KB of code
32,000125 KB
128,000500 KB
200,000800 KB
1,000,0004 MB

When to use it

  1. Give an AI enough of a codebase to answer questions about it.
  2. Ask for a review across several related files.
  3. Package a config folder for debugging help.
  4. Trim a bundle to fit a model's context window.

How to Use

  1. Drop files or a project folder.
  2. Exclude file types or remove files you don't need.
  3. Pick Markdown or XML and the model to check the size against.
  4. Copy or download the bundle.

Features

  1. Folder drop
  2. Skips binaries, dependency and build folders
  3. Markdown fences or XML tags
  4. File tree header
  5. Language detection
  6. Token estimate against context windows
  7. Reorder and exclude files
  8. 100% client-side

FAQs

Which files are skipped?

Anything in node_modules, .git, dist, build and similar folders, binary files such as images, and files over 2 MB.

Markdown or XML — which is better?

Both work everywhere. XML <file> tags are what Anthropic recommends for Claude; Markdown fences read more naturally in ChatGPT.

How accurate is the token count?

It's an estimate at about four characters per token. Paste the bundle into the LLM Token Counter for an exact count per model.

Can I leave out some file types?

Yes. Click an extension to exclude it, or remove single files and reorder the rest.

Are my files uploaded?

No. They're read in your browser. Check for secrets such as .env files before you share the bundle with an AI service.

Technical Details

Files and folders are read in the browser. Paths under node_modules, .git, dist, build, .next, __pycache__, virtual environments, target and coverage are skipped, as are files over 2 MB and binary files — detected by a NUL byte or a high share of control characters in the first 8 KB, the same heuristic git uses. Each remaining file becomes a section: in Markdown mode a heading with its path and a code fence tagged with its language (from the extension, or names such as Dockerfile and Makefile), with the fence made one backtick longer than any run of backticks inside the file so Markdown files containing code blocks don't break the bundle; in XML mode a <file path="…"> element with the path attribute-escaped, which Anthropic recommends for long documents. An optional file tree drawn with box characters goes at the top, blank-line runs can be collapsed and trailing spaces trimmed to save tokens. The size is estimated at four characters per token and compared against the selected model's context window.

Developer Tools

Developer Tools

  • Freelance Rate Calculator
  • H-1B Wage Level Worksheet
  • Keyboard Tester
  • localStorage Viewer
  • Public API Directory
  • Tech Stack Decision Matrix
  • htaccess Redirect Generator
  • Code to Image