Free online code compare and text diff checker. Compare source code, text files, and JSON side-by-side with inline diffs and git patch export.
Loading tool...
Learn how to compare two files to see what changed and how to save those changes.
A program that compares two files and highlights exactly what text was added, changed, or removed.
Use this free online code compare tool to find differences between two pieces of text or code. It highlights exactly what was added, deleted, or changed.
The tool compares your text line-by-line and word-by-word. It runs entirely in your browser, so your code is never sent to a server.
Text 1: const user = { name: "Alex" };
Text 2: const user = { name: "Alex", role: "admin" };Highlights the added text: `, role: "admin"`The tool shows you the exact words and letters that were added.
Yes. All diff operations execute 100% locally in your web browser using JavaScript. No source code or proprietary text is transmitted over the network.
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! The tool automatically generates a standard unified patch format that can be copied or saved as a .patch file for automated patching.