Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the original into Source text, or choose the first file.
  2. Paste the revision into Compare with, or choose a second file.
  3. Read the left column for struck-through removals and the right column for additions.
  4. Read the patch: minus for removed, plus for added, a leading space for a line that stayed.

What is Diff checker?

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.

Read more

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.

Use cases

  • A writer compares two versions of a paragraph and reads which line was replaced.
  • A hand-edited config, part JSON and part comment, is compared with the previous copy.
  • A reviewer drops two downloaded responses side by side to see the added line.
  • An editor checks a Markdown note and a plain-text export with the same tool.
  • Someone confirming a one-line stock change sees Pen,4 removed and Pencil,4 added.

Pen replaced by Pencil

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.

Why use Oddsock

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.

Related tools

Using this tool

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.