How to use this text compare
- Paste the original text into the left box and the changed text into the right box.
- Read the differences below: lines starting with + were added and lines starting with - were removed.
- Use Swap the two texts to flip which version counts as the original.
How the comparison works
The tool compares the two texts line by line and finds the longest run of lines they share, then marks everything else. Lines only in the changed text are shown as additions and lines only in the original are shown as removals. A line that was edited appears as one removal and one addition, because the comparison works on whole lines.
Matching is exact, including spaces and capital letters. Trailing spaces or a different line ending style can make two lines that look alike show as different.
What a diff checker is good for
Use it to see what changed between two drafts of a document, compare two versions of a config file or code snippet, check that a copy-paste kept every line, or review an edit from a colleague when you have only the two blocks of text.
Size limits
Comparison happens in your browser and gets slower as texts grow. Very large inputs, roughly two thousand lines on each side or more, are refused with a message rather than freezing the page.
Text Compare FAQs
How do I compare two texts online?
Paste one version in each box. The differences appear straight away below, with additions marked + and removals marked -.
Does it compare words or lines?
Lines. A changed line shows as one removed and one added line. For a word-level view, put each word on its own line before pasting.
Does it ignore capital letters or spaces?
No. The comparison is exact, so "Hello" and "hello" differ, and so do lines that differ only by a trailing space.
Is my text sent to a server?
No. Both texts stay in your browser; they are kept in localStorage only so they survive a reload. See the privacy page.
Is there a size limit?
Very large comparisons, about two thousand lines on each side or more, are declined to keep the page responsive.