EN FR

Text Diff Tool Online

Compare two texts, files, or code. Line-by-line and word-by-word diff, syntax highlighting, share via URL.
Original text
Modified text
0 additions, 0 deletions, 0 unchanged lines
Click Compare to see differences

Advanced Text Comparison Tool

This tool lets you visualize differences between two versions of text or code. It runs entirely in your browser; no data is sent to any server.

Frequently Asked Questions

Unified diff vs split view: what's the difference?

Split view shows both texts side by side with differences aligned. Unified view (like `git diff`) shows a single stream with added lines (prefixed with `+`) and removed lines (`-`).

How does JSON comparison work?

The tool can compare raw JSON in text mode, but also offers syntax highlighting to easily spot structures. For semantic comparison, format your JSON first with our JSON formatter.

Can I share my diff?

Yes, the "Share" button generates a URL with the full state (both texts and options) encoded in the URL fragment. Copy the link and send it to a colleague — everything is decoded locally.

Is word-by-word diff available?

Yes, within changed lines, added or removed words are highlighted in green and red for maximum precision.

Which languages are supported for highlighting?

JSON, SQL, YAML, JavaScript, Python, and many more. Auto-detection tries to guess the format. You can also force a language.

Copied!