mkdiff.com

Developer Tools

Unified Diff Viewer

Paste or upload .diff and .patch files to inspect unified diff headers, hunks, added lines, and removed lines.

1
Files
1
Hunks
3
Added lines
1
Removed lines
4
Context lines

b/src/app.ts

--- a/src/app.ts · +++ b/src/app.ts

@@ -1,6 +1,8 @@
11 export function total(items) {
2- return items.length
2+ return items.reduce((sum, item) => {
3+ return sum + item.count
4+ }, 0)
35 }
46
57 console.log(total([{ count: 2 }]))

Unified Diff Viewer online

Use Unified Diff Viewer in the browser for quick utility workflows. MKDiff keeps the page focused on practical input, preview, and review steps so you can finish a one-off task without installing a desktop utility.

View .patch and .diff files in a structured browser UI.
Understand unified diff headers such as --- +++ and @@ hunk ranges.
Review added, removed, and context lines with old and new line numbers.