An update finishes, the service restarts, and something behaves differently: a port answers that should not, a timeout feels shorter, a feature you switched off is back. Updates often rewrite configuration files as part of installing, and a value you tuned months ago can be silently reset to a default. Re-reading the whole file rarely finds it, because you no longer remember what every line used to say.

A config file is plain text with one setting per line, which makes it ideal for a line-by-line comparison. Keep the pre-update copy, compare it against the new file in the free Text Diff Checker on Ovatly, and the update's edits stop being a suspicion and become a short, exact list you can review before the service restarts.

Contents

  • Quick answer
  • Why a line diff fits config files
  • How to compare config files, step by step
  • Worked example: one update, three kinds of change
  • How to read the result
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Save a copy of the config before updating. Afterwards, paste the old version on the left of the Text Diff Checker and the new version on the right, choose Lines mode, and read the highlighted result with its added, removed and unchanged counts. Every setting the update touched appears in that list: changed values as a removed line paired with an added line, dropped settings as removals, new defaults as additions. Review each one, restore anything the update reset by accident, and only then restart the service.

Why a line diff fits config files

Diff tools offer two granularities, and the entry guidance for this one is simple: Lines for code, configs and lists, where the line is the natural unit, and Words for prose. A config file is the clearest case for Lines mode. Each line is a complete setting, a name and a value, so a line that differs is exactly one setting that changed, and a line that matches is a setting the update left alone.

That precision is what you lose by skimming. The human eye is poor at spotting one different number in forty similar lines, and worse at noticing a line that is no longer there at all. The comparison counts both for you: added, removed and unchanged lines are tallied as part of the result, so a file that should have changed in two places but reports nine changed lines tells you immediately that the update did more than advertised.

How to compare config files, step by step

  1. Before updating, copy the current config file somewhere safe. This pre-update copy is the original you will compare against.
  2. After the update, open the Text Diff Checker and paste the original text on the left.
  3. Paste the changed text, the post-update config, on the right. If either version contains real passwords or keys, replace them with placeholders first.
  4. Choose Lines, the mode for code and structured text.
  5. Read the highlighted result and the added, removed and unchanged counts.
  6. Work through every change: keep the ones the update intended, and restore any value it reset that you had set deliberately.

Worked example: one update, three kinds of change

Here is a small config before an update. Every value is invented and harmless:

host = demo.internal
port = 8080
timeout = 30
log_level = info
cache_dir = /var/cache/demoapp

And the same file after the update:

host = demo.internal
port = 9090
timeout = 30
cache_dir = /var/cache/demoapp
max_connections = 50

The checker reports 2 added, 2 removed and 3 unchanged lines. Reading them in order: host, timeout and cache_dir are unchanged, so the update left those settings alone. The port line appears as a removal of port = 8080 plus an addition of port = 9090, which is one edited setting, and the important one: if you had chosen 8080 deliberately, the update just reset it, and anything expecting the service on 8080 will fail after the restart. The log_level = info line is removed with no replacement, so that setting is gone entirely. Finally, max_connections = 50 is added, a new default the update introduced. Three kinds of change, each needing a different response: restore the port, decide whether the logging setting matters, and accept or adjust the new default.

How to read the result

The one habit that makes diff output easy is reading pairs. Line mode treats a changed line as a removal plus an addition, the same model Git uses, which is why the counts are shown for both. An adjacent removed and added line with the same setting name is a value change, not a setting deleted and a coincidence arriving. A removal with no partner is a dropped setting. An addition with no partner is a new one.

Order matters too. The checker compares sequences, not meaning, so if an update reorganized the file and moved a block of settings, that block shows as removed in its old position and added in its new one. Before treating moved lines as changes, scan the additions for the same settings you see in the removals. If they match, the values survived and only the layout moved.

Limitations and alternatives

The checker compares text, nothing more. It does not validate config syntax, so a malformed line that differs will be flagged as a change, and a malformed line that stayed the same will pass unnoticed. It does not know which values are safe, recommended or dangerous for your service; a reset port and a harmless comment change look identical in kind, and judging them is your job.

The counts and the highlighted view stay on the page; copy the underlying texts from the input boxes if you need the sources. If you need a patch file you can store or apply later, a Git diff is the better format, and keeping configs in version control gives you this comparison permanently. Very large files will still compare, but can take a moment. The comparison itself runs entirely in your browser, so neither version is uploaded anywhere.

Common mistakes

  • Updating first and comparing later, with no pre-update copy kept. Without the original, there is nothing to diff against.
  • Reading a changed value as a deleted setting, then re-adding a duplicate line instead of fixing the value.
  • Skimming past removals. An added line is easy to notice; a setting the update dropped is the one that breaks things quietly.
  • Pasting a live config with real passwords or keys still in it. Replace secrets with placeholders first, even though the comparison runs locally.
  • Using Words mode for a config. It is built for prose; for one-setting-per-line files, Lines mode is the precise view.

FAQs

Which mode should I use for config files?

Lines. Configs put one setting on each line, so the line is the natural unit of change, the same reason Lines suits code and lists.

Why does one changed setting show as two lines?

Line mode treats a changed line as a removal plus an addition, the same model Git uses. The old value leaves and the new value arrives; read the pair as one edited setting.

Can the checker tell me whether a new value is safe?

No. It compares text and reports what changed. It does not validate config syntax or know which values are safe for your service, so review each change yourself.

Should I paste a config that contains passwords or keys?

The comparison runs entirely in your browser and nothing is uploaded. Even so, replace real secrets with placeholders before pasting text anywhere, as this guide does with invented example values.

What if the update moved a whole block of settings?

A diff compares sequences, not meaning, so a moved block shows as removed in one place and added in another. Check the added block against the removed one before treating it as new content.

Conclusion

The whole routine takes two minutes: keep the old config, diff it against the new one in Lines mode, and review a short list of added, removed and edited settings instead of trusting that an update only changed what its notes claimed. The Text Diff Checker will not judge the changes for you, but it guarantees you see all of them. If a comparison ever flags far more lines than the update could plausibly have touched, the cause is usually formatting rather than settings, and the companion guide on diff checker mistakes: whitespace and line ending traps explains how to clean that up. More walkthroughs are collected in the Developer Tools guides.