Minimo Digital
Minimo Digital
Blog

Text Diff

Line-level difference with simple LCS-based output and highlights.

Left

Right


      
Legend: ' ' unchanged, '-' removed, '+' added

How to Compare Text?

  1. Paste your original text in the Left text area.
  2. Paste the modified text in the Right text area.
  3. Click Compare to see line-by-line differences.
  4. Lines marked with "-" were removed, "+" were added, and " " are unchanged.
  5. Click Copy to copy the diff output.

Frequently Asked Questions

How does the text diff tool work?

Paste two versions of text into the left and right panels and click Compare. The tool highlights additions (green), deletions (red), and unchanged lines (grey) using a line-by-line diff algorithm similar to the Unix diff command.

Can I compare code files with this tool?

Yes. The diff tool works on any plain text including code, configuration files, JSON, SQL, and documents. For best results with code, ensure consistent indentation between versions.

What is the difference between character diff and line diff?

Line diff compares entire lines and is easier to read for most content. Character diff shows changes at the character level within each line, useful for spotting subtle edits like a single changed number or spelling correction.

Can I diff two versions of a JSON file?

Yes. Paste both JSON versions and the diff highlights exactly which lines changed. For structured comparison of JSON data rather than text format, consider formatting both versions consistently before comparing.

Support Minimo Digital

Help keep these tools free for everyone โ˜•