LLM Cost Estimator
Estimate multi-model API cost from tokens or pasted prompts.
OpenStrip polite filler and stray whitespace from a prompt without touching its structure.
Add the instructions you want to tighten.
Six filler words and extra whitespace are stripped live.
Make sure quoted samples and code were not altered.
Use the trimmed prompt in place of the original.
Prompts written in a hurry pick up 'please', 'really' and 'basically' along with stacks of blank lines. On a prompt that runs thousands of times a day, that padding is paid for on every call. Prompt Trimmer removes it in one pass.
Paste a prompt and the trimmed version appears as you type. The tool removes six filler words wherever they appear as whole words: please, kindly, very, really, basically and actually. It also deletes trailing spaces at line ends, collapses runs of spaces or tabs to a single space, reduces three or more line breaks to one blank line, and trims the start and end. Single line breaks, Markdown headings and list markers are kept, so the outline of the prompt survives.
Read the result before you ship it. Removing 'very' or 'actually' rarely changes meaning, but the rule also applies inside quoted examples and code, so a sample string containing 'please' will change too. Keep few-shot examples in a separate section and trim the instructions only. Count tokens before and after to see the saving, and if trimming is not enough, check how much of the context window remains. For prompts that are short but unclear, adding structure with the optimizer helps more than trimming.
The cleanup is a handful of regular expressions running in your browser, with no model involved.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
Only six: please, kindly, very, really, basically and actually, matched as whole words in any capitalization. It does not rewrite sentences or remove other words.
Occasionally. Politeness words have little effect on most models, but deleting very from a phrase like very short can soften an instruction. Restate those limits with a number, such as under 50 words, which is clearer anyway.
No. Any run of two or more spaces or tabs becomes a single space, including indentation at the start of a line. Keep YAML, Python or other whitespace-sensitive code outside the text you trim.