Compare two text blocks line by line
When reviewing changes between file versions, a line-level diff helps focus on what actually changed. The two text blocks are separated by a line containing only '---'. Added lines are prefixed with '+', removed with '-', unchanged with a space.
What it solves
Find added, removed, and unchanged lines between two versions of a text document.
Input → Output
Text Diff input → Text Diff output across 1 step.
Runs in
2–3 minutes · fully local in your browser.
Before you start
- Two text blocks separated by a line containing only '---'
The pipeline
-
Compare two text blocks line by line using the LCS algorithm. Supports ignoring whitespace and case. Free, private, and 100% client-side.
Runs locally in your browser. The recipe defines the pipeline only — your input never leaves this tab.
▶Run this workflow
Enter your input below and click Run. All processing happens locally in your browser — nothing is uploaded.
Pipeline progress
- Text Difftext-diff
Sample input
line1 line2 line3 --- line1 line3 line4
Expected output
line1 - line2 line3 + line4
This pair is executed against the real tools at build time (tests/unit/recipes.test.ts) — the expected output is verified, not illustrative.
Related workflows
You might also need
Workflows sharing tools or topics with this recipe.