Compress system prompts, multi-turn chat history, RAG chunks, and natural language math. Supports real multi-model BPE tokenizers (OpenAI, Claude, DeepSeek, Llama 3) with zero data leaving your browser.
Replace English phrasing with standard operator symbols (*, /, -).
Eight-point check to ensure the model retains its brief.
Raw prompt scored 0. Trimming changed it by +26. A lower score indicates that an important constraint was removed.
Start with one imperative verb: write, summarize, review, extract, compare, or plan.
Name the shape: bullets, a table, JSON, an email, or named sections.
Add a cap: 60 words, 5 bullets, one paragraph, or a maximum token count.
Add only the relevant facts, notes, diff, or excerpt — not the whole archive.
Add one line: "You are a [ROLE]." Keep it short.
Add 2–4 rules: no invented facts, no buzzwords, cite only the diff, keep the API stable.
Name the reader: a hiring manager, a beginner, a busy executive, the pull-request author.
If the format is unusual, add one short example of input → output.
A compressed prompt that lost its task or constraints causes costly retries. Build a structured brief first, then trim it here.
Open Prompt BuilderMonthly input savings at 100,000 calls/day (3,000,000 calls/month). Live pricing from the model catalog.
| Model | Input / 1M | Saved / month | Saved / year |
|---|---|---|---|
| GPT-6 Astra | $10.00 | $0.00 | $0.00 |
| GPT-6.1 Sol | $2.00 | $0.00 | $0.00 |
| GPT-6 Luna | $0.10 | $0.00 | $0.00 |
| GPT-5.5 | $5.00 | $0.00 | $0.00 |
| GPT-5.4 Mini | $0.75 | $0.00 | $0.00 |
| Claude Fable 5.1 | $10.00 | $0.00 | $0.00 |
| Claude Opus 5.5 | $4.00 | $0.00 | $0.00 |
| Claude Sonnet 5.5 | $2.00 | $0.00 | $0.00 |
| Claude Haiku 5.5 | $0.10 | $0.00 | $0.00 |
| Gemini 4 Neon | $2.50 | $0.00 | $0.00 |
| Gemini 4 Argon | $4.00 | $0.00 | $0.00 |
| Gemini 3.8 Flash | $0.75 | $0.00 | $0.00 |
| Gemini 3.5 Flash-Lite | $0.30 | $0.00 | $0.00 |
| Gemini 3.1 Pro (Preview) | $2.00 | $0.00 | $0.00 |
| DeepSeek Flash | $0.15 | $0.00 | $0.00 |
| DeepSeek V4 Pro | $0.66 | $0.00 | $0.00 |
| Grok 4.7 | $2.00 | $0.00 | $0.00 |
| Grok 4.3 | $1.25 | $0.00 | $0.00 |
| GPT-4o (Omni) | $2.50 | $0.00 | $0.00 |
| GPT-4o Mini | $0.15 | $0.00 | $0.00 |
| Llama 3.3 70B (Groq/Together) | $0.59 | $0.00 | $0.00 |
| Qwen 2.5 72B | $0.35 | $0.00 | $0.00 |
| Mistral Large 2 | $2.00 | $0.00 | $0.00 |
| Command R+ (Cohere) | $2.50 | $0.00 | $0.00 |
Input token savings only. Trimming also shortens input reading latency for models and reduces risk of context window exhaustion.
A shorter prompt is only cheaper if the model still knows what to do. This tool counts with the real o200k_base BPE tokenizer, shows exactly which words changed, and rescans the eight-part prompt brief after compression.
System prompts run on every turn. A bloated 1,000-token prompt at 100,000 calls a day is 3 billion tokens a month. The savings table prices the difference for each model in the catalog, not a hardcoded guess.
Phrases like "Please ensure that you always" or "It is critical to remember that" burn tokens without changing the instruction. Replacing them with direct directives keeps the meaning and lowers the bill.
The health score checks role, task, context, audience, constraints, format, length, and examples. If trimming drops the score, it removed something the model needed. Add the missing section back with one click.
Token counts, compression, the audit, and the diff all run locally. Your system prompts, customer data, and RAG schemas are never uploaded.
Polite filler ("Please ensure that you always"), conversational question lead-ins ("Can you tell me what is"), conversational math phrasing ("subtracted from", "multiplied by"), duplicated instructions, and decorative whitespace. It preserves your domain instructions while eliminating non-functional tokens.
Only if the cut removed part of the brief. That is why the tool rescans role, task, context, audience, constraints, format, length, and example before and after compression. If the health score drops, restore the section — a cheaper prompt that fails the first time costs more than the tokens you saved.
Providers bill the tokens their own tokenizer produces, and characters per token varies with code, JSON, punctuation, and non-English text. This tool runs the o200k_base BPE tokenizer in your browser for an exact OpenAI count, which is within a few tokens per hundred words for Claude, Gemini, Llama, and DeepSeek.
It depends on prompt size and request volume, so the savings table prices the real difference for every model in the live catalog. A 300-token reduction on a prompt sent 1 million times a month is 300 million input tokens removed — meaningful on a frontier model, noise on a cheap one.
No. Tokenization, compression, the health audit, and the word diff all run in your browser. There is no model call, no account, and no server-side copy of the text. Nothing is saved unless you keep it in the tab.
The builder writes a complete brief from eight fields and twelve templates. The trimmer cuts waste from a prompt you already have. Use the builder first when a prompt is missing context or constraints, then trim the finished prompt and confirm the audit still passes.