jump totool workspace
ToolHub

Text diff

Look line by line at the differences between the two texts.

Runs the entire process locally
views
—
favorites
—
settings

original text

3 lines · UTF-8Loading…

Modified text

3 lines · UTF-8Loading…

Result

Added 0 · Removed 0 · Changed 2
changeGo leftoriginal textGo rightModified text
~ Modify2beta2BETA
~ Modify3gamma3delta

Export result

Text reporting respects the ignore option; Unified Diff always compares the original text, including true whitespace and case changes.

Tool description and FAQ

Tool Guide

01Compare text line by line

Paste or open files in original text and modified text, automatically compare after editing. Continuous deletions and additions will be paired into modified lines in order, and content movement will not be inferred. The editing area can be switched on the mobile phone, and the difference list remains visible.

02Ignore options and differential filtering

Ignore uppercase and lowercase and match lowercase text; ignore whitespace and compress the whitespace in the line and remove the leading and trailing whitespace; remove the leading and trailing whitespace in the line and only process the beginning and the end. Difference only hides identical rows, and all displays the complete comparison. The original text will not be modified by these options.

03File and local processing

Text files can be opened or dragged in, up to 5 MB in size. The editing area supports line numbers and search, and the output can be copied or downloaded. The content is only processed in the current browser and is not uploaded or automatically saved. Please save important content before refreshing or loading examples.

FAQ

Q1Why is the report different from the patch after turning on the ignore option?

The text report is used to read the changes according to the current rules, and the Unified Diff is used to express the original character changes. So two lines that appear to be the same, regardless of case, may still appear in the patch.

Q2Can you recognize moving paragraphs or semantic changes?

Matches by text line without recognizing variable meaning, semantics, or move operations. Movements may appear as deletions and additions; for comparison of JSON data structures, please use JSON comparison.

Q3Will spaces, tabs and trailing newlines be preserved?

Editing and reporting are subject to actual text, and the equal-width result area remains blank. Standard patches are generated by jsdiff and log missing end-of-file newlines.