ToolPuma Logo

Text Diff

Compare two texts and highlight added or removed lines.

What Is a Text Diff?

The Text Diff tool compares two versions of your text line by line and highlights what was added or removed. Reviewing edits, merge conflicts, and document changes becomes visual and immediate. This free online text tool is useful for text diff checker, compare two texts, text comparison tool. Common use cases include document revisions, code changes, configuration files, merge conflicts, and proofreading. It works directly in the browser, making it convenient for quick writing, editing, content, development, and data-preparation tasks without requiring a separate application.

How to Use This Text Diff

  1. 1
    Provide the inputPaste the text, list, or two versions of content required by the tool.
  2. 2
    Choose the operationSet the separator, search term, replacement, extraction type, or comparison option where applicable.
  3. 3
    Run the transformationThe browser processes the text and displays the result immediately.
  4. 4
    Review the outputCheck ordering, matches, extracted values, or highlighted changes.
  5. 5
    Copy the resultUse the processed text in your next workflow.

Frequently Asked Questions

The tool finds the longest common subsequence of lines and marks everything else as added or removed.
Green highlights inserted lines, red highlights deleted lines, and plain text marks unchanged lines.
Yes, enable the 'Ignore case' option to treat 'hello' and 'Hello' as equal.