🛠️ FreeTool.jp JP
FAQ Privacy Policy

Diff Merger

Display differences between two texts and merge them block by block

About Diff Merger

The Diff Merger tool compares two texts line by line and displays differences with clear color coding. Added lines are shown in green, removed lines in red, and unchanged lines remain as-is. For each diff block, you can choose from three merge options: 'use left (Original)', 'use right (Modified)', or 'use both'. It uses the LCS (Longest Common Subsequence) algorithm for accurate diff detection and runs entirely in the browser without external libraries.

This tool is ideal for resolving Git merge conflicts, merging configuration files, and reviewing document edits—any situation where you need to manually merge two text versions. Block-by-block flexible merge operations handle complex multi-stage changes, and quick action buttons let you efficiently change selections across all blocks. All processing happens client-side, so your text data is never sent to any server and can be used safely in security-sensitive environments.

How to use Diff Merger

  1. Enter or paste the original text in the left text area
  2. Enter or paste the modified text in the right text area
  3. Click the 'Compare Diff' button to display line-by-line differences with color coding
  4. For each diff block, select 'Use Left', 'Use Right', or 'Use Both' to merge
  5. Copy the merged result to your clipboard using the copy button

Benefits of Diff Merger

  • Flexible merge operations for each diff block individually
  • Accurate diff detection using the LCS algorithm
  • Secure design — all processing stays in your browser
  • Handles conflict resolution, config merging, and document review

他のカテゴリ

Text Tools の人気ツール TOP 10

Text Tools のすべてのツール (58件)