Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the original text into Source text.
  2. Paste the later version into Compare with, or choose a second file.
  3. Read minus lines as removed and plus lines as added.
  4. Look at the left column for the struck-through removals and the right column for the new lines.

What is Text diff?

Text diff is the line comparison for prose, logs, and plain lists. Paste the original, paste the revision in Compare with or choose a second file, and read the unified patch. A minus marks a line that was removed. A plus marks a line that was added. A leading space marks a line that appears in both. The on-screen columns show the same edit: removals struck through on the left, additions on the right.

Read more

Nothing is parsed. Two JSON texts are compared character for character, so a different key order is a pile of removed and added lines. That is the reason JSON diff exists beside this page. An empty revision marks every original line removed, which is what a one-line note produces when Compare with is left blank. Give both sides a final newline when you can. The patch then stays a clean hunk without a note about a missing newline at the end of the file.

Use cases

  • A stock clerk compares yesterday's two-line list with today's and sees Pen replaced by Pencil.
  • A support agent diffs two log excerpts and reads the one added line.
  • A student compares a draft sentence list with the revised list, line by line.
  • A release note is checked against the previous note to list the lines that were added.
  • A developer confirms a plain-text export changed one row and left the header row in both versions.

Two lines, one of them replaced

Original, with a newline after each row: Notebook,12 Pen,4 Compare with: Notebook,12 Pencil,4

@@ -1,2 +1,2 @@ Notebook,12 -Pen,4 +Pencil,4 Removed: Pen,4. Added: Pencil,4. Notebook,12 is unchanged. An empty Compare with on a one-line note marks that single line removed and adds nothing.

Why use Oddsock

The patch names the removed line and the added line, which is the whole answer when two versions of a text differ by one row.

Related tools

Using this tool

For Notebook,12 / Pen,4 against Notebook,12 / Pencil,4, the patch keeps Notebook,12, marks Pen,4 removed, and marks Pencil,4 added.