Text Compare (Diff)
Software · 4 inputs · Free
Text Compare (Diff)
Parameters
What is this tool?
Text Compare (Diff) helps developers with encoding, encryption and text processing. Compares two texts line by line (longest common subsequence / LCS); + marks added lines, - removed lines, and lines starting with a space are unchanged. Up to 2000 differing lines per side are supported.
📘 Common mistakes · Worked exampleCompares two texts line by line (longest common subsequence / LCS); + marks added lines, - removed lines, and lines starting with a space are unchanged. Up to 2000 differing lines per side are supported.
The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.
Last reviewed: · Methodology and sources
How is it calculated?
Compares two texts line by line (longest common subsequence / LCS); + marks added lines, - removed lines, and lines starting with a space are unchanged. Up to 2000 differing lines per side are supported.
Inputs
| Value | Unit | Example |
|---|---|---|
| Text A (old) | — | one two three |
| Text B (new) | — | one 2 three four |
| Letter case | — | Treat as different |
| Whitespace | — | Treat as different |
What is this tool?
Text Compare (Diff) helps developers with encoding, encryption and text processing. Compares two texts line by line (longest common subsequence / LCS); + marks added lines, - removed lines, and lines starting with a space are unchanged. Up to 2000 differing lines per side are supported.
Common mistakes
- Ignoring letter case. A change from Key to key is a real change in configuration keys.
- Mistaking line-ending differences for changes. Windows (CRLF) and Unix (LF) line endings are treated alike by this tool, but other programs may show them as differences.
- Misjudging whitespace. In indentation-based languages such as Python or YAML, a whitespace change can break the code; the Ignore option hides that change.
- Expecting word-level differences. The tool works line by line; if one word changes, the whole line appears as removed and added.
- Comparing very large texts without splitting them. Up to 2000 differing lines per side are supported; split larger files into parts.
📘 How to Find Text Differences: Line-by-Line Diff →
Sources
- POSIX diff: unified and normal output formats ↗
- GNU diffutils manual ↗
- Longest common subsequence problem ↗
Key terms
Frequently Asked Questions
+Text Compare (Diff) — how is it calculated?
Compares two texts line by line (longest common subsequence / LCS); + marks added lines, - removed lines, and lines starting with a space are unchanged. Up to 2000 differing lines per side are supported.
+Which values are required?
Text A (old), Text B (new), Letter case, Whitespace.
+Is my data stored?
No. All calculations run in your browser; the values you enter are never sent to or stored on a server. If you press “Save”, the calculation stays only in your own browser and you can delete it at any time.
+Is it free?
Yes, all tools are free and require no sign-up.
Similar tools
Popular Tools
Free Calculators in One Place
Tax, finance, health, math and more — 500+ tools, all in one place.