Compare two texts online for free. Paste both versions (or contents from two files) and highlight lines that were added or removed — contracts, notes, configs, or code snippets.
Compare two texts
Line-based comparison of two texts. Green additions, red removals.
Diff
Line one
Line two
Line threeLine two changed
Line three
Line four
How to use Compare two texts
- Paste the original text in the first box (or paste from a text file).
- Paste the revised text in the second box.
- Read the diff output: removed lines, then added lines.
Example: Compare yesterday’s policy text with today’s update before you send it.
Frequently asked questions
- How do I compare two texts online?
- Paste the first text in the left box and the second in the right. This page shows which lines were removed and which were added — a free way to compare texts without installing software.
- Can I compare two text files online?
- Yes. Open each file, copy the contents, and paste them into the two boxes. This page compares the text you paste; it does not upload files to a server.
- Does it compare word by word or line by line?
- The diff works at the line level, which is ideal for documents, configuration files, and notes where each line is a meaningful unit.
- Can I use it for code?
- Yes. It is handy for a quick code diff online, though a dedicated version-control diff is better for large code reviews.