Free Tool

Codebase to Prompt Converter

Bundle your files and directories into a clean, token-optimized context prompt for Claude, ChatGPT, and Cursor. Runs 100% locally in your browser.

Add Source Files
Drag & drop files, folders, or .zip archives
Binary files and dependency folders are automatically ignored
Prompt Settings
Target Format
Include Directory Tree Summary
Custom Instruction (Prepended to Prompt)
Compiled Prompt Ready to paste into your LLM
Files: 0
Tokens: ~0
Characters: 0

Codebase Prompting FAQ

Are my files uploaded to any server?

No. This tool runs 100% locally in your browser using the native HTML5 File API and JSZip. Your files never leave your device, meaning confidential source code, proprietary algorithms, and sensitive internal scripts remain completely private.

Why wrap files in XML tags instead of Markdown?

Both Anthropic (Claude) and OpenAI strongly recommend using distinct XML tags (such as <file path="...">) to wrap multi-file codebases. Unlike markdown backticks, which can clash with existing code blocks inside your files, XML boundaries provide unambiguous separation between instructions, file metadata, and actual file contents.

Which files are automatically ignored?

To save valuable prompt tokens, this tool automatically filters out dependency directories (such as node_modules, dist, .git), lockfiles (like package-lock.json), and binary files (including images, audio, video, and fonts).

Your app here

Turn your web apps into installable PWAs

Progressier abstracts your manifest, service worker, and caching logic so you can deliver native-feeling web applications effortlessly.

Generate PWA See plans