Text Diff Tool
Paste two versions of a text to see the line and character differences.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
This tool compares two blocks of text on two levels: a line-level diff, which reports how many lines were added, removed, or left unchanged between the two versions, and a character-level edit distance (Levenshtein distance), which counts the minimum number of single-character insertions, deletions, and substitutions needed to turn one text into the other.
Software developers use line diffs constantly when reviewing code changes in version control, while writers, editors and translators use the same comparison to spot exactly what changed between two drafts of a document — the character-level distance adds a finer-grained view for catching small wording or formatting edits that a line-by-line comparison alone would report as a single “changed line.”
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)