Text Diff

Compare two texts locally and inspect added, removed and unchanged lines with whitespace controls.

Local processing · No uploads · No input history

+ Added · − Removed · Unmarked lines unchanged. At most 1,000 lines per side. CRLF is normalized to LF.

Ready. Enable JavaScript to use the controls. Inputs stay local.

How it works

Paste the original text in Before and the updated text in After. Enable Ignore whitespace only if spacing differences do not matter to your task. Click Compare to see added, removed and unchanged lines. Read + for added and − for removed; unchanged lines have no change marker. Copy the comparison or Clear both inputs. Example shows a small configuration change. Comparison uses a bounded longest-common-subsequence algorithm with at most 1,000 lines and 100,000 characters per side. It compares lines, not individual words, and has no patch-application feature. CRLF line endings are normalized to LF; trailing newlines are still compared. Ignore whitespace trims each line and collapses runs of whitespace for comparison, while displayed content is preserved. All text is rendered as text rather than injected HTML.

Interpret results and limitations

Comparison uses a bounded longest-common-subsequence algorithm with at most 1,000 lines and 100,000 characters per side. It compares lines, not individual words, and has no patch-application feature. CRLF line endings are normalized to LF; trailing newlines are still compared. Ignore whitespace trims each line and collapses runs of whitespace for comparison, while displayed content is preserved. All text is rendered as text rather than injected HTML.

Example

Use this example to understand the expected behavior before working with your own input.

Before: status: draft
After: status: ready
- status: draft
+ status: ready

Continue your task

json formatter — Continue with this related local tool.

Regex Tester — Continue with this related local tool.

Frequently asked questions

A whitespace change is missing?

Disable Ignore whitespace and compare again. CRLF-versus-LF differences are intentionally normalized even in exact mode.

Is my input uploaded or stored?

No. Processing and results stay in this tab. There is no input history or server processing. Copy and download are explicit actions.

Usage analytics settings

Optional analytics helps us improve tools. Tool input, recordings and search text are excluded from our events. Privacy policy

Usage analytics is off unless you enable it.