Text Diff Checker

Compare two text blocks or code snippets line-by-line with highlight markers for additions and deletions.

+3 added2 removed
1The quick brown fox jumps over the lazy dog.
+1The quick brown fox leaps over the lazy dog.
22Pack my box with five dozen liquor jugs.
33How vexingly quick daft zebras jump!
4The five boxing wizards jump quickly.
+4The five boxing wizards jump very quickly.
55Sphinx of black quartz, judge my vow.
+6A new line has been added here.

Text Diff Comparison Features

Whether auditing configuration files, code changes, or document revisions, here is what this text comparison tool provides:

  • Color-Coded Highlights: Added lines are highlighted in green, deleted lines in red.
  • Unified & Split Modes: Toggle between single-column combined view or dual-column side-by-side layout.
  • Ignore Whitespace: Filter out empty line differences or trailing space changes to focus on real content edits.

Frequently Asked Questions

How does Text Diff calculation work?

Text diff calculation compares two text strings line by line using string alignment algorithms (Myers Diff Algorithm). It detects additions, deletions, and unchanged lines between the original and modified text blocks.

What is the difference between Unified View and Side-by-Side Split View?

Unified View shows all additions and deletions sequentially in a single scrolling pane with + and - markers. Side-by-Side Split View places the original text on the left and the modified text on the right for parallel comparison.

Is my input text stored or saved on any server?

No, all text diffing operations run client-side inside your browser or via stateless rate-limited API endpoints. Your confidential text files and source code stay private.

Can I compute text diffs via REST API?

Yes, you can use POST https://api.yurlie.app/v1/developer/diff passing text_a and text_b to calculate line-by-line diffs programmatically in your applications.