Skip to main content

One-Click Folder Flattenerv0.2

Welcome to the One-Click Folder Flattener for ChatGPT, Claude and anything else. All private, all local.

This tool simplifies the process of gathering files from local directories or GitHub repositories, making it easier to attach them to AI chat projects while preserving file structure context. Everything happens client-side. No filenames, tokens or contents are sent to a server. This tool is a simple static webpage hosted on Vercel's CDN. Safe for use with your employer, personal information, steamy fanfic or conspiracy theory. Vercel gives basic anonymized analytics for anyone pulling the page from their CDN (browser, referrer, country, OS). Code is available on GitHub for transparency.
Follow these 3 simple steps:

  1. Choose your files (local or from GitHub)
  2. Review and flatten the file structure
  3. Download the zipped, flattened files

Since everything is local, you are subject to browser limitations including available memory. The fetch may fail if the GitHub server response is too long, or when creating very large zip files. This won't affect many users. Try to keep the ZIP below 2GB. If you encounter issues, consider flattening smaller sets of files.

1Choose Your Files

Add Local Files or Directories

Add GitHub Repository