Blog

Compare configuration changes with Text Diff

Compare a configuration file before and after changes in your browser. Fictional settings and screenshots explain input, changed and added lines, and rerunning the comparison while ignoring whitespace.

The English Text Diff result after changing the timeout from 20 to 30 and adding a cache setting.
Input A is the old version; Input B is the new version. The screenshot uses the English interface.

When you receive a configuration file, changes to the spaces around equals signs can make it hard to spot the numeric changes you are looking for. Text Diff (side by side) places two pasted texts next to each other and compares them line by line. Here, fictional settings show what has changed, before excluding differences that consist only of whitespace. The pasted text is processed entirely in the browser.

Paste the old version on the left and the new version on the right

  1. Open the tool and paste the old version into “Input A” and the new version into “Input B.”
  2. Leave “Ignore whitespace” and “Ignore case” unchecked, then select “Run diff.”

Before (A)

[worker]
timeout = 20
retries = 3
log_level = info

After (B)

[worker]
timeout = 30
retries=3
log_level = info
cache = true
English Text Diff with two configurations entered, showing two changed lines and one added line.
Yellow marks changed lines and green marks added lines. Within the timeout line, 20 on the left and 30 on the right are highlighted.

The timeout and retries lines turn yellow, and the newly added cache = true in B turns green. Lines found only in A appear in red. For long results, use “Next” and “Prev” to jump between differences.

Check again without whitespace-only differences

  1. Turn on “Ignore whitespace.”
  2. Select “Run diff” again. The retries lines are treated as identical, and the changed-line count drops from 2 to 1. The timeout change and the added cache line remain.
English Text Diff after rerunning with Ignore whitespace enabled, showing one changed line and one added line.
Ignoring whitespace treats the retries lines as identical and displays Input A’s text on both sides of the result.

“Ignore whitespace” removes whitespace within each line for comparison, including indentation and whitespace inside quotation marks. If you need to check YAML indentation or spaces in strings, turn it off and run the comparison again. Keep “Ignore case” off as well when differences in the case of keys or values matter. The input fields retain the original pasted texts after comparison, so you can check the original spelling and spacing there even for lines treated as identical in the results.