Prompt Diff

Diff two prompt versions line by line.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste the old prompt and the new prompt and see which lines changed. Unchanged lines are shown with two spaces, removed lines start with -, and added lines start with +. It compares line n against line n, so it is best for edits within lines.

How to use

1
Step 1
Paste the original prompt on the left.
2
Step 2
Paste the revised prompt on the right.
3
Step 3
Press Run to see the differences.

How it works

The two texts are split into lines and compared position by position. When a line differs, the old one is shown with - and the new one with +. Lines past the end of the shorter text appear as pure additions or removals. If everything is the same the output is (identical).

Worked example

A tightened instruction and a new line

Input
Old: You are a tutor. Be concise. Use examples. New: You are a tutor. Be detailed. Use examples. End with a quiz.
Output
You are a tutor. - Be concise. + Be detailed. Use examples. + End with a quiz.
Walkthrough
Line 2 changed from concise to detailed, and the quiz line was added at the end.

Limitations

  • Not a smart diff: inserting a line near the top makes every later line look changed.
  • No word-level highlighting inside a changed line.
  • Whitespace differences count as changes.

Questions

How do I compare two prompts?
Paste each version into its box and press Run.
What do - and + mean?
- marks a line from the original that changed or was removed; + marks the new line.
Why is every line after my insertion marked changed?
Lines are compared by position, so an insertion shifts the lines below it.
Is there a word-level diff?
No, only whole lines.

Features

  • Line-by-line
  • - and + markers
  • Local only

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • TensorFlow 2.0 Complete Course

    freeCodeCamp.org

    Practical ML stack context next to AI utilities.

    Watch on YouTube
  • Big-O Notation in 100 Seconds

    Fireship

    Complexity intuition when estimating training/inference cost.

    Watch on YouTube
  • Data Index

    Math is Fun

    Stats primers when reading ML evaluation outputs.

  • OpenAI Research

    OpenAI

    Research notes for people exploring AI tooling trends.