Repo to LLM Context Packer

Turn a codebase into one clean file for ChatGPT, Claude or Gemini. Drop a folder or ZIP, or paste a public GitHub URL: it skips junk and lockfiles, redacts secrets, shows token counts per file against your context window, and exports Markdown, XML or plain text, optionally split into parts.

Packed in your browser, nothing uploaded
Drop a project folder or a .zip here Folders are read locally. node_modules, .git, build output, lockfiles, images and .env files are skipped by default.

GitHub URLs use GitHub’s public API (60 anonymous requests per hour; one pack uses two) and download files one by one. For private repositories or very large ones, download the ZIP from GitHub and drop it here.

How to give an AI your whole codebase

Chat assistants cannot browse your repository, so the usual way to ask questions about a project is to paste its code. Doing that by hand wastes the context window on lockfiles, build output and images and risks leaking secrets. The packer builds one file with a directory tree and each source file in a clearly labelled block, so the model can see how the project fits together.

What gets left out, and why

Fitting the context window

Token counts are shown per file and in total against the budget you choose (an estimate by default, exact for OpenAI models). If the pack is too large, exclude the biggest files, narrow it to the folders that matter, or split it into parts that each fit.

Markdown, XML or plain text?

Markdown with fenced code blocks is the most readable and works everywhere. XML tags give models an unambiguous boundary around each file, which some prompts prefer. Plain text is the most compact.

How to use the Repo Packer

  1. Drop a folder or ZIP, or paste a public GitHub URL.
  2. Check the token total against your context budget and untick files you do not need.
  3. Choose Markdown, XML or plain text, and split into parts if needed.
  4. Copy the result or download it and give it to your AI.

Why use this packer

  • Skips junk, lockfiles and binaries automatically
  • Redacts API keys, tokens and passwords
  • Token counts per file, exact for GPT models
  • Works from a folder, ZIP or GitHub URL, all in your browser

Frequently Asked Questions

How do I give ChatGPT or Claude my whole codebase?

Chat assistants cannot read your repository directly, so pack the code into one file: drop your project folder or a ZIP onto this page, or paste a public GitHub URL. Check the token total against the model's context window, then copy the output into the chat or attach the downloaded file.

Is my code uploaded anywhere?

No. Folders and ZIP files are read and packed in your browser and never sent to a server. When you paste a GitHub URL, your browser downloads the public files directly from GitHub; nothing is sent to Brace.

Does it remove secrets?

It skips files that normally hold secrets (.env files, private keys, credential files) and replaces API keys, tokens, private-key blocks and passwords found in code with [REDACTED:type]. Detection is pattern-based and cannot catch every secret, so review the output before sharing proprietary code.

How many tokens will my repository use?

The tool shows a total and a per-file count. The default is a fast estimate of about four characters per token; choose a GPT tokenizer for exact counts. Claude and Gemini counts are estimates. If the total is over your budget, exclude the largest files, narrow the include list, or split the output into parts.

Can it pack private repositories or very large repos?

From a URL it works with public repositories only and is limited by GitHub's anonymous rate limit of 60 requests per hour. For private or very large repositories, use GitHub's Download ZIP (or zip the folder yourself) and drop it onto the page.

Which output format is best: Markdown, XML or plain text?

Markdown with fenced code blocks is the most readable and works with every assistant. XML tags put an unambiguous boundary around each file, which some prompts prefer. Plain text is the most compact. All three include a directory tree.

More Developer Tools

JSON ToolsValidate, repair, compare & JSONPath JSON FormatterPretty-print and beautify JSON CSV Viewer & EditorView, edit and convert CSV files YAML ConverterConvert YAML to JSON and back Regex TesterTest regular expressions live Text DiffCompare two texts side by side JWT ToolDecode, encode, compare and verify JWTs JWT DecoderInspect JWT header and payload XML FormatterFormat, validate and convert XML URL EncoderEncode, decode and parse URLs Base64Encode and decode Base64 strings Hash GeneratorSHA-256, MD5, HMAC and CRC32 SHA-256Generate SHA-256 checksums MD5 GeneratorGenerate MD5 hash values Text ToolsCase convert, count and transform text Number ConverterBinary, hex and octal converter Token CalculatorEstimate LLM token counts from text PDF EditorEdit text, sign and annotate PDFs Schema GeneratorJSON to TypeScript, Go, Rust, Python IndexNowSubmit URLs to Bing, Yandex & more Index CheckerIs my page indexed on Google? PII RedactorMask personal data & keys before AI Timestamp ConverterUnix epoch to date and back UUID GeneratorUUID v4/v7, ULID, Nano ID Password GeneratorSecure passwords & passphrases MCP Config BuilderConfigs for Claude, Cursor, VS Code AGENTS.md GeneratorCLAUDE.md, Cursor rules, Copilot AI Skills Library200 SKILL.md files by industry AI Readiness Checkerllms.txt, AI bots, agent access Repo PackerCodebase to one LLM-ready file Skill Linter & ConverterValidate SKILL.md, convert AGENTS.md Prompt Injection ScannerHidden instructions in text & HTML AI Crawler Controlsrobots.txt for AI bots & llms.txt Cron ParserExplain crontab, next run times SQL FormatterBeautify & minify SQL queries cURL ConvertercURL to fetch, Python, Go, PHP Chat Export ConverterChatGPT/Claude export to Markdown Markdown PreviewLive GFM preview & to HTML Color & ContrastHEX/RGB/OKLCH, WCAG checker QR Code GeneratorURL, Wi-Fi, vCard; PNG & SVG Image EditorConvert, compress, resize & crop Tool Schema ConverterOpenAI ↔ Anthropic ↔ Gemini ↔ MCP JSONL ValidatorFine-tuning & batch files SSE Stream ParserReassemble LLM streaming responses Prompt Template & DiffFill {{vars}}, compare versions