Formatting
Diff checker compares the text you pasted with the text in Compare with, or with a second file, and shows the edit as a unified patch plus two columns. The left column is the original. Removed lines are struck through. The right column is the revision. Added lines are filled in there. In the patch itself, a line that starts with a minus was removed, a line that starts with a plus was added, and a line with a leading space was in both.
The comparison is textual. JSON key order is a change here, because the braces are characters. JSON diff is the page that sorts keys before it compares. Markdown is compared line by line as well. This page accepts a text file, a JSON file, or a Markdown file, which is useful when you are not sure which of the specialized diffs you wanted and you have two versions in front of you.
Source text: Notebook,12 Pen,4 Compare with: Notebook,12 Pencil,4
@@ -1,2 +1,2 @@ Notebook,12 -Pen,4 +Pencil,4 Notebook,12 stayed. Pen,4 is marked removed. Pencil,4 is marked added. On screen, Pen,4 is struck through on the left and Pencil,4 appears on the right.
One comparison covers a note, a JSON file, or a Markdown file, with the removed and added lines visible both as a patch and as two columns.
In the patch, -Pen,4 was in the original and is gone. +Pencil,4 is only in the revision. A space before Notebook,12 means that line is in both.
Every original line is marked removed. A one-line paste of {"color":"red","count":2} with an empty revision produces a hunk that deletes that line and adds nothing.
It compares text. Swapped keys look like removed and added lines. JSON diff sorts both documents before the patch.
Choose two files. The first is original and the second is revised. More than two files is refused.
The columns drop the minus and plus glyphs. Removals are struck through on the left. Additions show on the right. The patch is the copyable form of the same edit.