Compare text or code locally with side-by-side line differences and unified diff export.
Left Input
Original or baseline version.
Right Input
Updated or comparison version.
Actions
generic text diffSummary
How To Use
Paste the original text or code on the left and the updated version on the right, then pick the language mode that best matches the content for easier editing.
Turn on Ignore trimmed whitespace when you only care about meaningful line changes and do not want leading or trailing spacing to count as a difference.
Review both the side-by-side output and the unified diff preview, then copy or download the unified diff when you need to share or archive the change set.
Unified Diff Preview
- export function greet(name){
+ export function greet(name: string) {
- return "Hello, " + name
+ return "Hello, ${name}"
}Side-by-Side Diff
Added, removed, changed, and equal lines are shown in order.
export function greet(name){1export function greet(name: string) {return "Hello, " + name2
return "Hello, ${name}"}3
}