Diff checker

Paste the original text and a revised version. The unified diff marks removed lines with a minus and added lines with a plus.

Input

No key required

Result

Example

+3 −2 lines

--- old
+++ new
@@ -1,4 +1,5 @@
 name: kamineko
-teeth: sharp
+teeth: sharper
 naps: 3
-bowl: empty
+bowl: full
+treats: yes

Full response
{
  "identical": false,
  "minimal": true,
  "added": 3,
  "removed": 2,
  "hunks": [
    {
      "oldStart": 1,
      "oldLines": 4,
      "newStart": 1,
      "newLines": 5,
      "lines": [
        {
          "type": "context",
          "text": "name: kamineko",
          "oldLine": 1,
          "newLine": 1
        },
        {
          "type": "removed",
          "text": "teeth: sharp",
          "oldLine": 2,
          "newLine": null
        },
        {
          "type": "added",
          "text": "teeth: sharper",
          "oldLine": null,
          "newLine": 2
        },
        {
          "type": "context",
          "text": "naps: 3",
          "oldLine": 3,
          "newLine": 3
        },
        {
          "type": "removed",
          "text": "bowl: empty",
          "oldLine": 4,
          "newLine": null
        },
        {
          "type": "added",
          "text": "bowl: full",
          "oldLine": null,
          "newLine": 4
        },
        {
          "type": "added",
          "text": "treats: yes",
          "oldLine": null,
          "newLine": 5
        }
      ]
    }
  ],
  "unified": "--- old\n+++ new\n@@ -1,4 +1,5 @@\n name: kamineko\n-teeth: sharp\n+teeth: sharper\n naps: 3\n-bowl: empty\n+bowl: full\n+treats: yes\n"
}

Run with curl

Copy this command to run the request in your terminal. It updates as you edit the input.

For higher limits, get a free API key and add -H "Authorization: Bearer $KAMINEKO_API_KEY".

POST /v1/diff/text
curl 'https://api.kamineko.dev/v1/diff/text' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "old": "name: kamineko\nteeth: sharp\nnaps: 3\nbowl: empty\n",
  "new": "name: kamineko\nteeth: sharper\nnaps: 3\nbowl: full\ntreats: yes\n",
  "context": 1
}'

Use with MCP

Set KAMINEKO_API_KEY to your key and run this command to connect Claude Code. Try the diff_text tool with this prompt.

What changed between these two versions of my config?
MCP https://api.kamineko.dev/mcp
claude mcp add --transport http kamineko \
  https://api.kamineko.dev/mcp \
  --header "Authorization: Bearer $KAMINEKO_API_KEY"