Skip to content
uencoder
PIPELINE Developer Productivity Intermediate 1 step

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

  1. 1 Text Diff text-diff

    Compare two text blocks line by line using the LCS algorithm. Supports ignoring whitespace and case. Free, private, and 100% client-side.

Open in Toolchain

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

  1. 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.

Learn more

Tools used