Your files stay on your device Compare two texts Paste two versions and see exactly what changed, line by line or letter by letter. Loading editor…Loading editor… These texts can't be compared Paste two texts to compare.OptionsCopy as patch Reading a unified patch A unified patch shows changed lines with a few unchanged lines around them as context. A line starting with a minus sign was removed, a line starting with a plus sign was added, and a line starting with a space stayed the same. The hunk header lists where each span starts and how many lines it covers, so @@ -1,3 +1,3 @@ means both versions start at line 1 and span three lines. A small worked example Start with three lines, red, green, and blue, and change green to Green. The patch looks like this. With ignore capitals on, the two texts match, so nothing is reported. red Context line, unchanged -green Removed from the original +Green Added in the changed text blue Context line, unchanged Line versus character mode - Line mode treats each line as one unit, so a single changed letter marks the whole line as different. - Character mode finds the smallest changed spans, which suits short edits to a sentence. It takes more work as input grows, so long inputs run slower in character mode. More text tools - Word & character count (/text/word-count) - Find & replace (/text/find-replace) - Sort and clean lines (/text/lines) All text tools (/text) Was this tool useful? YesNo Canonical HTML: https://nutter.tools/text/diff Markdown version: https://nutter.tools/text/diff.md Plain-text version: https://nutter.tools/text/diff.txt Agent index: https://nutter.tools/llms.txt