Skip to main content

Unified Diff Viewer

View unified and Git text diffs with file and line numbers in your browser. Binary and combined diffs aren't rendered; input stays local (100,000 UTF-16 code units, 2,000 lines).

Paste a standard unified or Git text diff. Binary and combined merge diffs are unsupported. Input is limited to 100,000 UTF-16 code units and 2,000 lines.

1 file; 1 hunk; +1 added; -1 removed.

244 / 100,000 code units

Diff output

src/calc.ts

Modified
@@ -1,3 +1,3 @@
Old lineNew lineChangeLine content
11 export function total(items: number[]) {
2-- return items.length;
-2+ return items.reduce((sum, item) => sum + item, 0);
33 }

Was this tool helpful?