Paste two versions of any text and see exactly which lines were added, removed or left alone. Removed lines are red, added lines are green, and a summary shows the counts. It runs in your browser, so documents, configs and code never leave your device.
+ are new, lines starting with − were removed, unmarked lines are unchanged.The tool compares line by line. A line that was edited shows up as the old line removed and the new line added, because the line as a whole differs. With Ignore whitespace, runs of spaces and tabs are treated as a single space and leading or trailing spaces are ignored. With Ignore case, Hello and hello count as the same line. Only the comparison is relaxed: removed and added lines are shown exactly as you typed them, and unchanged lines are shown from the Changed version.
| Original | Changed | Result |
|---|---|---|
port=8080 | port=8080 | Unchanged |
debug=true | debug=false | − debug=true, + debug=false |
name = app | name = app | Unchanged with Ignore whitespace |
.env file or log output.A line diff is ideal for prose and plain files. For structured data, where key order or formatting can change without the meaning changing, use JSON Diff, which compares by key and value. Format the data first with the JSON parser if you do want a line comparison. For SQL, run both versions through the SQL formatter before comparing.
No differences.