Compare two texts and highlight additions and removals.
String Diff compares two texts and highlights additions and removals inline. Choose to compare by characters, words or lines, and see how many characters were added and removed. It is useful for comparing config versions, copy edits, API responses or any two blocks of text.
A diff finds the smallest set of changes that turns one text into another. The result is a sequence of unchanged parts, removed parts and added parts. The granularity matters: a character diff pinpoints single-letter edits, a word diff reads naturally for prose, and a line diff is how version control tools show changes in code. Most diff tools are based on finding the longest common subsequence of the two inputs, so the unchanged text is the part both versions share in order.
Use Words for sentences, Lines for code or lists, and Characters when you need to find tiny differences like a missing letter or swapped case.
Yes, spaces and line breaks are compared as part of the text, so differences in whitespace may appear as changes.
They show how many characters were added and how many were removed in total across the diff.
The tool takes pasted text in two boxes. Paste the file contents into each.
No. It shows a single inline view with additions and removals marked in place.