Prompt Version Diff

Save each version of a prompt with a note, see exactly which words and variables changed between any two, estimate token impact and export a Markdown changelog.

Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo

…

Come si usa

  1. 1
    Add versions

    Edit the first version, then use New version from to copy and change it.

  2. 2
    Write a note

    Record why each version exists and which model or settings you tested.

  3. 3
    Compare

    Pick the older and newer versions on the Compare tab, inline or side by side.

  4. 4
    Check variables

    Read which placeholders were added or removed and update callers.

  5. 5
    Preview

    Fill the variables with sample values to see the final text.

  6. 6
    Export

    Download the Markdown changelog and a JSON backup of all versions.

Informazioni su questo strumento

Prompts for language models are code in all but name. A single changed word can shift tone, length or accuracy, and teams that build AI features change prompts constantly: a new rule here, a variable added there, an example removed to save tokens. When quality drops a week later, nobody remembers which edit caused it. General text diff tools help a little, but they compare by line, so a long instruction paragraph lights up red and green even when one word changed, and they know nothing about template variables. This tool is built for prompts. You keep every version with a name, date, note and the model or settings you tested. Pick any two and the page shows a word-level diff with additions and removals marked, while placeholders in double braces, single braces, upper-case square brackets or XML-style tags stay highlighted so you can spot new inputs at a glance. It reports variables added or removed, the change in words and estimated tokens, and builds a changelog you can commit next to your code.

Word-level comparison

The diff splits text into words, spaces, punctuation and whole placeholders, then finds the longest common sequence between the two versions. Unchanged text is plain, removed text is red and struck through, added text is green. Inline view mixes both in one column; side by side shows the older version with removals and the newer one with additions. Identical beginnings and endings are skipped before comparing, so even long system prompts compare quickly.

Variables and inputs

The page recognises the template styles used by most frameworks: double braces, single braces, dollar braces, upper-case square brackets, XML-style tags with a closing pair, shell-style dollar names and Python percent formatting. When a new version adds a variable, every caller must start sending it; when one disappears, old callers send data that is ignored. The compare tab lists both cases so integration code can be updated in the same change.

History, changelog and preview

The history tab lists every version with its date, note, estimated tokens, words added and removed against the previous version, and the number of variables, with a one-click diff. The changelog export is Markdown with notes, statistics and a unified diff per version. The preview tab fills the variables of any version with sample values so you can read the exact text a model would receive. Versions can be exported to JSON and imported again on another device.

Limits

Token counts are estimates based on characters and words, not a specific model's tokenizer, so treat them as a guide to direction and size of change. The tool does not run prompts or measure output quality. Comparisons of extremely long texts fall back to a coarser diff to keep the page responsive.

Esempio svolto

A support team has v1 of a customer reply prompt with two variables, product and question, asking for 3 bullet points. In v2 they make the tone friendly, allow at most 5 short bullet points in a chosen language, tell the model to suggest contacting support when unsure, and forbid invented order numbers. The compare view shows the added words in green and 3 struck through in red. The stats read 15 words added and 1 removed, with estimated tokens rising from 37 to 61. The variables panel lists language as added, a reminder that the help desk integration must now send the customer's language. They write the change note, export the changelog to the repository, and use the preview tab to fill product with Acme Router and language with Spanish before testing the new version.

In breve

Domande frequenti

How is this different from a normal text diff?

It compares word by word instead of line by line, keeps template placeholders whole and highlighted, lists added and removed variables, and estimates the token change, which matters for cost and context limits.

Which placeholder styles are detected?

Double braces, single braces, dollar braces, upper-case words in square brackets, XML-style tag pairs, shell-style dollar names and Python percent formatting.

How accurate is the token estimate?

It is a rough figure, about four characters or three quarters of a word per token for English. Real counts vary by model and language, so use it to judge the size of a change, not to bill.

Where are my prompts stored?

Only in this browser. Export versions to a JSON file to back them up, share them or move them to another device.

Can I compare more than two versions?

The history tab compares each version with the one before it and shows the numbers in one table. Click Diff on any row to open that pair, or choose any two versions on the compare tab.

Can I keep prompts for several projects?

Each export file is one set of versions. Export the current set, then import another file to switch. Name versions clearly so the changelog stays readable.

Completamente gratisNessun costo, nessuna registrazione
I file restano privatiTutto funziona nel tuo browser
Facile nella tua linguaDisponibile in molte lingue