Tools / Prompt Template Tester & Diff

Prompt Template Tester & Diff.

Fill {{variables}} in a prompt template, find missing or unused ones, and diff two prompt versions.

Runs in your browser

mustache: {{name}} · python: {name} · dollar: ${name} or $name

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Rendered prompt
Variables
Diff of rendered prompts
Stats

About Prompt Template Tester & Diff

Prompt Template Tester renders a prompt template with real values and shows exactly what the model will receive. Paste a template with placeholders, give the variables as a JSON object or as name=value lines, and the rendered prompt appears immediately. Three placeholder styles are supported: mustache-style {{name}} as used by many prompt libraries, Python format strings with {name} and {{ }} escapes, and shell-style ${name}. Nested JSON values can be addressed with dots, so {{user.name}} reads the name field of a user object. The variables table is where the tool earns its keep: it lists every placeholder with its status, so a misspelled {{langauge}} shows up as missing instead of reaching production as literal braces, and a variable you pass but never use is flagged as unused, which often means the template and the code calling it have drifted apart. The optional second template turns the page into a prompt diff: both versions are rendered with the same variables and compared line by line in unified diff format, which is handy for reviewing prompt changes in a pull request or comparing an A/B experiment. For example, changing "Be concise." to "Be concise and link to the docs." shows up as one removed and one added line. Missing variables are left in place rather than replaced with empty strings, so gaps stay visible. The tool does not evaluate logic such as loops or conditionals. Prompts and values stay in your browser.

How to Use

  1. Paste your prompt template and choose the placeholder syntax it uses.
  2. Enter the variables as JSON or name=value lines and check the table for missing or unused names.
  3. Optionally paste a second version of the template to see a diff of both rendered prompts.

Frequently Asked Questions

Which template syntaxes work?

Mustache-style {{name}}, Python str.format-style {name} with {{ and }} as escapes, and ${name} or $name. Loops, conditionals and filters from Jinja or Handlebars are not evaluated.

How do I pass multi-line values?

Use the JSON form, where \n inside a string is a line break, or write \n in a name=value line. Nested objects can be used with dotted names such as {{user.name}}.

What happens to missing variables?

They stay in the output as written, for example {{question}}, and are marked as missing in the table, so you notice them before sending the prompt.

Are my prompts stored or sent anywhere?

No. Rendering and diffing run in your browser.

Related Tools