Text compare
Compare two texts line by line on your device. Options compare lowercase forms or trim and collapse whitespace within lines. Added and removed lines have line numbers. When changes are found, copy or download the full comparison.
How to Compare Two Texts and Find Differences
Text compare: how to use it
- Paste the original text on one side and the changed text on the other.
- Choose whether to ignore case or spacing, then Compare texts.
- Review the marked lines, and copy or download the comparison.
Limits and notes
Up to 1000000 UTF-16 code units per side. After matching beginnings and endings are excluded, the remaining line counts multiplied together must be at most 4000000. CRLF, CR and LF split lines; a final line ending adds an empty line. Differences are marked by whole line. The export is a plain text report, without patch headers or hunks.
How your privacy works →Text compare: common questions
Are my texts uploaded to compare them?
The comparison runs in your browser without uploading either text. Loading the site still makes normal page and asset requests. Copy sends the report to your clipboard; Download saves it as a text file when you choose those actions.
Can it show changes inside a line?
No. Differences are shown as whole added and removed lines. Enabled case and spacing options can make different-looking lines match. Matched rows retain the changed text's original spelling; individual words or characters are not highlighted.
What do the two columns of numbers mean?
The first is the line number in the original text and the second in the changed text. A removed line has only the first and an added line only the second.
How do I compare two versions of a text?
Paste the earlier version in Original text and the newer version in Changed text, choose the case and spacing options, then select Compare texts. Read the marked lines and their original and changed line numbers.
Does ignoring spacing remove all spaces?
No. It trims each line and collapses runs of JavaScript whitespace to one space. ab and a b still differ, and blank lines remain in the sequence.