Text Diff Checker

Compares two inputs (separated by the specified delimiter) and highlights the differences between them.

Input: TextResult: HTML with a sandboxed preview

Text input

Tool options
Applies to word and line comparisons.

Examples

A version bump

Input

release=1

release=2

Expected checks

Case-insensitive
Contains "<del>1</del>"
Contains "<ins>2</ins>"
Sample delimiter
Diff by
Word
Show added
On
Show removed
On
Show subtraction
Off
Ignore whitespace
Off
A corrected setting

Input

cache off

cache on

Expected checks

Case-insensitive
Contains "<del>off</del>"
Contains "<ins>on</ins>"
Sample delimiter
Diff by
Word
Show added
On
Show removed
On
Show subtraction
Off
Ignore whitespace
Off
A renamed file

Input

old.json

new.json

Expected checks

Case-insensitive
Contains "<del>old</del>"
Contains "<ins>new</ins>"
Sample delimiter
Diff by
Word
Show added
On
Show removed
On
Show subtraction
Off
Ignore whitespace
Off
A changed unit

Input

distance miles

distance metres

Expected checks

Case-insensitive
Contains "<del>miles</del>"
Contains "<ins>metres</ins>"
Sample delimiter
Diff by
Word
Show added
On
Show removed
On
Show subtraction
Off
Ignore whitespace
Off
A corrected word

Input

hello work

hello world

Expected checks

Case-insensitive
Contains "<del>work</del>"
Contains "<ins>world</ins>"
Sample delimiter
Diff by
Word
Show added
On
Show removed
On
Show subtraction
Off
Ignore whitespace
Off
Diff added with subtraction, basic usage

Input

testing23

testing123

Expected answer

<ins>1</ins>
Sample delimiter
\n\n
Diff by
Character
Show added
On
Show removed
On
Show subtraction
On
Ignore whitespace
Off
Diff removed with subtraction, basic usage

Input

testing123

testing3

Expected answer

<del>12</del>
Sample delimiter
\n\n
Diff by
Character
Show added
On
Show removed
On
Show subtraction
On
Ignore whitespace
Off
Diff, basic usage

Input

testing23

testing123

Expected answer

testing<ins>1</ins>23
Sample delimiter
\n\n
Diff by
Character
Show added
On
Show removed
On
Show subtraction
Off
Ignore whitespace
Off

Format reference: Diff background and specification

Parameters

ParameterDefault valueInput and choices
Sample delimiter"\\n\\n"Escape sequences such as \n, \r and \t are supported
Diff byCharacterCharacter, Word, Line, Sentence, CSS, JSON
Show addedtrueOn or off
Show removedtrueOn or off
Show subtractionfalseOn or off
Ignore whitespacefalseApplies to word and line comparisons.

Related tools

Browse utils tools