How to Compare Two Text Files and See Every Difference
Updated · 5 min read · MetaSol Technologies
Two versions of a contract, a config file before and after a change, or a draft your colleague edited without tracking changes: comparing them by eye is slow and unreliable. A diff tool shows every difference precisely.
Step by step
- Open Text Compare.
- Paste the original on the left and the changed version on the right, or drop two files.
- Press Compare.
The result marks every line as added (+), removed (−) or modified (~). Modified lines also highlight the exact words that changed, so a one-word edit in a long paragraph stands out.
Choosing a view
| View | Best for |
|---|---|
| Side by side | Reading both versions together. Both sides scroll as one. |
| Inline | Narrow screens and phones: one column, removals above additions. |
| Unified | Sharing with developers. It is the standard diff -u / git format. |
Turn on Only changes for long documents: unchanged stretches collapse to a single line, and only the differences plus a few lines of context remain.
Ignoring differences that don't matter
- Ignore whitespace treats
a banda bas equal, and ignores spaces at the end of lines. Use it after reformatting or re-indenting. - Ignore case treats
Totalandtotalas equal.
Both options change only what counts as different. The original text is still shown as it is.
Reading the statistics
The summary shows lines added, removed, modified and unchanged, and a similarity percentage. Similarity is the share of lines that did not change: useful for a quick feel of how heavy an edit was.
Text, code or JSON?
- Use Text Compare for prose, notes, logs and plain configuration.
- Use Code Compare for source code: same diff, with syntax highlighting for 13 languages.
- Use JSON Compare for JSON. It compares the data itself, so reordered keys and formatting changes
are ignored and each change is reported with its path, such as
$.user.email.
Is it safe for confidential text?
Yes. The comparison runs in your browser, and nothing you paste is uploaded or stored.