Text Diff Checker
Compare two texts side by side.
About this tool
Paste the original in the left box and the changed version in the right box, then press Run. Lines that match are shown as they are, and lines that differ are marked with - for the original and + for the new version.
How to use
How it works
This is a positional diff. Line 1 is compared with line 1, line 2 with line 2, and so on. It does not search for lines that moved. An unchanged line shows with two leading spaces, a changed pair shows as a - line followed by a + line, and extra lines at the end show on their own.
Worked example
One edited line and one added line
- Input
- Original: red / green / blue Changed: red / yellow / blue / pink
- Output
- red - green + yellow blue + pink
- Walkthrough
- Line 2 differs so it appears as - green then + yellow. Blue matches. Pink exists only in the new text, so it appears with +.
Limitations
- Inserting or deleting a line near the top makes every later line look changed, because lines are matched by position, not by content.
- No word-level or character-level highlighting.
- Both boxes must contain text.
Questions
How do I compare two texts online?
Why does every line show as changed?
Does it highlight words inside a line?
Is my text uploaded?
Features
- Line-by-line comparison
- - and + markers
- Runs in your browser
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
HTML Crash Course For Absolute Beginners
Traversy Media
Text on the web often starts as HTML you clean or count.
Watch on YouTubeLearn Regular Expressions - Crash Course
freeCodeCamp.org
Regex powers many find/replace and clean-text workflows.
Watch on YouTube
- Accessibility
MDN
Readable text and case choices matter for inclusive copy.
- String
MDN
JS string methods that mirror case, trim, and split tools.