Text File Merger

This tool combines multiple text files into a single document, with clear separation between files.

Perfect for preparing code repositories as context for LLMs or ChatGPT - easily feed your entire codebase for better AI-assistance.

💡 Pro tip: Add a .ignore file to any folder to exclude it and all its subfolders from processing. For example, placing .ignore in project/node_modules/ will skip all files in that directory.

How to use:

  1. Drag and drop your text files into the box below, or click "Select Files"
  2. Your files will be combined automatically
  3. Use the "Copy to Clipboard" button to copy the merged content

Drag and drop text files or folders here

or

Supported file extensions (click to edit)

🔒 Note: Files are processed entirely in your browser and are never uploaded to any server.

Best Practices for Code Analysis with AI

  1. Select a folder:
    • Customize file extensions in the dropdown above to include only relevant files
    • Add .ignore files to folders you want to exclude (like node_modules, build, etc.)
  2. Copy your processed codebase using the "Copy to Clipboard" button
  3. Use with Google AI Studio:
  4. Ask specific questions about your codebase to get the most accurate and helpful responses

This workflow helps to analyze large codebases with AI while getting more accurate responses.