DEVELOPER
Diff Checker
Compare two versions of code, configuration files, or prose side by side. Highlights additions, deletions, and modifications line by line without sending any data over the network.
Diff Checker
Compare text or code line by line to see what changed.
Original Text
Modified Text
Diff Result
function hello() {
- console.log('world');
+ console.log('world!');
}
Fast In-Browser Text and Code Comparison
Spotting subtle changes between two versions of an API response, JSON configuration, or code snippet can be difficult with the naked eye.
Our client-side diff checker uses an optimized longest common subsequence algorithm to highlight exact line additions and deletions instantly.
Want the background? Read our comprehensive guide: Understanding Diff Algorithms and Patch Workflows.
How to use this tool
- Paste the original version of your text into the left pane.
- Paste the modified version into the right pane.
- Examine the highlighted line-by-line diff with color-coded additions and removals.
- Copy the diff or share the comparison URL.
Examples
Line by line code comparison.
Configuration Change
Original: port=3000 -> Modified: port=8080
- Change
- Modified port number line
Frequently Asked Questions
Is the text sent to any remote server?
Does this support code as well as plain text?
How are additions and deletions displayed?
Can I share the comparison with a teammate?
Related tools
- JSON Formatter & ValidatorFormat, validate, minify, and sort JSON keys in your browser.
- JSON to TypeScriptConvert JSON strings to TypeScript interfaces.
- Base64 Encode / DecodeEncode and decode Base64 with UTF-8 Unicode and URL-safe support.
- UUID GeneratorGenerate cryptographically secure UUID v4 and v7 identifiers in bulk.