Paste two versions of a text below and compare them line by line. Runs entirely in your browser — nothing is ever uploaded.
diff or git diff.-; lines only in Changed are shown in green with a +; matching lines are shown plain.curl -sS "https://devops.majbase.com/text-diff/api" \
--data-urlencode 'original=line1
line2
line3' \
--data-urlencode 'changed=line1
line2-modified
line3'
Returns JSON: {"diff": [{"type": "same"|"removed"|"added", "text": "..."}], "added": N, "removed": N, "same": N}. Add ignore_whitespace=true, ignore_case=true, and/or json_mode=true to match the page's checkboxes.