AI & LLM

Prompt Diff

Compare two prompt versions token by token and see what actually changed.

  • Draft kept in this tabYour draft is kept in this tab's session storage and cleared when the tab closes.
  • Runs in your browserProcessing happens in this page. No application server receives your input.

Prompt before

Prompt after

Inline diff

// Diff runs will appear here once tokenized.

Budget impact

Tokens before
โ€”
Tokens after
โ€”
Added
โ€”
Removed
โ€”
Net
โ€”
Encoding
o200k_base

What this tool does

Compares two versions of a prompt at the BPE token-ID level using a bundled tokenizer vocabulary in a Web Worker, highlights added and removed token runs inline, and reports the net change to the prompt budget.

Limits

Both sides are tokenized with one encoding, so this compares two prompts for one model: a cross-model comparison is two runs, and the token counts from different encodings are not comparable. The diff is over token ids, so a changed run that begins in the middle of a multi-byte character renders a replacement character at its edge; the count is still exact. It is not a semantic diff: swapping two paragraphs is a large token change and may be no change at all to the model, and rewording a sentence to mean the opposite can be one token.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.