📄 Text Diff Checker
Paste two texts into side-by-side boxes. See additions, deletions, and changes highlighted.
Last updated: November 8, 2026 · By the BoltQuickTools team
Spot what changed between two versions of a text
A config file works on one server and fails on another, or an edited contract comes back with no change list. Reading both copies line by line is slow and misses small edits, so this page lines them up and marks every difference.
Running a comparison
- Paste the older text into Original Text and the newer text into Modified Text.
- Set the checkboxes: Word-level highlighting (on by default), Ignore whitespace and Ignore case.
- Press Compare. Removed lines are red with a minus sign, added lines are green with a plus sign, and a summary above the result counts additions, deletions and unchanged lines.
Nothing updates by itself. After you change a checkbox or press Swap, press Compare again. Clear empties both boxes and the result.
Example: a changed port and a new setting
Original Text:
host: localhost
port: 8080
debug: false
Modified Text:
host: localhost
port: 9090
debug: false
retries: 3
Compare produces this list, with only 8080 and 9090 carrying the darker word highlight on the two port lines:
1 host: localhost
2 -port: 8080
2 +port: 9090
3 debug: false
4 +retries: 3
The summary reads 2 additions, 1 deletion, 2 unchanged, plus the time taken. The number on a removed or unchanged line comes from the original text. The number on an added line comes from the modified text.
Where the output can surprise you
- One column only. The two input boxes sit side by side, but the result is a single merged list. There is no two-column result view.
- Word highlighting pairs neighbours only. It compares a removed line with the added line directly after it. If you rewrite two lines in a row, the list shows removed, removed, added, added, so only the second removed line and the first added line get word marks, and those are usually not a true pair.
- Ignore options affect matching, not display. Lines that match after normalising are shown as unchanged using the original text. Ignore whitespace collapses runs of spaces and trims line ends, but it does not skip blank lines: an extra empty line still counts as an addition.
- Empty boxes count as one blank line. Comparing an empty Original Text with the single line
xreports 1 addition and 1 deletion. - Memory grows with the amount of change. The code keeps a copy of its working array for every edit step. Two 5,000-line texts with nothing in common need about 800 MB for that alone, which can stall or crash the tab. Texts that are mostly alike stay cheap, however long they are.
- No file picker or export. Input is by paste or typing, and there is no copy or download button for the result.
For source code with syntax colouring and character-level marks, use the code diff viewer. For JSON, where key order and formatting should not count as changes, the JSON diff compares the data rather than the lines.
Identical texts, line endings and uploads
Why is there no "identical" message when both texts match?
Matching texts produce the full list of lines with no colour and a summary of 0 additions and 0 deletions. Check the summary rather than waiting for a message.
Which line endings and encodings does it handle?
Browsers convert line endings in a text box to a single newline, so Windows and Unix line endings do not show up as differences. Comparison is exact on characters, so a curly quote and a straight quote are different unless you normalise them first.
Is what I paste uploaded?
The comparison script makes no network requests and only reads the two boxes. The page does load advertising and analytics scripts, as the rest of the site does, but the diff code does not pass your text to them.
Can I clean the text before comparing?
Yes. Sorting or deduplicating both copies first makes reordered lists comparable, and the text tools page does both with one click each.