Project Flattener

This tool helps prepare source code for Large Language Models (LLMs) by combining multiple files into a single text. Drop a folder or click Select Directory to start.

Model Selection: Choose your target LLM to ensure the output fits within its token limit

Strip Comments: Remove code comments to reduce token usage

Include Binary Files: List binary files in the output (without their contents)

Filters: Exclude files/folders that match specific patterns

Drop folder or file here

Model Settings

Removes comments from common programming languages to reduce token count

Lists binary files with their paths (no content)

Filters

Output Format

Available variables:
{path} - File path
{filename} - File name
{content} - File content
{newline} - New line character