Line-based comparison
Text Diff treats line order and textual content as meaningful instead of applying JSON-specific structural semantics.
Compare text, code and configuration line by line locally with readable hunks and unified output.
Paste text, source code or configuration. Options change comparison keys but never rewrite the displayed source.
Text Diff treats line order and textual content as meaningful instead of applying JSON-specific structural semantics.
Changed regions include nearby context and stable original/updated line numbers so code and configuration remain readable.
The diff engine runs entirely in this browser with explicit safety limits and no comparison payload sent to a Devary server.
Developer guide
Text Diff uses a local line-level algorithm to group additions and removals into unified diff hunks. Learn when normalization changes what counts as a difference.
Paste the original and updated versions in separate panels, keeping line breaks in place.
Run the comparison and inspect removed, added and unchanged lines before copying a unified diff.
Adjust ignore-case or whitespace options cautiously; they can hide changes relevant to code or configuration.
The output contains a removal for mode=dev and an addition for mode=pro with surrounding context.
Original:
mode=dev
port=3000
Updated:
mode=pro
port=3000@@ -1,2 +1,2 @@
-mode=dev
+mode=pro
port=3000With both comparison options enabled, the two lines are considered equivalent even though their spelling differs.
ignoreWhitespace=true; ignoreCase=trueOriginal: Hello World
Updated: hello world{"added":0,"removed":0,"unchanged":1,"hunks":0}The V1 engine limits each side to 5,000 lines and 500,000 characters, with a bounded edit-distance budget.
Whitespace and case normalization can conceal meaningful differences. Always inspect raw versions before deployment.
A line replacement is represented as one removal and one addition; this is normal unified diff notation.