Prompt Template Variable Filler

Paste a prompt template and a list of values to fill its placeholders, then check which variables are missing or never used.

Use the tool

Why this tool exists

Prompt templates are usually strings with placeholders such as {{role}} or {topic}, filled in by code. While you are drafting or debugging, it helps to see the final text without running the whole program, and to spot a variable you forgot or misspelt.

Paste the template in one box and the values in the other, as KEY=VALUE lines or a JSON object. The tool supports five placeholder styles, reports filled, missing and unused variables, and gives an approximate token count of the result. Missing placeholders stay in the text so they are easy to find. Your prompts stay in the browser and are not sent to any model.

How to use it

  1. Paste the prompt template into the first box and choose the placeholder style.
  2. Enter values as KEY=VALUE lines, or paste a JSON object, in the second box.
  3. Check the report for missing and unused variables, then copy the filled prompt.

Frequently asked questions

Which placeholder styles work?

Double curly braces, single curly braces, dollar and curly braces, angle brackets and double square brackets. Choose the one your template uses; others are left as plain text.

Can a value span several lines?

Yes, tick the option for continued lines. Lines after a KEY=VALUE line that do not look like a new key are then appended to that value. Or use JSON with escaped newlines.

What happens to a missing variable?

The placeholder is left unchanged in the output and its name appears in the report under Missing, so you can see where a value is needed.

How accurate is the token count?

It is an estimate from a simple word-piece heuristic, usually within about fifteen percent for English. Use your provider token counter when exact numbers matter.