Data Transform / Diff / Compare

Diff / Compare

Compare two texts side by side with line-level diff highlighting.

Original
Modified
Tips

Privacy — Your data never leaves the browser

Line-based — Compares line by line using LCS

Swap — Reverse original and modified

Use case — Config files, API responses, code

About Diff / Compare

Compare two texts side by side with line-level diff highlighting. RAW's Diff tool shows additions, deletions, and unchanged lines with clear color coding. Perfect for comparing code versions, API responses, config files, and any text content.

How to use

  1. 1Paste the original text in the left panel.
  2. 2Paste the modified text in the right panel.
  3. 3Differences are highlighted automatically — green for additions, red for deletions.
  4. 4Scroll through the diff to review all changes.

Frequently Asked Questions

What type of diff algorithm is used?
RAW uses a line-level diff algorithm that identifies insertions, deletions, and modifications between two texts. Each line is compared to find the minimal set of changes.
Can I compare code files?
Yes. The diff tool works with any text content including source code, JSON, YAML, SQL, markdown, and plain text. The monospace font makes code comparison easy to read.
Is there a size limit?
There's no hard limit. Since the comparison runs in your browser, it can handle large files. Very large files (10,000+ lines) may take a moment to process.