Prompt Optimizer

How to use 4 steps
  1. Paste Your draft prompt.
  2. Press Optimize Prompt.
  3. Check the improved prompt, then press Copy.
  4. Optional: add a free AI key for stronger results.
Structured prompt

Restructures your prompt into a role/task/context/format/constraints scaffold. It does not call a language model.

This tool runs entirely in your browser and produces an estimate from the text or file you supply. It does not query an external database or index, and nothing you enter is uploaded.

How this tool works

Offline this places your draft into a fixed five-part scaffold — role, task, context, format, constraints — without reading it. The structure is sound and worth learning, but nothing here understands what you wrote, so the four parts around your draft are identical for everyone.

With a free AI key a model rewrites the prompt itself: making the task explicit, adding context it would otherwise have to guess, specifying the output format, and saying what to do when information is missing. It returns the rewritten prompt as plain text ready to copy, and is told not to answer it.

What separates a good prompt from a vague one

  • Name the output format: "a markdown table with three columns" removes an entire class of disappointing answers.
  • Supply the context: who it is for, what they already know, what the constraints are. Most weak answers are answers to an under-specified question.
  • Say what to do about gaps: "ask rather than assume" prevents confident invention.
  • Give an example if you have one: one example of the output you want outperforms three paragraphs describing it.

Why a vague prompt gets a vague answer

A language model continues text. Given an ambiguous instruction it does not ask what you meant; it picks the most statistically ordinary reading and answers that. So write about remote work returns the most average possible article about remote work, and the model has done nothing wrong.

Prompting well is therefore mostly the work of removing choices. Every decision you leave open is one the model makes for you, and it will make it blandly. The [msm_tool slug="prompt-optimizer"] rewrites a rough instruction into one that closes those gaps.

The parts of a prompt that actually change the output

  • Task. One verb, unambiguous. Summarise, compare, rewrite, classify. Two verbs in one prompt usually gets one of them done properly.
  • Audience. Who reads this and what do they already know. The single highest-leverage line, and the one most often missing.
  • Format. Prose, bullets, table, JSON, a specific number of items. Say it, or you get whatever shape is most common.
  • Length. A word count or an item count. Brief means nothing.
  • Constraints. What to avoid, what to keep verbatim, what must not be invented.
  • Context. The source material, if the answer should come from your material rather than the model's training.

A prompt with all six is usually a short paragraph, not a sentence, and that paragraph is the difference between a usable answer and a paragraph of received wisdom.

Show it what good looks like

Describing a style rarely works as well as demonstrating it. Write in a plain, direct voice is interpretation; two example outputs are specification.

One example fixes the format. Two or three fix the tone and the level of detail as well. If you have an existing piece that got it right, pasting a paragraph of it as a sample is faster and more precise than any adjective you could choose.

This also solves the most common frustration: getting the shape right but the register wrong, over and over. That is almost always a missing example rather than a missing instruction.

Constraints that prevent the usual failures

  1. Ground it in your text. Answer only from the passage below; if it does not say, write "not stated". This is the most effective single line against invented detail.
  2. Forbid the padding. No introduction, no summary of what you are about to do, no closing paragraph. Saves an editing pass every time.
  3. Protect the specifics. Keep all figures, names and dates exactly as written. Necessary for any rewriting task.
  4. Ask for the uncertainty. Mark anything you are inferring rather than reading. Models comply with this more reliably than people expect.
  5. Set the failure mode. Tell it what to do when it cannot comply, or it will comply anyway with something invented.

Iterating without starting over

When an answer is nearly right, the instinct is to rewrite the whole prompt. Change one thing instead — otherwise you learn nothing about which change helped.

Diagnose before editing. Wrong shape means the format line is missing. Wrong depth means the audience line is. Right content in the wrong voice means you need an example, not more adjectives. Confident invented detail means you need the grounding constraint.

Keep prompts that work. A prompt that reliably produces what you want is a small piece of tooling and worth saving in a file, not retyped from memory each time with slight variations.

What better prompting cannot fix

No prompt gives a model information it does not have. It cannot read a link, see your database or know what happened last week, and asking more precisely will not change that — it will produce a more precisely worded guess.

Nor can a prompt make output trustworthy on facts. Only use accurate information reads like a constraint and is not one, because the model has no internal flag separating what it knows from what it is assembling. Verification stays your job regardless of how good the prompt was.

And prompts do not transfer perfectly between providers. The same instruction to different models gives different results, so a prompt that works beautifully on one is a starting point, not a finished artefact, on another.

The prompt you type goes from your browser to the provider you chose, under their terms, and never through this site.

Frequently Asked Questions

Specific to the Prompt Optimizer. Broader questions about this category are answered on the category page.

Rewrite. The model is explicitly instructed to return an improved prompt as plain text and not to respond to it, so what comes back is ready to copy rather than an answer to your question. Paste the result into whichever assistant you are actually using.
The principles carry across — explicit task, supplied context, defined format — and those improve results on essentially any assistant. Provider-specific syntax does not, so if you rely on a particular tool's special formatting, add it after.
Because it is string insertion: your text goes into the task slot of a fixed template and nothing examines it. The scaffold is genuinely useful to learn, which is why it is offered, but the label is clear that your prompt was not read.
Not necessarily. Length that adds specificity helps; length that restates the task does not. If the rewrite is padded with preamble, cut it — a short, precise prompt beats a long, vague one.
With a key it will restructure one, and the general advice about specificity applies. But image models respond to phrasing conventions that differ substantially from text models, so treat the result as a starting point and adjust against whichever image tool you use.

Subscribe to receive notifications about new tools, features, and productivity tips.