Text Compare

OriginalChanged

How to use Text Compare

Text Compare shows the differences between two pieces of text side by side, line by line, so you can see exactly what was added, removed or changed. Everything runs in your browser, so your text is never uploaded to a server.

Step by step

  1. Paste the original text into the Original text box.
  2. Paste the changed text into the Changed text box.
  3. Click Compare. The Comparison result appears below with the original on the left and the changed text on the right, each with line numbers.
  4. Read the highlights: red marks text that was removed, green marks text that was added, and within a modified line the exact words that differ are highlighted.
  5. Use the summary above the result to see how many lines were modified, added and deleted. Click Clear to start a new comparison.

Tips

  • You need text in at least one of the two boxes. If only one box is filled, the other side is treated as empty.
  • Very large inputs cannot be compared. The limit is 5,000 lines per side, and a message appears if you go over it.
  • To compare two files instead of pasted text, use the File Compare tool.

Good to know

A diff finds the shortest set of additions and deletions that turn one text into another. Most tools do this by finding the longest sequence of lines that both texts share and reporting everything else as a change.

Showing differences inside a line (word level) is easier to read for prose, while the line view is more usual for code.

When to use it

  • Seeing what changed between two drafts of a document or contract.
  • Checking that a copy and paste or a conversion did not alter the text.
  • Comparing two versions of a configuration, an SQL script or a log excerpt.

Example: A one-line change

Input

Left:   The meeting starts at 9:00.
Right:  The meeting starts at 9:30.

Result

The meeting starts at 9:00.   (removed)
The meeting starts at 9:30.   (added)
Changed part: 0 -> 30

Common mistakes

  • Whole-file differences caused by different line endings (CRLF versus LF) or trailing spaces. Normalise both texts first.
  • Comparing structured data with a different order of keys. Sort or format JSON before you compare it.
  • Reading only the added lines. A changed line appears as one removal and one addition, so read them together.

Frequently asked questions

Is my text uploaded?
No. The comparison runs in your browser and the text is never sent to a server.
What do the colours mean?
Red marks text that was removed from the original, and green marks text that was added in the changed version. Inside a modified line, the exact words that differ are highlighted, and the summary above the result counts the modified, added and deleted lines.
Can I ignore spaces or capital letters?
There is no such option. The tool compares the text exactly, so a different number of spaces or a different capital letter counts as a difference.
How large can the texts be?
Up to 5,000 lines on each side, with a combined limit to keep your browser responsive. A message appears if you go over it.
Can I compare files instead of pasted text?
Yes. Use the File Compare tool to drop two text-based files.

Related searches: compare two texts online and highlight differences · online diff tool line by line · find differences between two text blocks · text difference checker with word highlighting

Tìm kiếm liên quan: công cụ so sánh hai đoạn văn bản online · tìm điểm khác nhau giữa hai văn bản · so sánh văn bản từng dòng · so sánh hai phiên bản văn bản