Free online text diff checker & code compare tool. Compare source code, text files, and JSON side-by-side with split diffs, inline changes, and patches.
Loading tool...
Learn how Myers diff and LCS algorithms identify code changes, how to interpret unified diff hunks, and how to export clean Git patch files.
Text Diff Checker is a fast compare and contrast online tool free to use that finds differences between two pieces of text, code, or documents. It highlights character, word, and line additions, deletions, and modifications with split-screen and unified diff views.
Compares text line-by-line and character-by-character using an in-browser Meyers diff algorithm. Processing executes locally in client memory with zero server uploads, keeping sensitive code, contracts, and internal logs private.
Text 1: const user = { name: "Alex" };
Text 2: const user = { name: "Alex", role: "admin" };Highlights the added text: `, role: "admin"`Shows exact character and word-level diffs with side-by-side split view highlighting.
Yes. Diff operations execute locally in your web browser using JavaScript and Web Workers. Source code and diff inputs are not uploaded to an Outlivo server.
The engine uses the Myers diff algorithm (the standard algorithm behind Git) to calculate the shortest edit script (SES) for optimal addition and deletion highlighting.
Yes! This free online tool lets you compare and contrast any two text documents, code snippets, or configurations side-by-side. It highlights insertions, deletions, and inline character modifications with instant visual indicators.
Yes! The tool automatically generates a standard unified patch format that can be copied or saved as a .patch file for automated patching.