Code Inspection
Text & Code Diff Checker
Compare two versions of text, data, or source code to visualize line-by-line changes and additions.
100% In-Browser Client-Side — Zero Server Uploads
Line Difference Viewer
+3 additions-2 deletions
Original (Old) Text
Modified (New) Text
Unified Diff Preview
-function calculateTax(subtotal) {
- const taxRate = 0.05;
+function calculateTax(subtotal, state) {
+ const taxRate = state === 'NY' ? 0.08 : 0.05;
+ // Added state specific rate logic
return subtotal * taxRate;
}
Spot Differences Without Installing Heavy Git GUI Tools
Quickly paste two configuration files, contracts, markdown drafts, or code revisions to see precisely what changed in green additions and red deletions.
Frequently Asked Questions
Helpful answers to common image compression questions.
Our diff tool implements a line-by-line longest common subsequence (LCS) algorithm to pinpoint exact lines added or deleted between two versions.
Related Developer Tools
JSON to TypeScript Converter
Generate TypeScript interfaces from JSON.
Open tool
Base64 Encoder & Decoder
Encode and decode Base64 strings safely.
Open tool
URL Encoder & Decoder
Encode or decode URL query strings and URIs.
Open tool
Unix Timestamp Converter
Convert epoch timestamps to readable dates.
Open tool