How to Use
- Paste your original text in the left pane.
- Paste the modified text in the right pane.
- Click ๐ Compare Text in the top toolbar to generate the diff below.
- Cyan lines (+ sign) show additions, red lines (- sign) show deletions.
- Use the โ Swap Inputs button to quickly reverse the original and modified texts.
What Is a Text Diff?
Frequently Asked Questions
What is a text diff?
A diff (short for 'difference') compares two pieces of text line by line and shows what changed: additions (lines only in the modified text), deletions (lines only in the original), and unchanged lines. This tool uses a longest-common-subsequence (LCS) algorithm to produce an accurate comparison instantly in your browser.
Can I compare code files?
Yes. Paste any plain text into either pane โ source code, configuration files, JSON, Markdown, or prose. The tool does a line-by-line diff, so it works best when content is structured by newlines.
Does this tool send my text to a server?
No. The comparison runs entirely in your browser. Your text is never uploaded or stored anywhere.
What do the colors mean?
Cyan lines (marked with +) are additions that appear in the modified text but not the original. Red lines (marked with -) are deletions present in the original but removed in the modified version. Unchanged lines are shown without color.
Is there a size limit for the text I can compare?
There is no hard limit imposed by the tool. Very large texts (hundreds of thousands of lines) may make the browser slow while computing the diff, but smaller documents compare instantly.