SS Toolbox
All data is processed locally

Text Diff

Compare two texts line by line and word by word. Runs entirely in your browser.

Original
Changed
Changes+2 added−0 removed~3 modified4 unchanged
1−export function greet(name: string) {
1+export function greet(name: string, greeting = 'Hello') {
2 const hour = new Date().getHours();
2 const hour = new Date().getHours();
3− if (hour < 12) {
3+ if (hour < 6) {
4 return `Good morning, ${name}`;
4 return `Good morning, ${name}`;
5+ } else if (hour < 18) {
6+ return `Good afternoon, ${name}`;
5 }
7 }
6− return `Hello, ${name}`;
8+ return `${greeting}, ${name}`;
7}
9}

Everything runs locally, so no text ever leaves your device. Lines are aligned with the Myers diff algorithm, and paired changes get an extra word-level highlight so you can spot the exact edit. Options such as ignoring whitespace or case only affect matching — the text is always shown as you pasted it.

Related Tools
SponsorMindElixir